pub struct SessionListItem {
pub short_id: String,
pub title: String,
pub message_count: usize,
pub created_at: String,
}Expand description
Session list item for display
Fields§
§short_id: String§title: String§message_count: usize§created_at: StringTrait Implementations§
Source§impl Clone for SessionListItem
impl Clone for SessionListItem
Source§fn clone(&self) -> SessionListItem
fn clone(&self) -> SessionListItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionListItem
impl Debug for SessionListItem
Source§impl<'de> Deserialize<'de> for SessionListItem
impl<'de> Deserialize<'de> for SessionListItem
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
Source§impl PartialEq for SessionListItem
impl PartialEq for SessionListItem
Source§fn eq(&self, other: &SessionListItem) -> bool
fn eq(&self, other: &SessionListItem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionListItem
impl Serialize for SessionListItem
impl StructuralPartialEq for SessionListItem
Auto Trait Implementations§
impl Freeze for SessionListItem
impl RefUnwindSafe for SessionListItem
impl Send for SessionListItem
impl Sync for SessionListItem
impl Unpin for SessionListItem
impl UnsafeUnpin for SessionListItem
impl UnwindSafe for SessionListItem
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