#[non_exhaustive]pub struct Enrollment {
pub name: String,
pub destination_details: Vec<DestinationDetails>,
/* private fields */
}Expand description
The enrollment resource.
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 Enrollment, in the format of scope given in request.
destination_details: Vec<DestinationDetails>Output only. The locations where the generated reports can be uploaded.
Implementations§
Source§impl Enrollment
impl Enrollment
pub fn new() -> Self
Sourcepub fn set_destination_details<T, V>(self, v: T) -> Self
pub fn set_destination_details<T, V>(self, v: T) -> Self
Sets the value of destination_details.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::DestinationDetails;
let x = Enrollment::new()
.set_destination_details([
DestinationDetails::default()/* use setters */,
DestinationDetails::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for Enrollment
impl Clone for Enrollment
Source§fn clone(&self) -> Enrollment
fn clone(&self) -> Enrollment
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 Enrollment
impl Debug for Enrollment
Source§impl Default for Enrollment
impl Default for Enrollment
Source§fn default() -> Enrollment
fn default() -> Enrollment
Returns the “default value” for a type. Read more
Source§impl PartialEq for Enrollment
impl PartialEq for Enrollment
impl StructuralPartialEq for Enrollment
Auto Trait Implementations§
impl Freeze for Enrollment
impl RefUnwindSafe for Enrollment
impl Send for Enrollment
impl Sync for Enrollment
impl Unpin for Enrollment
impl UnsafeUnpin for Enrollment
impl UnwindSafe for Enrollment
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