pub struct PolicyIntentRequestDetailsBody {
pub name: Option<PolicyIntentRequestDetailsBodyName>,
pub owner: Option<OwnerInput>,
pub owner_id: Option<OwnerIdInput>,
pub rules: Vec<PolicyRuleRequestBody>,
}Expand description
PolicyIntentRequestDetailsBody
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<PolicyIntentRequestDetailsBodyName>Name to assign to policy.
owner: Option<OwnerInput>§owner_id: Option<OwnerIdInput>§rules: Vec<PolicyRuleRequestBody>Trait Implementations§
Source§impl Clone for PolicyIntentRequestDetailsBody
impl Clone for PolicyIntentRequestDetailsBody
Source§fn clone(&self) -> PolicyIntentRequestDetailsBody
fn clone(&self) -> PolicyIntentRequestDetailsBody
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<'de> Deserialize<'de> for PolicyIntentRequestDetailsBody
impl<'de> Deserialize<'de> for PolicyIntentRequestDetailsBody
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<&PolicyIntentRequestDetailsBody> for PolicyIntentRequestDetailsBody
impl From<&PolicyIntentRequestDetailsBody> for PolicyIntentRequestDetailsBody
Source§fn from(value: &PolicyIntentRequestDetailsBody) -> Self
fn from(value: &PolicyIntentRequestDetailsBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyIntentRequestDetailsBody
impl RefUnwindSafe for PolicyIntentRequestDetailsBody
impl Send for PolicyIntentRequestDetailsBody
impl Sync for PolicyIntentRequestDetailsBody
impl Unpin for PolicyIntentRequestDetailsBody
impl UnsafeUnpin for PolicyIntentRequestDetailsBody
impl UnwindSafe for PolicyIntentRequestDetailsBody
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