Enum imap_codec::flag::FlagNameAttribute
source · pub enum FlagNameAttribute<'a> {
Noinferiors,
Noselect,
Marked,
Unmarked,
Extension(Atom<'a>),
}
Expand description
Four name attributes are defined.
Variants§
Noinferiors
It is not possible for any child levels of hierarchy to exist
under this name; no child levels exist now and none can be
created in the future. (\Noinferiors
)
Noselect
It is not possible to use this name as a selectable mailbox. (\Noselect
)
Marked
The mailbox has been marked “interesting” by the server; the
mailbox probably contains messages that have been added since
the last time the mailbox was selected. (\Marked
)
Unmarked
The mailbox does not contain any additional messages since the
last time the mailbox was selected. (\Unmarked
)
Extension(Atom<'a>)
Note: extension flags must also be accepted here…
Implementations§
source§impl<'a> FlagNameAttribute<'a>
impl<'a> FlagNameAttribute<'a>
pub fn is_selectability(&self) -> bool
Trait Implementations§
source§impl<'a, 'arbitrary> Arbitrary<'arbitrary> for FlagNameAttribute<'a>where
'arbitrary: 'a,
impl<'a, 'arbitrary> Arbitrary<'arbitrary> for FlagNameAttribute<'a>where 'arbitrary: 'a,
source§fn arbitrary(
u: &mut Unstructured<'arbitrary>
) -> Result<FlagNameAttribute<'a>, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary> ) -> Result<FlagNameAttribute<'a>, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<FlagNameAttribute<'a>, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<FlagNameAttribute<'a>, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'a> Clone for FlagNameAttribute<'a>
impl<'a> Clone for FlagNameAttribute<'a>
source§fn clone(&self) -> FlagNameAttribute<'a>
fn clone(&self) -> FlagNameAttribute<'a>
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<'a> Debug for FlagNameAttribute<'a>
impl<'a> Debug for FlagNameAttribute<'a>
source§impl<'de, 'a> Deserialize<'de> for FlagNameAttribute<'a>
impl<'de, 'a> Deserialize<'de> for FlagNameAttribute<'a>
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<FlagNameAttribute<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<FlagNameAttribute<'a>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<Atom<'a>> for FlagNameAttribute<'a>
impl<'a> From<Atom<'a>> for FlagNameAttribute<'a>
source§fn from(atom: Atom<'a>) -> FlagNameAttribute<'a>
fn from(atom: Atom<'a>) -> FlagNameAttribute<'a>
Converts to this type from the input type.
source§impl<'a> Hash for FlagNameAttribute<'a>
impl<'a> Hash for FlagNameAttribute<'a>
source§impl<'a> IntoBoundedStatic for FlagNameAttribute<'a>
impl<'a> IntoBoundedStatic for FlagNameAttribute<'a>
§type Static = FlagNameAttribute<'static>
type Static = FlagNameAttribute<'static>
The target type is bounded by the
'static
lifetime.source§fn into_static(self) -> <FlagNameAttribute<'a> as IntoBoundedStatic>::Static
fn into_static(self) -> <FlagNameAttribute<'a> as IntoBoundedStatic>::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl<'a> PartialEq<FlagNameAttribute<'a>> for FlagNameAttribute<'a>
impl<'a> PartialEq<FlagNameAttribute<'a>> for FlagNameAttribute<'a>
source§fn eq(&self, other: &FlagNameAttribute<'a>) -> bool
fn eq(&self, other: &FlagNameAttribute<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for FlagNameAttribute<'a>
impl<'a> Serialize for FlagNameAttribute<'a>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> ToBoundedStatic for FlagNameAttribute<'a>
impl<'a> ToBoundedStatic for FlagNameAttribute<'a>
§type Static = FlagNameAttribute<'static>
type Static = FlagNameAttribute<'static>
The target type is bounded by the
'static
lifetime.source§fn to_static(&self) -> <FlagNameAttribute<'a> as ToBoundedStatic>::Static
fn to_static(&self) -> <FlagNameAttribute<'a> as ToBoundedStatic>::Static
Convert an
&T
to an owned T
such that T: 'static
.impl<'a> Eq for FlagNameAttribute<'a>
impl<'a> StructuralEq for FlagNameAttribute<'a>
impl<'a> StructuralPartialEq for FlagNameAttribute<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for FlagNameAttribute<'a>
impl<'a> Send for FlagNameAttribute<'a>
impl<'a> Sync for FlagNameAttribute<'a>
impl<'a> Unpin for FlagNameAttribute<'a>
impl<'a> UnwindSafe for FlagNameAttribute<'a>
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