pub struct RecordSchema {
pub name: Name,
pub aliases: Aliases,
pub doc: Documentation,
pub fields: Vec<RecordField>,
pub lookup: BTreeMap<String, usize>,
pub attributes: BTreeMap<String, Value>,
}Expand description
A description of an Enum schema.
Fields§
§name: NameThe name of the schema
aliases: AliasesThe aliases of the schema
doc: DocumentationThe documentation of the schema
fields: Vec<RecordField>The set of fields of the schema
lookup: BTreeMap<String, usize>The lookup table maps field names to their position in the Vec
of fields.
attributes: BTreeMap<String, Value>The custom attributes of the schema
Implementations§
Source§impl RecordSchema
impl RecordSchema
Sourcepub fn builder() -> RecordSchemaBuilder
pub fn builder() -> RecordSchemaBuilder
Create an instance of RecordSchema using the builder syntax
Trait Implementations§
Source§impl Clone for RecordSchema
impl Clone for RecordSchema
Source§fn clone(&self) -> RecordSchema
fn clone(&self) -> RecordSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecordSchema
impl RefUnwindSafe for RecordSchema
impl Send for RecordSchema
impl Sync for RecordSchema
impl Unpin for RecordSchema
impl UnwindSafe for RecordSchema
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