pub struct SchemaDescriptor {
pub id: SchemaId,
pub version: SchemaVersion,
pub schema: PointSchema,
}Expand description
Named, versioned PointSchema contract.
Fields§
§id: SchemaIdFamily id shared across compatible revisions.
version: SchemaVersionRevision selected for this descriptor.
schema: PointSchemaConcrete columns.
Implementations§
Source§impl SchemaDescriptor
impl SchemaDescriptor
Sourcepub fn try_new(
id: impl Into<SchemaId>,
version: SchemaVersion,
schema: PointSchema,
) -> RecordsResult<Self>
pub fn try_new( id: impl Into<SchemaId>, version: SchemaVersion, schema: PointSchema, ) -> RecordsResult<Self>
Creates a validated schema descriptor.
Sourcepub fn point_schema(&self) -> &PointSchema
pub fn point_schema(&self) -> &PointSchema
Returns the point schema.
Trait Implementations§
Source§impl Clone for SchemaDescriptor
impl Clone for SchemaDescriptor
Source§fn clone(&self) -> SchemaDescriptor
fn clone(&self) -> SchemaDescriptor
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 SchemaDescriptor
impl Debug for SchemaDescriptor
Source§impl PartialEq for SchemaDescriptor
impl PartialEq for SchemaDescriptor
Source§fn eq(&self, other: &SchemaDescriptor) -> bool
fn eq(&self, other: &SchemaDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SchemaDescriptor
impl StructuralPartialEq for SchemaDescriptor
Auto Trait Implementations§
impl Freeze for SchemaDescriptor
impl RefUnwindSafe for SchemaDescriptor
impl Send for SchemaDescriptor
impl Sync for SchemaDescriptor
impl Unpin for SchemaDescriptor
impl UnsafeUnpin for SchemaDescriptor
impl UnwindSafe for SchemaDescriptor
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