#[non_exhaustive]pub struct ResourceEnrollmentStatus {
pub name: String,
pub enrollment: Option<Enrollment>,
pub enrolled: bool,
pub display_name: String,
pub enrollment_state: ResourceEnrollmentState,
/* private fields */
}Expand description
A resource with its enrollment status.
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 resource.
enrollment: Option<Enrollment>Output only. Enrollment which contains enrolled destination details for a resource
enrolled: bool👎Deprecated
Output only. Is resource enrolled.
display_name: StringOutput only. Display name of the project/folder/organization.
enrollment_state: ResourceEnrollmentStateOutput only. Enrollment state of the resource.
Implementations§
Source§impl ResourceEnrollmentStatus
impl ResourceEnrollmentStatus
pub fn new() -> Self
Sourcepub fn set_enrollment<T>(self, v: T) -> Selfwhere
T: Into<Enrollment>,
pub fn set_enrollment<T>(self, v: T) -> Selfwhere
T: Into<Enrollment>,
Sets the value of enrollment.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::Enrollment;
let x = ResourceEnrollmentStatus::new().set_enrollment(Enrollment::default()/* use setters */);Sourcepub fn set_or_clear_enrollment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Enrollment>,
pub fn set_or_clear_enrollment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Enrollment>,
Sets or clears the value of enrollment.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::Enrollment;
let x = ResourceEnrollmentStatus::new().set_or_clear_enrollment(Some(Enrollment::default()/* use setters */));
let x = ResourceEnrollmentStatus::new().set_or_clear_enrollment(None::<Enrollment>);Sourcepub fn set_enrolled<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_enrolled<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
§Example
ⓘ
let x = ResourceEnrollmentStatus::new().set_display_name("example");Sourcepub fn set_enrollment_state<T: Into<ResourceEnrollmentState>>(
self,
v: T,
) -> Self
pub fn set_enrollment_state<T: Into<ResourceEnrollmentState>>( self, v: T, ) -> Self
Sets the value of enrollment_state.
§Example
ⓘ
use google_cloud_auditmanager_v1::model::resource_enrollment_status::ResourceEnrollmentState;
let x0 = ResourceEnrollmentStatus::new().set_enrollment_state(ResourceEnrollmentState::NotEnrolled);
let x1 = ResourceEnrollmentStatus::new().set_enrollment_state(ResourceEnrollmentState::Inherited);
let x2 = ResourceEnrollmentStatus::new().set_enrollment_state(ResourceEnrollmentState::Enrolled);Trait Implementations§
Source§impl Clone for ResourceEnrollmentStatus
impl Clone for ResourceEnrollmentStatus
Source§fn clone(&self) -> ResourceEnrollmentStatus
fn clone(&self) -> ResourceEnrollmentStatus
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 ResourceEnrollmentStatus
impl Debug for ResourceEnrollmentStatus
Source§impl Default for ResourceEnrollmentStatus
impl Default for ResourceEnrollmentStatus
Source§fn default() -> ResourceEnrollmentStatus
fn default() -> ResourceEnrollmentStatus
Returns the “default value” for a type. Read more
Source§impl Message for ResourceEnrollmentStatus
impl Message for ResourceEnrollmentStatus
Source§impl PartialEq for ResourceEnrollmentStatus
impl PartialEq for ResourceEnrollmentStatus
impl StructuralPartialEq for ResourceEnrollmentStatus
Auto Trait Implementations§
impl Freeze for ResourceEnrollmentStatus
impl RefUnwindSafe for ResourceEnrollmentStatus
impl Send for ResourceEnrollmentStatus
impl Sync for ResourceEnrollmentStatus
impl Unpin for ResourceEnrollmentStatus
impl UnsafeUnpin for ResourceEnrollmentStatus
impl UnwindSafe for ResourceEnrollmentStatus
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