⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here
struct Container<'a> {
    path: Path,
    ty: ContainerType<'a>,
    err_name: String,
    is_enum_variant: bool,
}
Expand description

Data container

Either describes a struct or an enum variant.

Fields

path: Pathty: ContainerType<'a>err_name: Stringis_enum_variant: bool

Implementations

Construct a container based on fields, identifier and attributes.

Fails if the variant has no fields or incompatible attributes.

Build derivation body for a struct.

Trait Implementations

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.