#[non_exhaustive]pub struct DestinationDetails {
pub destination: Option<Destination>,
/* private fields */
}Expand description
The locations where the generated reports are saved.
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: Option<Destination>Implementations§
Source§impl DestinationDetails
impl DestinationDetails
pub fn new() -> Self
Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::destination_details::Destination;
let x = DestinationDetails::new().set_destination(Some(Destination::GcsBucketUri("example".to_string())));Sourcepub fn gcs_bucket_uri(&self) -> Option<&String>
pub fn gcs_bucket_uri(&self) -> Option<&String>
The value of destination
if it holds a GcsBucketUri, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_bucket_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_bucket_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of destination
to hold a GcsBucketUri.
Note that all the setters affecting destination are
mutually exclusive.
§Example
ⓘ
let x = DestinationDetails::new().set_gcs_bucket_uri("example");
assert!(x.gcs_bucket_uri().is_some());Trait Implementations§
Source§impl Clone for DestinationDetails
impl Clone for DestinationDetails
Source§fn clone(&self) -> DestinationDetails
fn clone(&self) -> DestinationDetails
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 DestinationDetails
impl Debug for DestinationDetails
Source§impl Default for DestinationDetails
impl Default for DestinationDetails
Source§fn default() -> DestinationDetails
fn default() -> DestinationDetails
Returns the “default value” for a type. Read more
Source§impl Message for DestinationDetails
impl Message for DestinationDetails
Source§impl PartialEq for DestinationDetails
impl PartialEq for DestinationDetails
impl StructuralPartialEq for DestinationDetails
Auto Trait Implementations§
impl Freeze for DestinationDetails
impl RefUnwindSafe for DestinationDetails
impl Send for DestinationDetails
impl Sync for DestinationDetails
impl Unpin for DestinationDetails
impl UnsafeUnpin for DestinationDetails
impl UnwindSafe for DestinationDetails
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