pub struct SchemaMetadata { /* private fields */ }Expand description
Schema metadata.
Implementations§
Source§impl SchemaMetadata
impl SchemaMetadata
Sourcepub const fn new(reference: SchemaRef) -> SchemaMetadata
pub const fn new(reference: SchemaRef) -> SchemaMetadata
Creates schema metadata.
Sourcepub fn with_version(self, version: SchemaVersion) -> SchemaMetadata
pub fn with_version(self, version: SchemaVersion) -> SchemaMetadata
Adds a schema version label.
Sourcepub fn with_objects(self, objects: Vec<SchemaObject>) -> SchemaMetadata
pub fn with_objects(self, objects: Vec<SchemaObject>) -> SchemaMetadata
Adds schema objects.
Sourcepub const fn version(&self) -> Option<&SchemaVersion>
pub const fn version(&self) -> Option<&SchemaVersion>
Returns the optional schema version.
Sourcepub fn objects(&self) -> &[SchemaObject]
pub fn objects(&self) -> &[SchemaObject]
Returns the schema object list.
Trait Implementations§
Source§impl Clone for SchemaMetadata
impl Clone for SchemaMetadata
Source§fn clone(&self) -> SchemaMetadata
fn clone(&self) -> SchemaMetadata
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 SchemaMetadata
impl Debug for SchemaMetadata
Source§impl PartialEq for SchemaMetadata
impl PartialEq for SchemaMetadata
Source§fn eq(&self, other: &SchemaMetadata) -> bool
fn eq(&self, other: &SchemaMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SchemaMetadata
impl StructuralPartialEq for SchemaMetadata
Auto Trait Implementations§
impl Freeze for SchemaMetadata
impl RefUnwindSafe for SchemaMetadata
impl Send for SchemaMetadata
impl Sync for SchemaMetadata
impl Unpin for SchemaMetadata
impl UnsafeUnpin for SchemaMetadata
impl UnwindSafe for SchemaMetadata
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