pub struct EntitySchemaDescription {
pub entity_path: String,
pub entity_name: String,
pub primary_key: String,
pub fields: Vec<EntityFieldDescription>,
pub indexes: Vec<EntityIndexDescription>,
pub relations: Vec<EntityRelationDescription>,
}Expand description
EntitySchemaDescription
Stable schema-introspection payload for one runtime entity model.
This mirrors SQL-style DESCRIBE intent for fields, indexes, and relations.
Fields§
§entity_path: String§entity_name: String§primary_key: String§fields: Vec<EntityFieldDescription>§indexes: Vec<EntityIndexDescription>§relations: Vec<EntityRelationDescription>Trait Implementations§
Source§impl CandidType for EntitySchemaDescription
impl CandidType for EntitySchemaDescription
Source§impl Clone for EntitySchemaDescription
impl Clone for EntitySchemaDescription
Source§fn clone(&self) -> EntitySchemaDescription
fn clone(&self) -> EntitySchemaDescription
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 moreSource§impl Debug for EntitySchemaDescription
impl Debug for EntitySchemaDescription
Source§impl<'de> Deserialize<'de> for EntitySchemaDescription
impl<'de> Deserialize<'de> for EntitySchemaDescription
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EntitySchemaDescription
impl PartialEq for EntitySchemaDescription
Source§impl Serialize for EntitySchemaDescription
impl Serialize for EntitySchemaDescription
impl Eq for EntitySchemaDescription
impl StructuralPartialEq for EntitySchemaDescription
Auto Trait Implementations§
impl Freeze for EntitySchemaDescription
impl RefUnwindSafe for EntitySchemaDescription
impl Send for EntitySchemaDescription
impl Sync for EntitySchemaDescription
impl Unpin for EntitySchemaDescription
impl UnsafeUnpin for EntitySchemaDescription
impl UnwindSafe for EntitySchemaDescription
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