pub struct UpdatePolicyBody {
pub name: Option<UpdatePolicyBodyName>,
pub owner: Option<OwnerInput>,
pub owner_id: Option<OwnerIdInput>,
pub rules: Vec<PolicyRuleRequestBody>,
}Expand description
UpdatePolicyBody
JSON schema
{
"type": "object",
"properties": {
"name": {
"description": "Name to assign to policy.",
"type": "string",
"maxLength": 50,
"minLength": 1
},
"owner": {
"$ref": "#/components/schemas/OwnerInput"
},
"owner_id": {
"allOf": [
{
"$ref": "#/components/schemas/OwnerIdInput"
},
{}
]
},
"rules": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PolicyRuleRequestBody"
}
}
}
}Fields§
§name: Option<UpdatePolicyBodyName>Name to assign to policy.
owner: Option<OwnerInput>§owner_id: Option<OwnerIdInput>§rules: Vec<PolicyRuleRequestBody>Trait Implementations§
Source§impl Clone for UpdatePolicyBody
impl Clone for UpdatePolicyBody
Source§fn clone(&self) -> UpdatePolicyBody
fn clone(&self) -> UpdatePolicyBody
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 UpdatePolicyBody
impl Debug for UpdatePolicyBody
Source§impl Default for UpdatePolicyBody
impl Default for UpdatePolicyBody
Source§impl<'de> Deserialize<'de> for UpdatePolicyBody
impl<'de> Deserialize<'de> for UpdatePolicyBody
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<&UpdatePolicyBody> for UpdatePolicyBody
impl From<&UpdatePolicyBody> for UpdatePolicyBody
Source§fn from(value: &UpdatePolicyBody) -> Self
fn from(value: &UpdatePolicyBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdatePolicyBody
impl RefUnwindSafe for UpdatePolicyBody
impl Send for UpdatePolicyBody
impl Sync for UpdatePolicyBody
impl Unpin for UpdatePolicyBody
impl UnwindSafe for UpdatePolicyBody
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