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 AttributeValue
s
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
fn into_attrs(self, sink: &mut Attributes)
[src]
fn into_attrs(self, sink: &mut Attributes)
[src]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.