Struct melib::thread::ThreadNode
source · pub struct ThreadNode {
pub message: Option<EnvelopeHash>,
pub other_mailbox: bool,
pub parent: Option<ThreadNodeHash>,
pub children: Vec<ThreadNodeHash>,
pub date: UnixTimestamp,
pub show_subject: bool,
pub group: ThreadHash,
pub unseen: bool,
}
Fields§
§message: Option<EnvelopeHash>
§other_mailbox: bool
§parent: Option<ThreadNodeHash>
§children: Vec<ThreadNodeHash>
§date: UnixTimestamp
§show_subject: bool
§group: ThreadHash
§unseen: bool
Implementations§
source§impl ThreadNode
impl ThreadNode
pub fn show_subject(&self) -> bool
pub fn unseen(&self) -> bool
pub fn set_unseen(&mut self, new_val: bool)
pub fn date(&self) -> UnixTimestamp
pub fn is_empty(&self) -> bool
pub fn message(&self) -> Option<EnvelopeHash>
pub fn has_message(&self) -> bool
pub fn parent(&self) -> Option<ThreadNodeHash>
pub fn has_parent(&self) -> bool
pub fn children(&self) -> &[ThreadNodeHash]
Trait Implementations§
source§impl Clone for ThreadNode
impl Clone for ThreadNode
source§fn clone(&self) -> ThreadNode
fn clone(&self) -> ThreadNode
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 ThreadNode
impl Debug for ThreadNode
source§impl Default for ThreadNode
impl Default for ThreadNode
source§impl<'de> Deserialize<'de> for ThreadNode
impl<'de> Deserialize<'de> for ThreadNode
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 ThreadNode
impl PartialEq for ThreadNode
source§impl Serialize for ThreadNode
impl Serialize for ThreadNode
impl Eq 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.