Derive Macro protocol::Protocol

source · []
#[derive(Protocol)]
{
    // Attributes available to this derive:
    #[protocol]
}
Expand description

Custom derive to implement Parcel for a type that contains other Parcelable types.

Example:

#[derive(protocol::Protocol)]
struct Hello {
  foo: u8,
  bar: String,
}