Struct fiberplane_models::comments::ThreadSummary
source · #[non_exhaustive]pub struct ThreadSummary {
pub id: Base64Uuid,
pub item_count: u32,
pub first_item: Option<ThreadItem>,
pub recent_items: Vec<ThreadItem>,
pub status: ThreadStatus,
pub created_by: UserSummary,
pub created_at: Timestamp,
pub updated_at: Timestamp,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Base64Uuid§item_count: u32§first_item: Option<ThreadItem>§recent_items: Vec<ThreadItem>These are sorted in chronological order so the last one is the most recent.
status: ThreadStatus§created_by: UserSummary§created_at: Timestamp§updated_at: TimestampImplementations§
source§impl ThreadSummary
impl ThreadSummary
sourcepub fn builder() -> ThreadSummaryBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> ThreadSummaryBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building ThreadSummary.
On the builder, call .id(...), .item_count(...), .first_item(...)(optional), .recent_items(...)(optional), .status(...), .created_by(...), .created_at(...), .updated_at(...) to set the values of the fields.
Finally, call .build() to create the instance of ThreadSummary.
Trait Implementations§
source§impl Clone for ThreadSummary
impl Clone for ThreadSummary
source§fn clone(&self) -> ThreadSummary
fn clone(&self) -> ThreadSummary
Returns a copy of the value. Read more
1.0.0 · 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 ThreadSummary
impl Debug for ThreadSummary
source§impl<'de> Deserialize<'de> for ThreadSummary
impl<'de> Deserialize<'de> for ThreadSummary
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 ThreadSummary
impl PartialEq for ThreadSummary
source§fn eq(&self, other: &ThreadSummary) -> bool
fn eq(&self, other: &ThreadSummary) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ThreadSummary
impl Serialize for ThreadSummary
impl Eq for ThreadSummary
impl StructuralPartialEq for ThreadSummary
Auto Trait Implementations§
impl Freeze for ThreadSummary
impl RefUnwindSafe for ThreadSummary
impl Send for ThreadSummary
impl Sync for ThreadSummary
impl Unpin for ThreadSummary
impl UnwindSafe for ThreadSummary
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