Trait mediatype::ReadParams

source ·
pub trait ReadParams {
    // Required methods
    fn params(&self) -> Params<'_> ;
    fn get_param(&self, name: Name<'_>) -> Option<Value<'_>>;
}
Expand description

A trait for getting parameter values.

Required Methods§

source

fn params(&self) -> Params<'_>

Returns the parameters.

source

fn get_param(&self, name: Name<'_>) -> Option<Value<'_>>

Gets the parameter value by its name.

If the same name appears more than once, returns the last value.

Implementors§