pub struct ThreadSummaryId(/* private fields */);Expand description
Unique identifier for a thread summary.
Implementations§
Trait Implementations§
Source§impl Clone for ThreadSummaryId
impl Clone for ThreadSummaryId
Source§fn clone(&self) -> ThreadSummaryId
fn clone(&self) -> ThreadSummaryId
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 moreimpl Copy for ThreadSummaryId
Source§impl Debug for ThreadSummaryId
impl Debug for ThreadSummaryId
Source§impl Default for ThreadSummaryId
impl Default for ThreadSummaryId
Source§impl<'de> Deserialize<'de> for ThreadSummaryId
impl<'de> Deserialize<'de> for ThreadSummaryId
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 Display for ThreadSummaryId
impl Display for ThreadSummaryId
impl Eq for ThreadSummaryId
Source§impl From<ThreadSummaryId> for Uuid
impl From<ThreadSummaryId> for Uuid
Source§fn from(id: ThreadSummaryId) -> Self
fn from(id: ThreadSummaryId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for ThreadSummaryId
impl From<Uuid> for ThreadSummaryId
Source§impl FromStr for ThreadSummaryId
Every id round-trips through its own Display.
impl FromStr for ThreadSummaryId
Every id round-trips through its own Display.
Without this, anything that parses an id from a string — clap
value_parsers, query strings, config files — has to widen the
field back to a bare Uuid at the boundary and convert by
hand, which is the exact laundering the newtype exists to
prevent. agora-cli carried a hand-written
parse_moderation_action_id for precisely this reason.
Source§impl Hash for ThreadSummaryId
impl Hash for ThreadSummaryId
Source§impl Ord for ThreadSummaryId
impl Ord for ThreadSummaryId
Source§fn cmp(&self, other: &ThreadSummaryId) -> Ordering
fn cmp(&self, other: &ThreadSummaryId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ThreadSummaryId
impl PartialEq for ThreadSummaryId
Source§impl PartialOrd for ThreadSummaryId
impl PartialOrd for ThreadSummaryId
Source§impl Serialize for ThreadSummaryId
impl Serialize for ThreadSummaryId
impl StructuralPartialEq for ThreadSummaryId
Auto Trait Implementations§
impl Freeze for ThreadSummaryId
impl RefUnwindSafe for ThreadSummaryId
impl Send for ThreadSummaryId
impl Sync for ThreadSummaryId
impl Unpin for ThreadSummaryId
impl UnsafeUnpin for ThreadSummaryId
impl UnwindSafe for ThreadSummaryId
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