#[non_exhaustive]pub struct AuditReport {
pub name: String,
pub report_summary: Option<ReportSummary>,
pub operation_id: String,
pub destination_details: Option<DestinationDetails>,
pub compliance_standard: String,
pub scope: String,
pub create_time: Option<Timestamp>,
pub control_details: Vec<ControlDetails>,
pub report_generation_state: ReportGenerationState,
pub compliance_framework: String,
pub scope_id: String,
/* private fields */
}Expand description
An audit report.
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.name: StringIdentifier. The name of this Audit Report, in the format of scope given in request.
report_summary: Option<ReportSummary>Output only. Report summary with compliance, violation counts etc.
operation_id: StringOutput only. ClientOperationId
destination_details: Option<DestinationDetails>Output only. The location where the generated report will be uploaded.
compliance_standard: StringOutput only. Compliance Standard.
scope: StringOutput only. The parent scope on which the report was generated.
create_time: Option<Timestamp>Output only. Creation time of the audit report.
control_details: Vec<ControlDetails>Output only. The overall status of controls
report_generation_state: ReportGenerationStateOutput only. The state of Audit Report Generation.
compliance_framework: StringOutput only. Compliance Framework of Audit Report
scope_id: StringOutput only. The ID/ Number for the scope on which the audit report was generated.
Implementations§
Source§impl AuditReport
impl AuditReport
pub fn new() -> Self
Sourcepub fn set_report_summary<T>(self, v: T) -> Selfwhere
T: Into<ReportSummary>,
pub fn set_report_summary<T>(self, v: T) -> Selfwhere
T: Into<ReportSummary>,
Sets the value of report_summary.
§Example
use google_cloud_auditmanager_v1::model::ReportSummary;
let x = AuditReport::new().set_report_summary(ReportSummary::default()/* use setters */);Sourcepub fn set_or_clear_report_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReportSummary>,
pub fn set_or_clear_report_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReportSummary>,
Sets or clears the value of report_summary.
§Example
use google_cloud_auditmanager_v1::model::ReportSummary;
let x = AuditReport::new().set_or_clear_report_summary(Some(ReportSummary::default()/* use setters */));
let x = AuditReport::new().set_or_clear_report_summary(None::<ReportSummary>);Sourcepub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
pub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_destination_details<T>(self, v: T) -> Selfwhere
T: Into<DestinationDetails>,
pub fn set_destination_details<T>(self, v: T) -> Selfwhere
T: Into<DestinationDetails>,
Sets the value of destination_details.
§Example
use google_cloud_auditmanager_v1::model::DestinationDetails;
let x = AuditReport::new().set_destination_details(DestinationDetails::default()/* use setters */);Sourcepub fn set_or_clear_destination_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<DestinationDetails>,
pub fn set_or_clear_destination_details<T>(self, v: Option<T>) -> Selfwhere
T: Into<DestinationDetails>,
Sets or clears the value of destination_details.
§Example
use google_cloud_auditmanager_v1::model::DestinationDetails;
let x = AuditReport::new().set_or_clear_destination_details(Some(DestinationDetails::default()/* use setters */));
let x = AuditReport::new().set_or_clear_destination_details(None::<DestinationDetails>);Sourcepub fn set_compliance_standard<T: Into<String>>(self, v: T) -> Self
pub fn set_compliance_standard<T: Into<String>>(self, v: T) -> Self
Sets the value of compliance_standard.
§Example
let x = AuditReport::new().set_compliance_standard("example");Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = AuditReport::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = AuditReport::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = AuditReport::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_control_details<T, V>(self, v: T) -> Self
pub fn set_control_details<T, V>(self, v: T) -> Self
Sets the value of control_details.
§Example
use google_cloud_auditmanager_v1::model::ControlDetails;
let x = AuditReport::new()
.set_control_details([
ControlDetails::default()/* use setters */,
ControlDetails::default()/* use (different) setters */,
]);Sourcepub fn set_report_generation_state<T: Into<ReportGenerationState>>(
self,
v: T,
) -> Self
pub fn set_report_generation_state<T: Into<ReportGenerationState>>( self, v: T, ) -> Self
Sets the value of report_generation_state.
§Example
use google_cloud_auditmanager_v1::model::audit_report::ReportGenerationState;
let x0 = AuditReport::new().set_report_generation_state(ReportGenerationState::InProgress);
let x1 = AuditReport::new().set_report_generation_state(ReportGenerationState::Completed);
let x2 = AuditReport::new().set_report_generation_state(ReportGenerationState::Failed);Sourcepub fn set_compliance_framework<T: Into<String>>(self, v: T) -> Self
pub fn set_compliance_framework<T: Into<String>>(self, v: T) -> Self
Sets the value of compliance_framework.
§Example
let x = AuditReport::new().set_compliance_framework("example");Trait Implementations§
Source§impl Clone for AuditReport
impl Clone for AuditReport
Source§fn clone(&self) -> AuditReport
fn clone(&self) -> AuditReport
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more