pub struct UpdatePolicyBody {
pub description: Option<UpdatePolicyBodyDescription>,
pub rules: Vec<Rule>,
}
Expand description
UpdatePolicyBody
JSON schema
{
"type": "object",
"required": [
"rules"
],
"properties": {
"description": {
"description": "An optional human-readable description for the policy.\nPolicy descriptions can consist of alphanumeric characters, spaces, commas, and periods, and be 50 characters or less.",
"examples": [
"Default policy"
],
"type": "string",
"pattern": "^[A-Za-z0-9 ,.]{1,50}$"
},
"rules": {
"description": "A list of rules that comprise the policy. There is a limit of 10 rules per policy.",
"type": "array",
"items": {
"$ref": "#/components/schemas/Rule"
}
}
}
}
Fields§
§description: Option<UpdatePolicyBodyDescription>
An optional human-readable description for the policy. Policy descriptions can consist of alphanumeric characters, spaces, commas, and periods, and be 50 characters or less.
rules: Vec<Rule>
A list of rules that comprise the policy. There is a limit of 10 rules per policy.
Implementations§
Source§impl UpdatePolicyBody
impl UpdatePolicyBody
pub fn builder() -> UpdatePolicyBody
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<'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.
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.
Source§impl Serialize for UpdatePolicyBody
impl Serialize for UpdatePolicyBody
Source§impl TryFrom<UpdatePolicyBody> for UpdatePolicyBody
impl TryFrom<UpdatePolicyBody> for UpdatePolicyBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UpdatePolicyBody) -> Result<Self, ConversionError>
fn try_from(value: UpdatePolicyBody) -> Result<Self, ConversionError>
Performs the conversion.
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