#[non_exhaustive]pub struct GenerateAuditScopeReportRequest {
pub scope: String,
pub compliance_standard: String,
pub report_format: AuditScopeReportFormat,
pub compliance_framework: String,
/* private fields */
}Expand description
Message for requesting audit scope report.
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.scope: StringRequired. Scope for which the AuditScopeReport is required. Must be of format resource_type/resource_identifier Eg: projects/{project}/locations/{location}, folders/{folder}/locations/{location}
compliance_standard: StringRequired. Compliance Standard against which the Scope Report must be generated. Eg: FEDRAMP_MODERATE
report_format: AuditScopeReportFormatRequired. The format in which the Scope report bytes should be returned.
compliance_framework: StringRequired. Compliance framework against which the Scope Report must be generated.
Implementations§
Source§impl GenerateAuditScopeReportRequest
impl GenerateAuditScopeReportRequest
pub fn new() -> Self
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 = GenerateAuditScopeReportRequest::new().set_compliance_standard("example");Sourcepub fn set_report_format<T: Into<AuditScopeReportFormat>>(self, v: T) -> Self
pub fn set_report_format<T: Into<AuditScopeReportFormat>>(self, v: T) -> Self
Sets the value of report_format.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::generate_audit_scope_report_request::AuditScopeReportFormat;
let x0 = GenerateAuditScopeReportRequest::new().set_report_format(AuditScopeReportFormat::Odf);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 = GenerateAuditScopeReportRequest::new().set_compliance_framework("example");Trait Implementations§
Source§impl Clone for GenerateAuditScopeReportRequest
impl Clone for GenerateAuditScopeReportRequest
Source§fn clone(&self) -> GenerateAuditScopeReportRequest
fn clone(&self) -> GenerateAuditScopeReportRequest
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 Default for GenerateAuditScopeReportRequest
impl Default for GenerateAuditScopeReportRequest
Source§fn default() -> GenerateAuditScopeReportRequest
fn default() -> GenerateAuditScopeReportRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for GenerateAuditScopeReportRequest
impl PartialEq for GenerateAuditScopeReportRequest
Source§fn eq(&self, other: &GenerateAuditScopeReportRequest) -> bool
fn eq(&self, other: &GenerateAuditScopeReportRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenerateAuditScopeReportRequest
Auto Trait Implementations§
impl Freeze for GenerateAuditScopeReportRequest
impl RefUnwindSafe for GenerateAuditScopeReportRequest
impl Send for GenerateAuditScopeReportRequest
impl Sync for GenerateAuditScopeReportRequest
impl Unpin for GenerateAuditScopeReportRequest
impl UnsafeUnpin for GenerateAuditScopeReportRequest
impl UnwindSafe for GenerateAuditScopeReportRequest
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