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: OffsetDateTime,
pub updated_at: OffsetDateTime,
}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: OffsetDateTime§updated_at: OffsetDateTimeImplementations§
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(...), .recent_items(...), .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<ThreadSummary> for ThreadSummary
impl PartialEq<ThreadSummary> 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 ==.