pub struct PermissionSet {
pub description: String,
pub id: String,
pub platforms: PlatformPermissions,
}Expand description
A permission set that can be applied across different cloud platforms
JSON schema
{
"description": "A permission set that can be applied across different cloud platforms",
"type": "object",
"required": [
"description",
"id",
"platforms"
],
"properties": {
"description": {
"description": "Human-readable description of what this permission set allows",
"type": "string"
},
"id": {
"description": "Unique identifier for the permission set (e.g., \"storage/data-read\")",
"type": "string"
},
"platforms": {
"description": "Platform-specific permission configurations",
"allOf": [
{
"$ref": "#/components/schemas/PlatformPermissions"
}
]
}
},
"additionalProperties": false
}Fields§
§description: StringHuman-readable description of what this permission set allows
id: StringUnique identifier for the permission set (e.g., “storage/data-read”)
platforms: PlatformPermissionsPlatform-specific permission configurations
Implementations§
Source§impl PermissionSet
impl PermissionSet
pub fn builder() -> PermissionSet
Trait Implementations§
Source§impl Clone for PermissionSet
impl Clone for PermissionSet
Source§fn clone(&self) -> PermissionSet
fn clone(&self) -> PermissionSet
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 PermissionSet
impl Debug for PermissionSet
Source§impl<'de> Deserialize<'de> for PermissionSet
impl<'de> Deserialize<'de> for PermissionSet
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<&PermissionSet> for PermissionSet
impl From<&PermissionSet> for PermissionSet
Source§fn from(value: &PermissionSet) -> Self
fn from(value: &PermissionSet) -> Self
Converts to this type from the input type.
Source§impl From<PermissionSet> for PermissionSet
impl From<PermissionSet> for PermissionSet
Source§fn from(value: PermissionSet) -> Self
fn from(value: PermissionSet) -> 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.
Source§impl Serialize for PermissionSet
impl Serialize for PermissionSet
Source§impl TryFrom<PermissionSet> for PermissionSet
impl TryFrom<PermissionSet> for PermissionSet
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PermissionSet) -> Result<Self, ConversionError>
fn try_from(value: PermissionSet) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PermissionSet
impl RefUnwindSafe for PermissionSet
impl Send for PermissionSet
impl Sync for PermissionSet
impl Unpin for PermissionSet
impl UnsafeUnpin for PermissionSet
impl UnwindSafe for PermissionSet
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