pub struct Chat {
pub id: String,
pub name: String,
pub human: bool,
pub owner: Owner,
pub unread: u32,
pub updated: i64,
pub last: Option<LastMessage>,
}Expand description
A chat you share with others.
Fields§
§id: String§name: String§human: boolPeople only: sends never start a model reply.
owner: Owner§unread: u32Messages you haven’t read. Signed in with an API key, the key keeps its own place.
updated: i64Milliseconds since the epoch.
last: Option<LastMessage>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chat
impl<'de> Deserialize<'de> for Chat
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 Freeze for Chat
impl RefUnwindSafe for Chat
impl Send for Chat
impl Sync for Chat
impl Unpin for Chat
impl UnsafeUnpin for Chat
impl UnwindSafe for Chat
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