#[non_exhaustive]pub struct ControlDetails {
pub control: Option<Control>,
pub compliance_state: ComplianceState,
pub control_report_summary: Option<ReportSummary>,
/* private fields */
}Expand description
The evaluation details for a control.
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.control: Option<Control>The control for which the findings are being reported.
compliance_state: ComplianceStateOutput only. Overall status of the findings for the control.
control_report_summary: Option<ReportSummary>Report summary with compliance, violation counts etc.
Implementations§
Source§impl ControlDetails
impl ControlDetails
pub fn new() -> Self
Sourcepub fn set_control<T>(self, v: T) -> Self
pub fn set_control<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_control<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_control<T>(self, v: Option<T>) -> Self
Sourcepub fn set_compliance_state<T: Into<ComplianceState>>(self, v: T) -> Self
pub fn set_compliance_state<T: Into<ComplianceState>>(self, v: T) -> Self
Sets the value of compliance_state.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::ComplianceState;
let x0 = ControlDetails::new().set_compliance_state(ComplianceState::Compliant);
let x1 = ControlDetails::new().set_compliance_state(ComplianceState::Violation);
let x2 = ControlDetails::new().set_compliance_state(ComplianceState::ManualReviewNeeded);Sourcepub fn set_control_report_summary<T>(self, v: T) -> Selfwhere
T: Into<ReportSummary>,
pub fn set_control_report_summary<T>(self, v: T) -> Selfwhere
T: Into<ReportSummary>,
Sets the value of control_report_summary.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::ReportSummary;
let x = ControlDetails::new().set_control_report_summary(ReportSummary::default()/* use setters */);Sourcepub fn set_or_clear_control_report_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReportSummary>,
pub fn set_or_clear_control_report_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReportSummary>,
Sets or clears the value of control_report_summary.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::ReportSummary;
let x = ControlDetails::new().set_or_clear_control_report_summary(Some(ReportSummary::default()/* use setters */));
let x = ControlDetails::new().set_or_clear_control_report_summary(None::<ReportSummary>);Trait Implementations§
Source§impl Clone for ControlDetails
impl Clone for ControlDetails
Source§fn clone(&self) -> ControlDetails
fn clone(&self) -> ControlDetails
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 ControlDetails
impl Debug for ControlDetails
Source§impl Default for ControlDetails
impl Default for ControlDetails
Source§fn default() -> ControlDetails
fn default() -> ControlDetails
Returns the “default value” for a type. Read more
Source§impl Message for ControlDetails
impl Message for ControlDetails
Source§impl PartialEq for ControlDetails
impl PartialEq for ControlDetails
impl StructuralPartialEq for ControlDetails
Auto Trait Implementations§
impl Freeze for ControlDetails
impl RefUnwindSafe for ControlDetails
impl Send for ControlDetails
impl Sync for ControlDetails
impl Unpin for ControlDetails
impl UnsafeUnpin for ControlDetails
impl UnwindSafe for ControlDetails
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