pub struct Entity {
pub data: Option<HashMap<String, Value>>,
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub id: Option<Uuid>,
pub insert_instant: Option<i64>,
pub last_update_instant: Option<i64>,
pub name: Option<String>,
pub parent_id: Option<Uuid>,
pub tenant_id: Option<Uuid>,
pub type: Option<Box<EntityType>>,
}
Expand description
Entity : Models an entity that a user can be granted permissions to. Or an entity that can be granted permissions to another entity.
Fields§
§data: Option<HashMap<String, Value>>
§client_id: Option<String>
§client_secret: Option<String>
§id: Option<Uuid>
§insert_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
last_update_instant: Option<i64>
The number of milliseconds since the unix epoch: January 1, 1970 00:00:00 UTC. This value is always in UTC.
name: Option<String>
§parent_id: Option<Uuid>
§tenant_id: Option<Uuid>
§type: Option<Box<EntityType>>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
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 StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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