Enum imap_types::extensions::metadata::GetMetadataOption
source · pub enum GetMetadataOption {
MaxSize(u32),
Depth(Depth),
}Variants§
MaxSize(u32)
Only return values that are less than or equal in octet size to the specified limit.
If there are any entries with values larger than the MAXSIZE limit, the server MUST include the METADATA LONGENTRIES response code in the tagged OK response for the GETMETADATA command.
Depth(Depth)
Extends the list of entry values returned by the server.
For each entry name specified in the GETMETADATA command, the server returns the value of the specified entry name (if it exists), plus all entries below the entry name up to the specified DEPTH.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for GetMetadataOption
impl<'arbitrary> Arbitrary<'arbitrary> for GetMetadataOption
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moresource§impl Clone for GetMetadataOption
impl Clone for GetMetadataOption
source§fn clone(&self) -> GetMetadataOption
fn clone(&self) -> GetMetadataOption
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 GetMetadataOption
impl Debug for GetMetadataOption
source§impl<'de> Deserialize<'de> for GetMetadataOption
impl<'de> Deserialize<'de> for GetMetadataOption
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 Hash for GetMetadataOption
impl Hash for GetMetadataOption
source§impl IntoBoundedStatic for GetMetadataOption
impl IntoBoundedStatic for GetMetadataOption
§type Static = GetMetadataOption
type Static = GetMetadataOption
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 PartialEq for GetMetadataOption
impl PartialEq for GetMetadataOption
source§fn eq(&self, other: &GetMetadataOption) -> bool
fn eq(&self, other: &GetMetadataOption) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GetMetadataOption
impl Serialize for GetMetadataOption
source§impl ToBoundedStatic for GetMetadataOption
impl ToBoundedStatic for GetMetadataOption
impl Eq for GetMetadataOption
impl StructuralPartialEq for GetMetadataOption
Auto Trait Implementations§
impl Freeze for GetMetadataOption
impl RefUnwindSafe for GetMetadataOption
impl Send for GetMetadataOption
impl Sync for GetMetadataOption
impl Unpin for GetMetadataOption
impl UnwindSafe for GetMetadataOption
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)