#[non_exhaustive]pub struct FrameworkAuditDestination {
pub destination_type: Option<DestinationType>,
/* private fields */
}Expand description
A destination for the framework audit.
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.destination_type: Option<DestinationType>The type of destination.
Implementations§
Source§impl FrameworkAuditDestination
impl FrameworkAuditDestination
pub fn new() -> Self
Sourcepub fn set_destination_type<T: Into<Option<DestinationType>>>(
self,
v: T,
) -> Self
pub fn set_destination_type<T: Into<Option<DestinationType>>>( self, v: T, ) -> Self
Sets the value of destination_type.
Note that all the setters affecting destination_type are mutually
exclusive.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::BucketDestination;
let x = FrameworkAuditDestination::new().set_destination_type(Some(
google_cloud_cloudsecuritycompliance_v1::model::framework_audit_destination::DestinationType::Bucket(BucketDestination::default().into())));Sourcepub fn bucket(&self) -> Option<&Box<BucketDestination>>
pub fn bucket(&self) -> Option<&Box<BucketDestination>>
The value of destination_type
if it holds a Bucket, None if the field is not set or
holds a different branch.
Sourcepub fn set_bucket<T: Into<Box<BucketDestination>>>(self, v: T) -> Self
pub fn set_bucket<T: Into<Box<BucketDestination>>>(self, v: T) -> Self
Sets the value of destination_type
to hold a Bucket.
Note that all the setters affecting destination_type are
mutually exclusive.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::BucketDestination;
let x = FrameworkAuditDestination::new().set_bucket(BucketDestination::default()/* use setters */);
assert!(x.bucket().is_some());Trait Implementations§
Source§impl Clone for FrameworkAuditDestination
impl Clone for FrameworkAuditDestination
Source§fn clone(&self) -> FrameworkAuditDestination
fn clone(&self) -> FrameworkAuditDestination
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 FrameworkAuditDestination
impl Debug for FrameworkAuditDestination
Source§impl Default for FrameworkAuditDestination
impl Default for FrameworkAuditDestination
Source§fn default() -> FrameworkAuditDestination
fn default() -> FrameworkAuditDestination
Returns the “default value” for a type. Read more
Source§impl Message for FrameworkAuditDestination
impl Message for FrameworkAuditDestination
impl StructuralPartialEq for FrameworkAuditDestination
Auto Trait Implementations§
impl Freeze for FrameworkAuditDestination
impl RefUnwindSafe for FrameworkAuditDestination
impl Send for FrameworkAuditDestination
impl Sync for FrameworkAuditDestination
impl Unpin for FrameworkAuditDestination
impl UnwindSafe for FrameworkAuditDestination
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