pub struct SchemaBuilder { /* private fields */ }
Expand description
Schema builder.
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
Sourcepub fn with_fields(
self,
fields: impl IntoIterator<Item = NestedFieldRef>,
) -> Self
pub fn with_fields( self, fields: impl IntoIterator<Item = NestedFieldRef>, ) -> Self
Add fields to schema builder.
Sourcepub fn with_schema_id(self, schema_id: i32) -> Self
pub fn with_schema_id(self, schema_id: i32) -> Self
Set schema id.
Sourcepub fn with_identifier_field_ids(
self,
ids: impl IntoIterator<Item = i32>,
) -> Self
pub fn with_identifier_field_ids( self, ids: impl IntoIterator<Item = i32>, ) -> Self
Set identifier field ids.
Sourcepub fn with_alias(self, alias_to_id: BiHashMap<String, i32>) -> Self
pub fn with_alias(self, alias_to_id: BiHashMap<String, i32>) -> Self
Set alias to filed id mapping.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaBuilder
impl RefUnwindSafe for SchemaBuilder
impl Send for SchemaBuilder
impl Sync for SchemaBuilder
impl Unpin for SchemaBuilder
impl UnwindSafe for SchemaBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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