[][src]Derive Macro rkyv::Archive

#[derive(Archive)]
{
    // Attributes available to this derive:
    #[archive]
}

Derives Archive for the labeled type.

Additional arguments can be specified using the #[archive(...)] attribute:

  • self: Implements ArchiveSelf as well as Archive. Only suitable for types that can be directly archived.
  • derive(...): Adds a #[derive(...)] attribute to the archived type.
  • archived = "...": Exposes the archived type with the given name.