pub struct EntitySchema {
pub name: String,
pub label: String,
pub fields: Vec<FieldSchema>,
pub read_capability: String,
}Expand description
One manageable entity (e.g. identity’s “users”).
Fields§
§name: StringStable entity key, unique within the module, e.g. “users”.
label: StringHuman label for the console, e.g. “Users”.
fields: Vec<FieldSchema>Ordered field descriptors driving list columns / detail rows.
read_capability: StringCapability required to read this entity. Declared now; gated only coarsely (AdminActor) this step. Fine-grained RBAC is a later spec.
Trait Implementations§
Source§impl Clone for EntitySchema
impl Clone for EntitySchema
Source§fn clone(&self) -> EntitySchema
fn clone(&self) -> EntitySchema
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 ComposeSchema for EntitySchema
impl ComposeSchema for EntitySchema
Source§impl Debug for EntitySchema
impl Debug for EntitySchema
Source§impl<'de> Deserialize<'de> for EntitySchema
impl<'de> Deserialize<'de> for EntitySchema
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
impl Eq for EntitySchema
Source§impl PartialEq for EntitySchema
impl PartialEq for EntitySchema
Source§fn eq(&self, other: &EntitySchema) -> bool
fn eq(&self, other: &EntitySchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EntitySchema
impl Serialize for EntitySchema
impl StructuralPartialEq for EntitySchema
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.