pub struct SchemaBuilder<State>(/* private fields */);Expand description
Builder for serializing an instance of the Schema type.
Can be created using the Schema::builder method.
Implementations§
Source§impl SchemaBuilder<()>
impl SchemaBuilder<()>
Sourcepub fn endianness<T0>(self, value: T0) -> SchemaBuilder<(T0,)>
pub fn endianness<T0>(self, value: T0) -> SchemaBuilder<(T0,)>
Setter for the endianness field.
Sourcepub fn endianness_as_default(self) -> SchemaBuilder<(DefaultValue,)>
pub fn endianness_as_default(self) -> SchemaBuilder<(DefaultValue,)>
Sets the endianness field to the default value.
Source§impl<T0> SchemaBuilder<(T0,)>
impl<T0> SchemaBuilder<(T0,)>
Sourcepub fn fields<T1>(self, value: T1) -> SchemaBuilder<(T0, T1)>
pub fn fields<T1>(self, value: T1) -> SchemaBuilder<(T0, T1)>
Setter for the fields field.
Sourcepub fn fields_as_null(self) -> SchemaBuilder<(T0, ())>
pub fn fields_as_null(self) -> SchemaBuilder<(T0, ())>
Sets the fields field to null.
Source§impl<T0, T1> SchemaBuilder<(T0, T1)>
impl<T0, T1> SchemaBuilder<(T0, T1)>
Sourcepub fn custom_metadata<T2>(self, value: T2) -> SchemaBuilder<(T0, T1, T2)>
pub fn custom_metadata<T2>(self, value: T2) -> SchemaBuilder<(T0, T1, T2)>
Setter for the custom_metadata field.
Sourcepub fn custom_metadata_as_null(self) -> SchemaBuilder<(T0, T1, ())>
pub fn custom_metadata_as_null(self) -> SchemaBuilder<(T0, T1, ())>
Sets the custom_metadata field to null.
Source§impl<T0, T1, T2> SchemaBuilder<(T0, T1, T2)>
impl<T0, T1, T2> SchemaBuilder<(T0, T1, T2)>
Sourcepub fn features<T3>(self, value: T3) -> SchemaBuilder<(T0, T1, T2, T3)>
pub fn features<T3>(self, value: T3) -> SchemaBuilder<(T0, T1, T2, T3)>
Setter for the features field.
Sourcepub fn features_as_null(self) -> SchemaBuilder<(T0, T1, T2, ())>
pub fn features_as_null(self) -> SchemaBuilder<(T0, T1, T2, ())>
Sets the features field to null.
Source§impl<T0, T1, T2, T3> SchemaBuilder<(T0, T1, T2, T3)>
impl<T0, T1, T2, T3> SchemaBuilder<(T0, T1, T2, T3)>
Trait Implementations§
Source§impl<State: Debug> Debug for SchemaBuilder<State>
impl<State: Debug> Debug for SchemaBuilder<State>
impl<T0: WriteAsDefault<Endianness, Endianness>, T1: WriteAsOptional<Offset<[Offset<Field>]>>, T2: WriteAsOptional<Offset<[Offset<KeyValue>]>>, T3: WriteAsOptional<Offset<[Feature]>>> WriteAs<Offset<Schema>> for SchemaBuilder<(T0, T1, T2, T3)>
impl<T0: WriteAsDefault<Endianness, Endianness>, T1: WriteAsOptional<Offset<[Offset<Field>]>>, T2: WriteAsOptional<Offset<[Offset<KeyValue>]>>, T3: WriteAsOptional<Offset<[Feature]>>> WriteAsOffset<Schema> for SchemaBuilder<(T0, T1, T2, T3)>
impl<T0: WriteAsDefault<Endianness, Endianness>, T1: WriteAsOptional<Offset<[Offset<Field>]>>, T2: WriteAsOptional<Offset<[Offset<KeyValue>]>>, T3: WriteAsOptional<Offset<[Feature]>>> WriteAsOptional<Offset<Schema>> for SchemaBuilder<(T0, T1, T2, T3)>
Auto Trait Implementations§
impl<State> Freeze for SchemaBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for SchemaBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for SchemaBuilder<State>where
State: Send,
impl<State> Sync for SchemaBuilder<State>where
State: Sync,
impl<State> Unpin for SchemaBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for SchemaBuilder<State>where
State: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more