#[non_exhaustive]pub struct AccessMetadata {
pub constraint_type: ConstraintType,
/* private fields */
}Expand description
The access metadata for a particular region. This can be applied if the org policy for the given project disallows a particular region.
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.constraint_type: ConstraintTypeDescribes the different types of constraints that are applied.
Implementations§
Source§impl AccessMetadata
impl AccessMetadata
pub fn new() -> Self
Sourcepub fn set_constraint_type<T: Into<ConstraintType>>(self, v: T) -> Self
pub fn set_constraint_type<T: Into<ConstraintType>>(self, v: T) -> Self
Sets the value of constraint_type.
§Example
ⓘ
use google_cloud_speech_v2::model::access_metadata::ConstraintType;
let x0 = AccessMetadata::new().set_constraint_type(ConstraintType::ResourceLocationsOrgPolicyCreateConstraint);Trait Implementations§
Source§impl Clone for AccessMetadata
impl Clone for AccessMetadata
Source§fn clone(&self) -> AccessMetadata
fn clone(&self) -> AccessMetadata
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 AccessMetadata
impl Debug for AccessMetadata
Source§impl Default for AccessMetadata
impl Default for AccessMetadata
Source§fn default() -> AccessMetadata
fn default() -> AccessMetadata
Returns the “default value” for a type. Read more
Source§impl Message for AccessMetadata
impl Message for AccessMetadata
Source§impl PartialEq for AccessMetadata
impl PartialEq for AccessMetadata
impl StructuralPartialEq for AccessMetadata
Auto Trait Implementations§
impl Freeze for AccessMetadata
impl RefUnwindSafe for AccessMetadata
impl Send for AccessMetadata
impl Sync for AccessMetadata
impl Unpin for AccessMetadata
impl UnwindSafe for AccessMetadata
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