pub struct Friend {
pub id: String,
pub person: Profile,
pub hidden: bool,
pub chats: Vec<ChatSummary>,
pub created: DateTime<Utc>,
}Expand description
Someone you have people only chats with.
Fields§
§id: String§person: ProfileUnder Hidden: they started at no trust while you hide strangers, and you haven’t replied or shown them.
chats: Vec<ChatSummary>§created: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Friend
impl<'de> Deserialize<'de> for Friend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Friend
impl Freeze for Friend
impl RefUnwindSafe for Friend
impl Send for Friend
impl Sync for Friend
impl Unpin for Friend
impl UnsafeUnpin for Friend
impl UnwindSafe for Friend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more