[][src]Struct rsgen_avro::GeneratorBuilder

pub struct GeneratorBuilder { /* fields omitted */ }

A builder class to customize Generator.

Methods

impl GeneratorBuilder[src]

pub fn new() -> GeneratorBuilder[src]

Creates a new GeneratorBuilder.

pub fn precision(self, precision: usize) -> GeneratorBuilder[src]

Sets the precision for default values of f32/f64 fields.

pub fn nullable(self, nullable: bool) -> GeneratorBuilder[src]

Puts default value when deserializing null field. Doesn't apply to union fields ["null", "Foo"], which are Option<Foo>.

pub fn build(self) -> Result<Generator>[src]

Create a Generator with the builder parameters.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self