[][src]Trait mailgun_sdk::Param

pub trait Param {
    fn try_as_tuple(&self) -> Result<(String, String), ParamError>;

    fn as_tuple(&self) -> (String, String) { ... }
}

Trait for a single request parameter.

Required methods

fn try_as_tuple(&self) -> Result<(String, String), ParamError>

Try to return a tuple of this parameter as a key-value pair.

Loading content...

Provided methods

fn as_tuple(&self) -> (String, String)

Return a tuple of this parameter as a key-value pair.

Loading content...

Implementors

Loading content...