pub struct PolicyRuleRequestBody {
pub action: PolicyAction,
pub conditions: Vec<PolicyCondition>,
pub method: PolicyMethod,
pub name: PolicyRuleRequestBodyName,
}Expand description
The rules that apply to each method the policy covers.
JSON schema
{
"title": "PolicyRuleRequestBody",
"description": "The rules that apply to each method the policy
covers.",
"type": "object",
"required": [
"action",
"conditions",
"method",
"name"
],
"properties": {
"action": {
"$ref": "#/components/schemas/PolicyAction"
},
"conditions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PolicyCondition"
}
},
"method": {
"allOf": [
{
"$ref": "#/components/schemas/PolicyMethod"
},
{
"description": "Method the rule applies to."
}
]
},
"name": {
"type": "string",
"maxLength": 50,
"minLength": 1
}
}
}Fields§
§action: PolicyAction§conditions: Vec<PolicyCondition>§method: PolicyMethod§name: PolicyRuleRequestBodyNameTrait Implementations§
Source§impl Clone for PolicyRuleRequestBody
impl Clone for PolicyRuleRequestBody
Source§fn clone(&self) -> PolicyRuleRequestBody
fn clone(&self) -> PolicyRuleRequestBody
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 PolicyRuleRequestBody
impl Debug for PolicyRuleRequestBody
Source§impl<'de> Deserialize<'de> for PolicyRuleRequestBody
impl<'de> Deserialize<'de> for PolicyRuleRequestBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PolicyRuleRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PolicyRuleRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PolicyRuleRequestBody> for PolicyRuleRequestBody
impl From<&PolicyRuleRequestBody> for PolicyRuleRequestBody
Source§fn from(value: &PolicyRuleRequestBody) -> PolicyRuleRequestBody
fn from(value: &PolicyRuleRequestBody) -> PolicyRuleRequestBody
Converts to this type from the input type.
Source§impl Serialize for PolicyRuleRequestBody
impl Serialize for PolicyRuleRequestBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for PolicyRuleRequestBody
impl RefUnwindSafe for PolicyRuleRequestBody
impl Send for PolicyRuleRequestBody
impl Sync for PolicyRuleRequestBody
impl Unpin for PolicyRuleRequestBody
impl UnwindSafe for PolicyRuleRequestBody
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