pub struct LastMessage {
pub parts: Vec<Value>,
pub role: String,
pub created_at: DateTime<Utc>,
pub position: u32,
pub author: Option<Profile>,
pub model: Option<String>,
}Fields§
§parts: Vec<Value>§role: String§created_at: DateTime<Utc>§position: u32§model: Option<String>Implementations§
Source§impl LastMessage
impl LastMessage
pub fn from_json(json: &Value) -> Option<LastMessage>
Trait Implementations§
Source§impl Clone for LastMessage
impl Clone for LastMessage
Source§impl Debug for LastMessage
impl Debug for LastMessage
Source§impl<'de> Deserialize<'de> for LastMessage
impl<'de> Deserialize<'de> for LastMessage
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 LastMessage
impl Freeze for LastMessage
impl RefUnwindSafe for LastMessage
impl Send for LastMessage
impl Sync for LastMessage
impl Unpin for LastMessage
impl UnsafeUnpin for LastMessage
impl UnwindSafe for LastMessage
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