Struct savefile::SchemaEnum [] [src]

pub struct SchemaEnum {
    pub dbg_name: String,
    pub variants: Vec<Variant>,
}

An enum is serialized as its u8 variant discriminator followed by all the field for that variant. The name of each variant, as well as its order in the enum (the discriminator), is significant.

Fields

Trait Implementations

impl Debug for SchemaEnum
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for SchemaEnum
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl WithSchema for SchemaEnum
[src]

[src]

Returns a representation of the schema used by this Serialize implementation for the given version.

impl Serialize for SchemaEnum
[src]

[src]

Serialize self into the given serializer.

impl Deserialize for SchemaEnum
[src]

[src]

Deserialize and return an instance of Self from the given deserializer.

Auto Trait Implementations

impl Send for SchemaEnum

impl Sync for SchemaEnum