HasPartial

Trait HasPartial 

Source
pub trait HasPartial {
    type Partial: Partial<Target = Self>;
}
Expand description

Marker trait that is used to allow a derive macro to generate a new structure. This trait is useful for doign some trait-level contraining, but otherwise has no useful data.

Required Associated Types§

Source

type Partial: Partial<Target = Self>

The type that represents a partial state of Self obtained from a single configuration source. The idea is that you can build up many instances of HasPartial::Partial, combine them with Partial::override_with and then use them to build a single instance of Self.

Implementors§