pub enum OperationApproval {
Variant0(OperationApprovalDecision),
Variant1 {
decision: OperationApprovalDecision,
max_risk: Option<String>,
},
}Expand description
Approval rule for the operations a pattern matches.
JSON schema
{
"description": "Approval rule for the operations a pattern matches.",
"oneOf": [
{
"$ref": "#/components/schemas/OperationApprovalDecision"
},
{
"description": "A decision plus the highest risk tier a wildcard access request may cover.",
"type": "object",
"required": [
"decision"
],
"properties": {
"decision": {
"$ref": "#/components/schemas/OperationApprovalDecision"
},
"maxRisk": {
"description": "Highest risk tier (`read-only`, `mutating`, `destructive`) a wildcard\naccess request for these operations may cover.",
"type": [
"string",
"null"
]
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for OperationApproval
impl Clone for OperationApproval
Source§impl Debug for OperationApproval
impl Debug for OperationApproval
Source§impl<'de> Deserialize<'de> for OperationApproval
impl<'de> Deserialize<'de> for OperationApproval
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<&OperationApproval> for OperationApproval
impl From<&OperationApproval> for OperationApproval
Source§fn from(value: &OperationApproval) -> Self
fn from(value: &OperationApproval) -> Self
Converts to this type from the input type.
Source§impl From<OperationApprovalDecision> for OperationApproval
impl From<OperationApprovalDecision> for OperationApproval
Source§fn from(value: OperationApprovalDecision) -> Self
fn from(value: OperationApprovalDecision) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for OperationApproval
impl Freeze for OperationApproval
impl Move for OperationApproval
impl RefUnwindSafe for OperationApproval
impl Send for OperationApproval
impl Sync for OperationApproval
impl Unpin for OperationApproval
impl UnsafeUnpin for OperationApproval
impl UnwindSafe for OperationApproval
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