[][src]Struct imap::types::Name

pub struct Name { /* fields omitted */ }

A name that matches a LIST or LSUB command.

Methods

impl Name[src]

pub fn attributes(&self) -> &[NameAttribute][src]

Attributes of this name.

pub fn delimiter(&self) -> Option<&str>[src]

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.

pub fn name(&self) -> &str[src]

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 PartialEq<Name> for Name[src]

impl Eq for Name[src]

impl Debug for Name[src]

Auto Trait Implementations

impl Send for Name

impl Unpin for Name

impl Sync for Name

impl UnwindSafe for Name

impl RefUnwindSafe for Name

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]