Trait dynomite::IntoAttributes[][src]

pub trait IntoAttributes: Sized {
    fn into_attrs(self, sink: &mut Attributes);
}
Expand description

A type capable of being serialized into a set of string keys and AttributeValues Generally, you should not implement this trait manually. Use #[derive(Attributes/Item)] to generate the proper implementation instead.

It also generates From<T> for Attributes for your type (there is no blanket impl for From<T> here due to orphan rules)

Required methods

Converts self into Attributes by accepting a sink argument and insterting attribute key-value pairs into it. This is needed to support #[dynomite(flatten)] without creating temporary hash maps.

Implementations on Foreign Types

Implementors