[][src]Macro ipld::derive_ipld_for_struct

macro_rules! derive_ipld_for_struct {
    ($name:ident { $($member:ident : $value_type:ty,)* }) => { ... };
    (@count $t1:tt, $($t:tt),+) => { ... };
    (@count $t:tt) => { ... };
}

Derives TryFrom<Ipld> for an arbitrary struct. Used within other macros that produce an IPLD Representation for custom types.