Struct imap_types::response::CapabilityOther
source · pub struct CapabilityOther<'a>(_);
Implementations§
source§impl<'a> CapabilityOther<'a>
impl<'a> CapabilityOther<'a>
sourcepub fn unvalidated<C>(inner: C) -> Selfwhere
C: Into<Cow<'a, str>>,
Available on crate feature unvalidated
only.
pub fn unvalidated<C>(inner: C) -> Selfwhere C: Into<Cow<'a, str>>,
unvalidated
only.Constructs an unsupported capability without validation.
Warning: IMAP conformance
The caller must ensure that data
is valid. Failing to do so may create invalid/unparsable
IMAP messages, or even produce unintended protocol flows. Do not call this constructor with
untrusted data.
pub fn inner(&self) -> &Atom<'a>
Trait Implementations§
source§impl<'a> Clone for CapabilityOther<'a>
impl<'a> Clone for CapabilityOther<'a>
source§fn clone(&self) -> CapabilityOther<'a>
fn clone(&self) -> CapabilityOther<'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 CapabilityOther<'a>
impl<'a> Debug for CapabilityOther<'a>
source§impl<'de, 'a> Deserialize<'de> for CapabilityOther<'a>
impl<'de, 'a> Deserialize<'de> for CapabilityOther<'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> Hash for CapabilityOther<'a>
impl<'a> Hash for CapabilityOther<'a>
source§impl<'a> IntoBoundedStatic for CapabilityOther<'a>
impl<'a> IntoBoundedStatic for CapabilityOther<'a>
§type Static = CapabilityOther<'static>
type Static = CapabilityOther<'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<CapabilityOther<'a>> for CapabilityOther<'a>
impl<'a> PartialEq<CapabilityOther<'a>> for CapabilityOther<'a>
source§fn eq(&self, other: &CapabilityOther<'a>) -> bool
fn eq(&self, other: &CapabilityOther<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for CapabilityOther<'a>
impl<'a> Serialize for CapabilityOther<'a>
source§impl<'a> ToBoundedStatic for CapabilityOther<'a>
impl<'a> ToBoundedStatic for CapabilityOther<'a>
impl<'a> Eq for CapabilityOther<'a>
impl<'a> StructuralEq for CapabilityOther<'a>
impl<'a> StructuralPartialEq for CapabilityOther<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CapabilityOther<'a>
impl<'a> Send for CapabilityOther<'a>
impl<'a> Sync for CapabilityOther<'a>
impl<'a> Unpin for CapabilityOther<'a>
impl<'a> UnwindSafe for CapabilityOther<'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