#[non_exhaustive]pub struct ThreadNode {
pub id: Option<u32>,
pub children: Vec<Self>,
}Expand description
A node in a THREAD response tree (RFC 5256 Section 4).
Each node represents a message in a thread. A dummy parent (id == None)
is used when the threading algorithm infers a parent that does not
correspond to an existing message.
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: Option<u32>UID (or sequence number) of this message, or None if this is a
dummy parent (RFC 5256 Section 4).
children: Vec<Self>Child thread nodes (RFC 5256 Section 4).
Trait Implementations§
Source§impl Clone for ThreadNode
impl Clone for ThreadNode
Source§fn clone(&self) -> ThreadNode
fn clone(&self) -> ThreadNode
Returns a duplicate 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 ThreadNode
impl Debug for ThreadNode
Source§impl Default for ThreadNode
impl Default for ThreadNode
Source§fn default() -> ThreadNode
fn default() -> ThreadNode
Returns the “default value” for a type. Read more
Source§impl Hash for ThreadNode
impl Hash for ThreadNode
Source§impl PartialEq for ThreadNode
impl PartialEq for ThreadNode
impl Eq for ThreadNode
impl StructuralPartialEq for ThreadNode
Auto Trait Implementations§
impl Freeze for ThreadNode
impl RefUnwindSafe for ThreadNode
impl Send for ThreadNode
impl Sync for ThreadNode
impl Unpin for ThreadNode
impl UnsafeUnpin for ThreadNode
impl UnwindSafe for ThreadNode
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