[][src]Trait attribution::FromParameters

pub trait FromParameters: Sized {
    fn from_parameters<'a>(
        params: &mut Parameters,
        param_key: &'a ParamKey
    ) -> Result<Self, FromParametersError<'a>>; }

A trait that is used to extract data from a Parameters struct.

Required methods

fn from_parameters<'a>(
    params: &mut Parameters,
    param_key: &'a ParamKey
) -> Result<Self, FromParametersError<'a>>

Try to create a type from a parameter struct (params) for a paramter of a specific name (param_name).

Loading content...

Implementations on Foreign Types

impl FromParameters for Option<bool>[src]

impl FromParameters for Option<i64>[src]

impl FromParameters for Option<f64>[src]

impl FromParameters for Option<String>[src]

Loading content...

Implementors

impl FromParameters for DynamicParameters[src]

impl<T> FromParameters for T where
    T: TryFrom<ParamVal>, 
[src]

Loading content...