pub struct Name<'a> { /* private fields */ }
Expand description
A name that matches a LIST
or LSUB
command.
Implementations§
source§impl<'a> Name<'a>
impl<'a> Name<'a>
sourcepub fn attributes(&self) -> &[NameAttribute<'a>]
pub fn attributes(&self) -> &[NameAttribute<'a>]
Attributes of this name.
sourcepub fn delimiter(&self) -> Option<&str>
pub fn delimiter(&self) -> Option<&str>
The hierarchy delimiter is a character used to delimit levels of hierarchy in a mailbox
name. A client can use it to create child mailboxes, and to search higher or lower levels
of naming hierarchy. All children of a top-level hierarchy node use the same
separator character. None
means that no hierarchy exists; the name is a “flat” name.
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name represents an unambiguous left-to-right hierarchy, and are valid for use as a
reference in LIST
and LSUB
commands. Unless NameAttribute::NoSelect
is indicated,
the name is also valid as an argument for commands, such as SELECT
, that accept mailbox
names.
sourcepub fn into_owned(self) -> Name<'static>
pub fn into_owned(self) -> Name<'static>
Get an owned version of this Name
.