Enum imap_types::response::Capability
source · #[non_exhaustive]pub enum Capability<'a> {
Show 25 variants
Imap4Rev1,
Auth(AuthMechanism<'a>),
LoginDisabled,
StartTls,
Idle,
MailboxReferrals,
LoginReferrals,
SaslIr,
Enable,
Compress {
algorithm: CompressionAlgorithm,
},
Quota,
QuotaRes(Resource<'a>),
QuotaSet,
LiteralPlus,
LiteralMinus,
Move,
Id,
Unselect,
Sort(Option<SortAlgorithm<'a>>),
Thread(ThreadingAlgorithm<'a>),
Metadata,
MetadataServer,
Binary,
UidPlus,
Other(CapabilityOther<'a>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Imap4Rev1
Auth(AuthMechanism<'a>)
LoginDisabled
StartTls
Available on crate feature
starttls
only.Idle
See RFC 2177.
MailboxReferrals
Available on crate feature
ext_mailbox_referrals
only.See RFC 2193.
LoginReferrals
Available on crate feature
ext_login_referrals
only.See RFC 2221.
SaslIr
Enable
See RFC 5161.
Compress
Fields
§
algorithm: CompressionAlgorithm
Quota
See RFC 2087 and RFC 9208
QuotaRes(Resource<'a>)
See RFC 9208.
QuotaSet
See RFC 9208.
LiteralPlus
See RFC 7888.
LiteralMinus
Move
See RFC 6851.
Id
See RFC 2971.
Unselect
See RFC 3691.
Sort(Option<SortAlgorithm<'a>>)
Thread(ThreadingAlgorithm<'a>)
Metadata
Server supports (both) server annotations and mailbox annotations.
MetadataServer
Server supports (only) server annotations.
Binary
IMAP4 Binary Content Extension
UidPlus
UIDPLUS extension (RFC 4351)
Other(CapabilityOther<'a>)
Other/Unknown
Trait Implementations§
source§impl<'a> Arbitrary<'a> for Capability<'a>
impl<'a> Arbitrary<'a> for Capability<'a>
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'a> Clone for Capability<'a>
impl<'a> Clone for Capability<'a>
source§fn clone(&self) -> Capability<'a>
fn clone(&self) -> Capability<'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 Capability<'a>
impl<'a> Debug for Capability<'a>
source§impl<'de, 'a> Deserialize<'de> for Capability<'a>
impl<'de, 'a> Deserialize<'de> for Capability<'a>
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<'a> Display for Capability<'a>
impl<'a> Display for Capability<'a>
source§impl<'a> From<Atom<'a>> for Capability<'a>
impl<'a> From<Atom<'a>> for Capability<'a>
source§impl<'a> Hash for Capability<'a>
impl<'a> Hash for Capability<'a>
source§impl<'a> IntoBoundedStatic for Capability<'a>
impl<'a> IntoBoundedStatic for Capability<'a>
source§type Static = Capability<'static>
type Static = Capability<'static>
The target type is bounded by the
'static
lifetime.source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl<'a> PartialEq for Capability<'a>
impl<'a> PartialEq for Capability<'a>
source§impl<'a> Serialize for Capability<'a>
impl<'a> Serialize for Capability<'a>
source§impl<'a> ToBoundedStatic for Capability<'a>
impl<'a> ToBoundedStatic for Capability<'a>
source§impl<'a> TryFrom<&'a [u8]> for Capability<'a>
impl<'a> TryFrom<&'a [u8]> for Capability<'a>
source§impl<'a> TryFrom<&'a str> for Capability<'a>
impl<'a> TryFrom<&'a str> for Capability<'a>
source§impl<'a> TryFrom<String> for Capability<'a>
impl<'a> TryFrom<String> for Capability<'a>
impl<'a> Eq for Capability<'a>
impl<'a> StructuralPartialEq for Capability<'a>
Auto Trait Implementations§
impl<'a> Freeze for Capability<'a>
impl<'a> RefUnwindSafe for Capability<'a>
impl<'a> Send for Capability<'a>
impl<'a> Sync for Capability<'a>
impl<'a> Unpin for Capability<'a>
impl<'a> UnwindSafe for Capability<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)