#[non_exhaustive]pub struct AuditScopeReport {
pub name: String,
pub audit_report: Option<AuditReport>,
/* private fields */
}Expand description
The 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.name: StringIdentifier. The name of this Audit Report, in the format of scope given in request.
audit_report: Option<AuditReport>The options in which the audit scope report is exported.
Implementations§
Source§impl AuditScopeReport
impl AuditScopeReport
pub fn new() -> Self
Sourcepub fn set_audit_report<T: Into<Option<AuditReport>>>(self, v: T) -> Self
pub fn set_audit_report<T: Into<Option<AuditReport>>>(self, v: T) -> Self
Sets the value of audit_report.
Note that all the setters affecting audit_report are mutually
exclusive.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::audit_scope_report::AuditReport;
let x = AuditScopeReport::new().set_audit_report(Some(AuditReport::ScopeReportContents(bytes::Bytes::from_static(b"example"))));Sourcepub fn scope_report_contents(&self) -> Option<&Bytes>
pub fn scope_report_contents(&self) -> Option<&Bytes>
The value of audit_report
if it holds a ScopeReportContents, None if the field is not set or
holds a different branch.
Sourcepub fn set_scope_report_contents<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_scope_report_contents<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of audit_report
to hold a ScopeReportContents.
Note that all the setters affecting audit_report are
mutually exclusive.
§Example
ⓘ
let x = AuditScopeReport::new().set_scope_report_contents(bytes::Bytes::from_static(b"example"));
assert!(x.scope_report_contents().is_some());Trait Implementations§
Source§impl Clone for AuditScopeReport
impl Clone for AuditScopeReport
Source§fn clone(&self) -> AuditScopeReport
fn clone(&self) -> AuditScopeReport
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 AuditScopeReport
impl Debug for AuditScopeReport
Source§impl Default for AuditScopeReport
impl Default for AuditScopeReport
Source§fn default() -> AuditScopeReport
fn default() -> AuditScopeReport
Returns the “default value” for a type. Read more
Source§impl Message for AuditScopeReport
impl Message for AuditScopeReport
Source§impl PartialEq for AuditScopeReport
impl PartialEq for AuditScopeReport
impl StructuralPartialEq for AuditScopeReport
Auto Trait Implementations§
impl !Freeze for AuditScopeReport
impl RefUnwindSafe for AuditScopeReport
impl Send for AuditScopeReport
impl Sync for AuditScopeReport
impl Unpin for AuditScopeReport
impl UnsafeUnpin for AuditScopeReport
impl UnwindSafe for AuditScopeReport
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