Struct SchemaMetadata
pub struct SchemaMetadata { /* private fields */ }Expand description
Schema metadata.
Implementations§
§impl SchemaMetadata
impl SchemaMetadata
pub const fn new(reference: SchemaRef) -> SchemaMetadata
pub const fn new(reference: SchemaRef) -> SchemaMetadata
Creates schema metadata.
pub fn with_version(self, version: SchemaVersion) -> SchemaMetadata
pub fn with_version(self, version: SchemaVersion) -> SchemaMetadata
Adds a schema version label.
pub fn with_objects(self, objects: Vec<SchemaObject>) -> SchemaMetadata
pub fn with_objects(self, objects: Vec<SchemaObject>) -> SchemaMetadata
Adds schema objects.
pub const fn version(&self) -> Option<&SchemaVersion>
pub const fn version(&self) -> Option<&SchemaVersion>
Returns the optional schema version.
pub fn objects(&self) -> &[SchemaObject]
pub fn objects(&self) -> &[SchemaObject]
Returns the schema object list.
Trait Implementations§
§impl Clone for SchemaMetadata
impl Clone for SchemaMetadata
§fn clone(&self) -> SchemaMetadata
fn clone(&self) -> SchemaMetadata
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 more§impl Debug for SchemaMetadata
impl Debug for SchemaMetadata
§impl PartialEq for SchemaMetadata
impl PartialEq for SchemaMetadata
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