#[non_exhaustive]pub struct AccessReason {
pub type: Type,
pub detail: String,
/* private fields */
}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.type: TypeType of access justification.
detail: StringMore detail about certain reason types. See comments for each type above.
Implementations§
Source§impl AccessReason
impl AccessReason
pub fn new() -> Self
Sourcepub fn set_type<T: Into<Type>>(self, v: T) -> Self
pub fn set_type<T: Into<Type>>(self, v: T) -> Self
Sets the value of r#type.
§Example
ⓘ
use google_cloud_accessapproval_v1::model::access_reason::Type;
let x0 = AccessReason::new().set_type(Type::CustomerInitiatedSupport);
let x1 = AccessReason::new().set_type(Type::GoogleInitiatedService);
let x2 = AccessReason::new().set_type(Type::GoogleInitiatedReview);Trait Implementations§
Source§impl Clone for AccessReason
impl Clone for AccessReason
Source§fn clone(&self) -> AccessReason
fn clone(&self) -> AccessReason
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 AccessReason
impl Debug for AccessReason
Source§impl Default for AccessReason
impl Default for AccessReason
Source§fn default() -> AccessReason
fn default() -> AccessReason
Returns the “default value” for a type. Read more
Source§impl Message for AccessReason
impl Message for AccessReason
Source§impl PartialEq for AccessReason
impl PartialEq for AccessReason
impl StructuralPartialEq for AccessReason
Auto Trait Implementations§
impl Freeze for AccessReason
impl RefUnwindSafe for AccessReason
impl Send for AccessReason
impl Sync for AccessReason
impl Unpin for AccessReason
impl UnsafeUnpin for AccessReason
impl UnwindSafe for AccessReason
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