Struct savefile::Field[][src]

pub struct Field {
    pub name: String,
    pub value: Box<Schema>,
}
Expand description

A field is serialized according to its value. The name is just for diagnostics.

Fields

name: String

Field name

value: Box<Schema>

Field type

Trait Implementations

Formats the value using the given formatter. Read more

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

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

This method tests for !=.

Serialize self into the given serializer.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.