#[non_exhaustive]pub struct PolicySet {
pub policy_set_id: String,
pub description: String,
pub policies: Vec<Policy>,
/* private fields */
}Expand description
PolicySet representation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.policy_set_id: StringRequired. ID of the Policy set.
description: StringOptional. Description of the Policy set.
policies: Vec<Policy>Required. List of policies.
Implementations§
Source§impl PolicySet
impl PolicySet
pub fn new() -> Self
Sourcepub fn set_policy_set_id<T: Into<String>>(self, v: T) -> Self
pub fn set_policy_set_id<T: Into<String>>(self, v: T) -> Self
Sets the value of policy_set_id.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_policies<T, V>(self, v: T) -> Self
pub fn set_policies<T, V>(self, v: T) -> Self
Sets the value of policies.
Trait Implementations§
impl StructuralPartialEq for PolicySet
Auto Trait Implementations§
impl Freeze for PolicySet
impl RefUnwindSafe for PolicySet
impl Send for PolicySet
impl Sync for PolicySet
impl Unpin for PolicySet
impl UnwindSafe for PolicySet
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