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