#[non_exhaustive]pub struct PostureTemplate {
pub name: String,
pub revision_id: String,
pub description: String,
pub state: State,
pub policy_sets: Vec<PolicySet>,
/* private fields */
}Expand description
PostureTemplates Message describing PostureTemplate object.
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.name: StringOutput only. Identifier. The name of the Posture template will be of the format organizations/{organization}/locations/{location}/postureTemplates/{postureTemplate}
revision_id: StringOutput only. The revision_id of a PostureTemplate.
description: StringOutput only. Description of the Posture template.
state: StateOutput only. State of PostureTemplate resource.
policy_sets: Vec<PolicySet>Output only. Policy_sets to be used by the user.
Implementations§
Source§impl PostureTemplate
impl PostureTemplate
pub fn new() -> Self
Sourcepub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
pub fn set_revision_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_policy_sets<T, V>(self, v: T) -> Self
pub fn set_policy_sets<T, V>(self, v: T) -> Self
Sets the value of policy_sets.
§Example
ⓘ
use google_cloud_securityposture_v1::model::PolicySet;
let x = PostureTemplate::new()
.set_policy_sets([
PolicySet::default()/* use setters */,
PolicySet::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for PostureTemplate
impl Clone for PostureTemplate
Source§fn clone(&self) -> PostureTemplate
fn clone(&self) -> PostureTemplate
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 PostureTemplate
impl Debug for PostureTemplate
Source§impl Default for PostureTemplate
impl Default for PostureTemplate
Source§fn default() -> PostureTemplate
fn default() -> PostureTemplate
Returns the “default value” for a type. Read more
Source§impl Message for PostureTemplate
impl Message for PostureTemplate
Source§impl PartialEq for PostureTemplate
impl PartialEq for PostureTemplate
impl StructuralPartialEq for PostureTemplate
Auto Trait Implementations§
impl Freeze for PostureTemplate
impl RefUnwindSafe for PostureTemplate
impl Send for PostureTemplate
impl Sync for PostureTemplate
impl Unpin for PostureTemplate
impl UnwindSafe for PostureTemplate
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