#[non_exhaustive]pub struct Control {
pub id: String,
pub display_name: String,
pub family: Family,
pub control_family: Option<ControlFamily>,
pub description: String,
pub responsibility_type: String,
pub google_responsibility_description: String,
pub google_responsibility_implementation: String,
pub customer_responsibility_description: String,
pub customer_responsibility_implementation: String,
/* private fields */
}Expand description
A control.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringOutput only. The control identifier used to fetch the findings. This is same as the control report name.
display_name: StringOutput only. Display name of the control.
family: FamilyOutput only. Group where the control belongs. E.g. Access Control.
control_family: Option<ControlFamily>Output only. Regulatory Family of the control E.g. Access Control
description: StringOutput only. Regulatory control ask of the control
responsibility_type: StringOutput only. The type of responsibility for implementing this control. It can be google, customer or shared.
google_responsibility_description: StringOutput only. Description of the google responsibility for implementing this control.
google_responsibility_implementation: StringOutput only. Implementation of the google responsibility for implementing this control.
customer_responsibility_description: StringOutput only. Description of the customer responsibility for implementing this control.
customer_responsibility_implementation: StringOutput only. Implementation of the customer responsibility for implementing this control.
Implementations§
Source§impl Control
impl Control
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_family<T: Into<Family>>(self, v: T) -> Self
pub fn set_family<T: Into<Family>>(self, v: T) -> Self
Sourcepub fn set_control_family<T>(self, v: T) -> Selfwhere
T: Into<ControlFamily>,
pub fn set_control_family<T>(self, v: T) -> Selfwhere
T: Into<ControlFamily>,
Sets the value of control_family.
§Example
use google_cloud_auditmanager_v1::model::ControlFamily;
let x = Control::new().set_control_family(ControlFamily::default()/* use setters */);Sourcepub fn set_or_clear_control_family<T>(self, v: Option<T>) -> Selfwhere
T: Into<ControlFamily>,
pub fn set_or_clear_control_family<T>(self, v: Option<T>) -> Selfwhere
T: Into<ControlFamily>,
Sets or clears the value of control_family.
§Example
use google_cloud_auditmanager_v1::model::ControlFamily;
let x = Control::new().set_or_clear_control_family(Some(ControlFamily::default()/* use setters */));
let x = Control::new().set_or_clear_control_family(None::<ControlFamily>);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_responsibility_type<T: Into<String>>(self, v: T) -> Self
pub fn set_responsibility_type<T: Into<String>>(self, v: T) -> Self
Sets the value of responsibility_type.
§Example
let x = Control::new().set_responsibility_type("example");Sourcepub fn set_google_responsibility_description<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_google_responsibility_description<T: Into<String>>( self, v: T, ) -> Self
Sets the value of google_responsibility_description.
§Example
let x = Control::new().set_google_responsibility_description("example");Sourcepub fn set_google_responsibility_implementation<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_google_responsibility_implementation<T: Into<String>>( self, v: T, ) -> Self
Sets the value of google_responsibility_implementation.
§Example
let x = Control::new().set_google_responsibility_implementation("example");Sourcepub fn set_customer_responsibility_description<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_customer_responsibility_description<T: Into<String>>( self, v: T, ) -> Self
Sets the value of customer_responsibility_description.
§Example
let x = Control::new().set_customer_responsibility_description("example");Sourcepub fn set_customer_responsibility_implementation<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_customer_responsibility_implementation<T: Into<String>>( self, v: T, ) -> Self
Sets the value of customer_responsibility_implementation.
§Example
let x = Control::new().set_customer_responsibility_implementation("example");