pub enum PermissionSetReference {
Variant0(String),
Variant1(PermissionSet),
}Expand description
Reference to a permission set - either by name or inline definition
JSON schema
{
"description": "Reference to a permission set - either by name or inline definition",
"oneOf": [
{
"description": "Reference to a built-in permission set by name (e.g., \"storage/data-read\")",
"type": "string"
},
{
"description": "Inline permission set definition",
"allOf": [
{
"$ref": "#/components/schemas/PermissionSet"
}
]
}
]
}Variants§
Variant0(String)
Variant1(PermissionSet)
Trait Implementations§
Source§impl Clone for PermissionSetReference
impl Clone for PermissionSetReference
Source§fn clone(&self) -> PermissionSetReference
fn clone(&self) -> PermissionSetReference
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 PermissionSetReference
impl Debug for PermissionSetReference
Source§impl<'de> Deserialize<'de> for PermissionSetReference
impl<'de> Deserialize<'de> for PermissionSetReference
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<&PermissionSetReference> for PermissionSetReference
impl From<&PermissionSetReference> for PermissionSetReference
Source§fn from(value: &PermissionSetReference) -> Self
fn from(value: &PermissionSetReference) -> Self
Converts to this type from the input type.
Source§impl From<PermissionSet> for PermissionSetReference
impl From<PermissionSet> for PermissionSetReference
Source§fn from(value: PermissionSet) -> Self
fn from(value: PermissionSet) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PermissionSetReference
impl RefUnwindSafe for PermissionSetReference
impl Send for PermissionSetReference
impl Sync for PermissionSetReference
impl Unpin for PermissionSetReference
impl UnsafeUnpin for PermissionSetReference
impl UnwindSafe for PermissionSetReference
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