pub struct CollectionSchema {
pub name: String,
pub version: SchemaVersion,
pub fields: Vec<FieldDef>,
pub id: Option<CollectionId>,
}Expand description
High-level description of a collection (name, version, fields); used by tooling and derives.
Fields§
§name: String§version: SchemaVersion§fields: Vec<FieldDef>§id: Option<CollectionId>Trait Implementations§
Source§impl Clone for CollectionSchema
impl Clone for CollectionSchema
Source§fn clone(&self) -> CollectionSchema
fn clone(&self) -> CollectionSchema
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 CollectionSchema
impl Debug for CollectionSchema
Source§impl PartialEq for CollectionSchema
impl PartialEq for CollectionSchema
Source§fn eq(&self, other: &CollectionSchema) -> bool
fn eq(&self, other: &CollectionSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CollectionSchema
Auto Trait Implementations§
impl Freeze for CollectionSchema
impl RefUnwindSafe for CollectionSchema
impl Send for CollectionSchema
impl Sync for CollectionSchema
impl Unpin for CollectionSchema
impl UnsafeUnpin for CollectionSchema
impl UnwindSafe for CollectionSchema
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