[][src]Struct mail_template::AdditionalCIds

pub struct AdditionalCIds<'a> { /* fields omitted */ }

Methods

impl<'a> AdditionalCIds<'a>[src]

pub fn get(&self, name: &str) -> Option<&ContentId>[src]

Returns the content id associated with the given name.

If multiple of the maps used to create this type contain the key the first match is returned and all later ones are ignored.

Panic

If the resource exists but is not loaded (i.e. has no content id) this will panic as this can only happen if there is a bug in the mail code, or this type was used externally.

Trait Implementations

impl<'a> Serialize for AdditionalCIds<'a>[src]

Auto Trait Implementations

impl<'a> Send for AdditionalCIds<'a>

impl<'a> Sync for AdditionalCIds<'a>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto 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> HeaderTryFrom for T[src]

impl<F, T> HeaderTryInto for F where
    T: HeaderTryFrom<F>, 
[src]

impl<T> Erased for T