[][src]Trait dynomite::FromAttributes

pub trait FromAttributes: Sized {
    fn from_attrs(attrs: Attributes) -> Result<Self, AttributeError>;
}

A type capable of being produced from a set of string keys and AttributeValues

Required methods

fn from_attrs(attrs: Attributes) -> Result<Self, AttributeError>

Returns an instance of of a type resolved at runtime from a collection of a String keys and AttributeValues. If a instance can not be resolved and AttributeError will be returned.

Loading content...

Implementations on Foreign Types

impl<A: Attribute> FromAttributes for HashMap<String, A>[src]

Coerces a homogenious HashMap of attribute values into a homogeneous Map of types that implement Attribute

impl<A: Attribute> FromAttributes for BTreeMap<String, A>[src]

Coerces a homogenious Map of attribute values into a homogeneous BTreeMap of types that implement Attribute

Loading content...

Implementors

Loading content...