pub struct EntityGrant {
pub data: Option<HashMap<String, Value>>,
pub entity: Option<Box<Entity>>,
pub id: Option<Uuid>,
pub insert_instant: Option<i64>,
pub last_update_instant: Option<i64>,
pub permissions: Option<Vec<Value>>,
pub recipient_entity_id: Option<Uuid>,
pub user_id: Option<Uuid>,
}
Expand description
EntityGrant : A grant for an entity to a user or another entity.
Fields§
§data: Option<HashMap<String, Value>>
§entity: Option<Box<Entity>>
§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.
permissions: Option<Vec<Value>>
§recipient_entity_id: Option<Uuid>
§user_id: Option<Uuid>
Implementations§
Source§impl EntityGrant
impl EntityGrant
Sourcepub fn new() -> EntityGrant
pub fn new() -> EntityGrant
A grant for an entity to a user or another entity.
Trait Implementations§
Source§impl Clone for EntityGrant
impl Clone for EntityGrant
Source§fn clone(&self) -> EntityGrant
fn clone(&self) -> EntityGrant
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EntityGrant
impl Debug for EntityGrant
Source§impl Default for EntityGrant
impl Default for EntityGrant
Source§fn default() -> EntityGrant
fn default() -> EntityGrant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntityGrant
impl<'de> Deserialize<'de> for EntityGrant
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 EntityGrant
impl PartialEq for EntityGrant
Source§impl Serialize for EntityGrant
impl Serialize for EntityGrant
impl StructuralPartialEq for EntityGrant
Auto Trait Implementations§
impl Freeze for EntityGrant
impl RefUnwindSafe for EntityGrant
impl Send for EntityGrant
impl Sync for EntityGrant
impl Unpin for EntityGrant
impl UnwindSafe for EntityGrant
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