pub struct RecordSchema {
pub properties: IndexMap<String, RecordFieldSchema>,
pub flatten: Vec<SchemaNodeId>,
pub unknown_fields: UnknownFieldsPolicy,
}Expand description
Record type with fixed named fields
Spec: lines 401-410
@variants.record
$variant: map
key = .text
value = .$types.type
$ext-type.unknown-fields = .$types.unknown-fields-policy (optional)Fields§
§properties: IndexMap<String, RecordFieldSchema>Fixed field schemas (field name -> field schema with metadata)
flatten: Vec<SchemaNodeId>Schemas to flatten into this record. Each must point to a Record or Union schema. Fields from flattened schemas are merged into this record’s field space.
unknown_fields: UnknownFieldsPolicyPolicy for unknown/additional fields (default: deny)
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 moreSource§impl Debug for RecordSchema
impl Debug for RecordSchema
Source§impl Default for RecordSchema
impl Default for RecordSchema
Source§fn default() -> RecordSchema
fn default() -> RecordSchema
Returns the “default value” for a type. Read more
Source§impl PartialEq for RecordSchema
impl PartialEq for RecordSchema
impl StructuralPartialEq for RecordSchema
Auto 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