#[repr(u8)]pub enum InboxFilter {
AcceptAll = 0,
ContactsOnly = 1,
StakedOnly = 2,
}Expand description
Inbox filter mode
Variants§
AcceptAll = 0
Accept all messages
ContactsOnly = 1
Only accept from contacts
StakedOnly = 2
Only accept from staked senders
Implementations§
Trait Implementations§
Source§impl Clone for InboxFilter
impl Clone for InboxFilter
Source§fn clone(&self) -> InboxFilter
fn clone(&self) -> InboxFilter
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 moreSource§impl Debug for InboxFilter
impl Debug for InboxFilter
Source§impl Default for InboxFilter
impl Default for InboxFilter
Source§fn default() -> InboxFilter
fn default() -> InboxFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InboxFilter
impl<'de> Deserialize<'de> for InboxFilter
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 InboxFilter
impl PartialEq for InboxFilter
Source§fn eq(&self, other: &InboxFilter) -> bool
fn eq(&self, other: &InboxFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InboxFilter
impl Serialize for InboxFilter
impl Copy for InboxFilter
impl Eq for InboxFilter
impl StructuralPartialEq for InboxFilter
Auto Trait Implementations§
impl Freeze for InboxFilter
impl RefUnwindSafe for InboxFilter
impl Send for InboxFilter
impl Sync for InboxFilter
impl Unpin for InboxFilter
impl UnsafeUnpin for InboxFilter
impl UnwindSafe for InboxFilter
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