Struct serde_reflection::Named[][src]

pub struct Named<T> {
    pub name: String,
    pub value: T,
}
Expand description

A named value. Used for named parameters or variants.

Fields

name: Stringvalue: T

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Visit all the formats in self in a depth-first way. Variables are not supported and will cause an error. Read more

Mutably visit all the formats in self in a depth-first way. Read more

Update variables and add missing enum variants so that the terms match. This is a special case of term unification: Read more

Whether this format is a variable with no known value yet.

Finalize the formats within self by removing variables and making sure that all eligible tuples are compressed into a TupleArray. Return an error if any variable has an unknown value. Read more

Attempt to remove known variables within self. Silently abort if some variables have unknown values. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.