pub struct Name { /* private fields */ }
Expand description
A name that matches a LIST
or LSUB
command.
Implementations§
Source§impl Name
impl Name
Sourcepub fn attributes(&self) -> &[NameAttribute<'_>]
pub fn attributes(&self) -> &[NameAttribute<'_>]
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.
Trait Implementations§
impl Eq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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