pub enum AccessKeyPermissionView {
FullAccess,
FunctionCall {
allowance: Option<String>,
method_names: Vec<String>,
receiver_id: String,
},
}
Expand description
Describes the permission scope for an access key. Whether it is a function call or a full access key.
JSON schema
{
"description": "Describes the permission scope for an access key. Whether it is a function call or a full access key.",
"oneOf": [
{
"type": "string",
"enum": [
"FullAccess"
]
},
{
"type": "object",
"required": [
"FunctionCall"
],
"properties": {
"FunctionCall": {
"type": "object",
"required": [
"method_names",
"receiver_id"
],
"properties": {
"allowance": {
"type": [
"string",
"null"
]
},
"method_names": {
"type": "array",
"items": {
"type": "string"
}
},
"receiver_id": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
]
}
Variants§
Trait Implementations§
Source§impl Clone for AccessKeyPermissionView
impl Clone for AccessKeyPermissionView
Source§fn clone(&self) -> AccessKeyPermissionView
fn clone(&self) -> AccessKeyPermissionView
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 AccessKeyPermissionView
impl Debug for AccessKeyPermissionView
Source§impl<'de> Deserialize<'de> for AccessKeyPermissionView
impl<'de> Deserialize<'de> for AccessKeyPermissionView
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<&AccessKeyPermissionView> for AccessKeyPermissionView
impl From<&AccessKeyPermissionView> for AccessKeyPermissionView
Source§fn from(value: &AccessKeyPermissionView) -> Self
fn from(value: &AccessKeyPermissionView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccessKeyPermissionView
impl RefUnwindSafe for AccessKeyPermissionView
impl Send for AccessKeyPermissionView
impl Sync for AccessKeyPermissionView
impl Unpin for AccessKeyPermissionView
impl UnwindSafe for AccessKeyPermissionView
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