Struct devise_core::DeriveGenerator[][src]

pub struct DeriveGenerator {
    pub input: ItemInput,
    pub item: TraitItem,
    pub support: Support,
    pub validator: Option<Box<dyn Validator>>,
    pub inner_mappers: Vec<Box<dyn Mapper>>,
    pub outer_mappers: Vec<Box<dyn Mapper>>,
    pub type_bound_mapper: Option<Box<dyn Mapper>>,
    // some fields omitted
}

Fields

input: ItemInputitem: TraitItemsupport: Supportvalidator: Option<Box<dyn Validator>>inner_mappers: Vec<Box<dyn Mapper>>outer_mappers: Vec<Box<dyn Mapper>>type_bound_mapper: Option<Box<dyn Mapper>>

Implementations

Take the 0-indexed trait_genth generic in the generics in impl<..> being built and substitute those tokens in place of the 0-indexed impl_genth generic of the same kind in the input type.

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.