pub struct RecordSchema {
pub fields: Vec<RecordField>,
}Expand description
Schema for a record literal.
Fields§
§fields: Vec<RecordField>Fields in declaration order.
Implementations§
Source§impl RecordSchema
impl RecordSchema
Sourcepub fn new(fields: Vec<RecordField>) -> Self
pub fn new(fields: Vec<RecordField>) -> Self
Create a schema from a field list.
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 (const: unstable) · 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 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 UnsafeUnpin 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