pub struct CollectionIr {
pub id_field: String,
pub fields: Vec<FieldIr>,
pub indexes: Vec<IndexIr>,
}Expand description
Compiled representation of one collection in the schema.
Fields§
§id_field: StringName of the primary-key field (must have type Id).
fields: Vec<FieldIr>All fields in declaration order.
indexes: Vec<IndexIr>Secondary indexes defined on this collection.
Implementations§
Trait Implementations§
Source§impl Clone for CollectionIr
impl Clone for CollectionIr
Source§fn clone(&self) -> CollectionIr
fn clone(&self) -> CollectionIr
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 moreAuto Trait Implementations§
impl Freeze for CollectionIr
impl RefUnwindSafe for CollectionIr
impl Send for CollectionIr
impl Sync for CollectionIr
impl Unpin for CollectionIr
impl UnsafeUnpin for CollectionIr
impl UnwindSafe for CollectionIr
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