pub struct CreatePolicyUpdateIntentBody {
pub name: Option<CreatePolicyUpdateIntentBodyName>,
pub owner: Option<OwnerInput>,
pub owner_id: Option<OwnerIdInput>,
pub rules: Vec<PolicyRuleRequestBody>,
}Expand description
CreatePolicyUpdateIntentBody
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": {
"$ref": "#/components/schemas/OwnerIdInput"
},
"rules": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PolicyRuleRequestBody"
}
}
}
}Fields§
§name: Option<CreatePolicyUpdateIntentBodyName>Name to assign to policy.
owner: Option<OwnerInput>§owner_id: Option<OwnerIdInput>§rules: Vec<PolicyRuleRequestBody>Trait Implementations§
Source§impl Clone for CreatePolicyUpdateIntentBody
impl Clone for CreatePolicyUpdateIntentBody
Source§fn clone(&self) -> CreatePolicyUpdateIntentBody
fn clone(&self) -> CreatePolicyUpdateIntentBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreatePolicyUpdateIntentBody
impl Debug for CreatePolicyUpdateIntentBody
Source§impl Default for CreatePolicyUpdateIntentBody
impl Default for CreatePolicyUpdateIntentBody
Source§fn default() -> CreatePolicyUpdateIntentBody
fn default() -> CreatePolicyUpdateIntentBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreatePolicyUpdateIntentBody
impl<'de> Deserialize<'de> for CreatePolicyUpdateIntentBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreatePolicyUpdateIntentBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreatePolicyUpdateIntentBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CreatePolicyUpdateIntentBody> for CreatePolicyUpdateIntentBody
impl From<&CreatePolicyUpdateIntentBody> for CreatePolicyUpdateIntentBody
Source§fn from(value: &CreatePolicyUpdateIntentBody) -> CreatePolicyUpdateIntentBody
fn from(value: &CreatePolicyUpdateIntentBody) -> CreatePolicyUpdateIntentBody
Converts to this type from the input type.
Source§impl Serialize for CreatePolicyUpdateIntentBody
impl Serialize for CreatePolicyUpdateIntentBody
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 CreatePolicyUpdateIntentBody
impl RefUnwindSafe for CreatePolicyUpdateIntentBody
impl Send for CreatePolicyUpdateIntentBody
impl Sync for CreatePolicyUpdateIntentBody
impl Unpin for CreatePolicyUpdateIntentBody
impl UnsafeUnpin for CreatePolicyUpdateIntentBody
impl UnwindSafe for CreatePolicyUpdateIntentBody
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