pub fn contact(&self) -> Option<Contact<T>> {
        debug!("Friendship.contact(id = {})", self.id_);
        match &self.payload_ {
            Some(payload) => {
                if !payload.contact_id.is_empty() {
                    Some(Contact::new(payload.contact_id.clone(), self.ctx_.clone(), None))
                } else {
                    None
                }
            }
            None => None,
        }
    }
/// Get friendship's contact.
Get friendship's contact.
Get friendship ' s contact .
pub fn contact(&self) -> Option<Contact<T>> {
        debug!("Friendship.contact(id = {})", self.id_);
        match &self.payload_ {
            Some(payload) => {
                if !payload.contact_id.is_empty() {
                    Some(Contact::new(payload.contact_id.clone(), self.ctx_.clone(), None))
                } else {
                    None
                }
            }
            None => None,
        }
    }
pub fn contact ( & self ) -> Option < Contact < T > > { debug ! ( " " self id_ ) ; match & self . payload_ { Some ( payload ) => { if ! payload . contact_id . is_empty ( ) { Some ( Contact :: new ( payload . contact_id . clone ( ) , self . ctx_ . clone ( ) , None ) ) } else { None } } None => None , } }
Get friendship's contact.
Get friendship ' s contact .
&self
&self