Struct aster::struct_def::StructFieldBuilder [] [src]

pub struct StructFieldBuilder<F = Identity> {
    // some fields omitted
}

Methods

impl StructFieldBuilder

fn named<T>(name: T) -> Self where T: ToIdent

fn unnamed() -> Self

impl<F> StructFieldBuilder<F> where F: Invoke<StructField>

fn named_with_callback<T>(id: T, callback: F) -> Self where T: ToIdent

fn unnamed_with_callback(callback: F) -> Self

fn span(self, span: Span) -> Self

fn pub_(self) -> Self

fn attr(self) -> AttrBuilder<Self>

fn build_ty(self, ty: P<Ty>) -> F::Result

fn ty(self) -> TyBuilder<Self>

Trait Implementations

impl<F> Invoke<Attribute> for StructFieldBuilder<F>

type Result = Self

fn invoke(self, attr: Attribute) -> Self

impl<F> Invoke<P<Ty>> for StructFieldBuilder<F> where F: Invoke<StructField>

type Result = F::Result

fn invoke(self, ty: P<Ty>) -> F::Result