Enum imap::extensions::metadata::MetadataDepth
source · pub enum MetadataDepth {
Zero,
One,
Infinity,
}
Expand description
Represents variants of the DEPTH
parameter for the GETMETADATA
command.
When a non-zero depth is specified with the GETMETADATA
command, it 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
.
See also RFC 5464, section 4.2.2.
Variants§
Zero
No entries below the specified entry are returned.
One
Only entries immediately below the specified entry are returned.
Thus, a depth of one for an entry /a
will match /a
as well as its children entries
(e.g., /a/b
), but will not match grandchildren entries (e.g., /a/b/c
).
Infinity
All entries below the specified entry are returned
Trait Implementations§
source§impl Clone for MetadataDepth
impl Clone for MetadataDepth
source§fn clone(&self) -> MetadataDepth
fn clone(&self) -> MetadataDepth
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 more