pub struct Permission {
pub access: AccessType,
pub id: String,
pub principal: Principal,
}
Expand description
A specific permission granted to a principal.
JSON schema
{
"description": "A specific permission granted to a principal.",
"type": "object",
"required": [
"access",
"id",
"principal"
],
"properties": {
"access": {
"$ref": "#/components/schemas/AccessType"
},
"id": {
"description": "Id for the Permission",
"type": "string"
},
"principal": {
"$ref": "#/components/schemas/Principal"
}
},
"additionalProperties": false,
"x-schema-name": "Permission"
}
Fields§
§access: AccessType
§id: String
Id for the Permission
principal: Principal
Trait Implementations§
Source§impl Clone for Permission
impl Clone for Permission
Source§fn clone(&self) -> Permission
fn clone(&self) -> Permission
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 Permission
impl Debug for Permission
Source§impl<'de> Deserialize<'de> for Permission
impl<'de> Deserialize<'de> for Permission
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 From<&Permission> for Permission
impl From<&Permission> for Permission
Source§fn from(value: &Permission) -> Self
fn from(value: &Permission) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Permission
impl RefUnwindSafe for Permission
impl Send for Permission
impl Sync for Permission
impl Unpin for Permission
impl UnwindSafe for Permission
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