Struct aster::variant::VariantStructBuilder [] [src]

pub struct VariantStructBuilder<F> {
    // some fields omitted
}

Methods

impl<F> VariantStructBuilder<F> where F: Invoke<P<Variant>>

fn with_field(self, field: StructField) -> StructDefBuilder<Self>

fn field<T>(self, id: T) -> StructFieldBuilder<StructDefBuilder<Self>> where T: ToIdent

fn build(self) -> F::Result

Trait Implementations

impl<F> Invoke<P<StructDef>> for VariantStructBuilder<F> where F: Invoke<P<Variant>>

type Result = F::Result

fn invoke(self, struct_def: P<StructDef>) -> F::Result