You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: row.rs
    path of file: ./repos/paper-plane/src/ui/session/sidebar
    
    the code of the file until where you have to start completion: use std::cell::OnceCell;

use gettextrs::gettext;
use glib::clone;
use glib::clo
    
    fn toggle_chat_is_pinned(&self) {
        if let Some(item) = self.item() {
            utils::spawn(async move {
                if let Err(e) = item.toggle_is_pinned().await {
                    log::warn!("Error on toggling chat's pinned state: {e:?}");
                }
            });
        }
    }