Derive Macro ruma_serde::Outgoing
source · [−]#[derive(Outgoing)]
{
// Attributes available to this derive:
#[incoming_derive]
}
Expand description
Derive the Outgoing
trait, possibly generating an ‘Incoming’ version of the struct this
derive macro is used on.
Specifically, if no lifetime variables are used on any of the fields of the struct, this simple implementation will be generated:
ⓘ
impl Outgoing for MyType {
type Incoming = Self;
}