pub struct EntityConfig {
pub singular: String,
pub plural: String,
pub auth: EntityAuthConfig,
}Expand description
Configuration for an entity type
Fields§
§singular: StringSingular form (e.g., “user”, “company”)
plural: StringPlural form (e.g., “users”, “companies”)
auth: EntityAuthConfigAuthorization configuration
Trait Implementations§
Source§impl Clone for EntityConfig
impl Clone for EntityConfig
Source§fn clone(&self) -> EntityConfig
fn clone(&self) -> EntityConfig
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 EntityConfig
impl Debug for EntityConfig
Source§impl<'de> Deserialize<'de> for EntityConfig
impl<'de> Deserialize<'de> for EntityConfig
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
Auto Trait Implementations§
impl Freeze for EntityConfig
impl RefUnwindSafe for EntityConfig
impl Send for EntityConfig
impl Sync for EntityConfig
impl Unpin for EntityConfig
impl UnwindSafe for EntityConfig
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