pub struct EntitySchema {
pub name: &'static str,
pub fields: &'static [FieldSchema],
pub primary_key: &'static str,
pub indexes: &'static [IndexSchema],
/* private fields */
}Expand description
Compiled entity metadata emitted by the entity macro.
Fields§
§name: &'static strLogical entity identity, included in the stored contract.
fields: &'static [FieldSchema]Fields in canonical name order.
primary_key: &'static strSupplied scalar primary-key field; its type must implement PrimaryKey.
indexes: &'static [IndexSchema]Indexes ordered by logical name.
Auto Trait Implementations§
impl Forget for EntitySchema
impl Freeze for EntitySchema
impl Move for EntitySchema
impl RefUnwindSafe for EntitySchema
impl Send for EntitySchema
impl Sync for EntitySchema
impl Unpin for EntitySchema
impl UnsafeUnpin for EntitySchema
impl UnwindSafe for EntitySchema
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