#[non_exhaustive]pub struct IamConfig {
pub uniform_bucket_level_access: Option<UniformBucketLevelAccess>,
pub public_access_prevention: String,
/* private fields */
}Expand description
Bucket restriction options.
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.uniform_bucket_level_access: Option<UniformBucketLevelAccess>Optional. Bucket restriction options currently enforced on the bucket.
public_access_prevention: StringOptional. Whether IAM enforces public access prevention. Valid values are
enforced or inherited.
Implementations§
Source§impl IamConfig
impl IamConfig
pub fn new() -> Self
Sourcepub fn set_uniform_bucket_level_access<T>(self, v: T) -> Selfwhere
T: Into<UniformBucketLevelAccess>,
pub fn set_uniform_bucket_level_access<T>(self, v: T) -> Selfwhere
T: Into<UniformBucketLevelAccess>,
Sets the value of uniform_bucket_level_access.
§Example
ⓘ
use google_cloud_storage::model::bucket::iam_config::UniformBucketLevelAccess;
let x = IamConfig::new().set_uniform_bucket_level_access(UniformBucketLevelAccess::default()/* use setters */);Sourcepub fn set_or_clear_uniform_bucket_level_access<T>(self, v: Option<T>) -> Selfwhere
T: Into<UniformBucketLevelAccess>,
pub fn set_or_clear_uniform_bucket_level_access<T>(self, v: Option<T>) -> Selfwhere
T: Into<UniformBucketLevelAccess>,
Sets or clears the value of uniform_bucket_level_access.
§Example
ⓘ
use google_cloud_storage::model::bucket::iam_config::UniformBucketLevelAccess;
let x = IamConfig::new().set_or_clear_uniform_bucket_level_access(Some(UniformBucketLevelAccess::default()/* use setters */));
let x = IamConfig::new().set_or_clear_uniform_bucket_level_access(None::<UniformBucketLevelAccess>);Sourcepub fn set_public_access_prevention<T: Into<String>>(self, v: T) -> Self
pub fn set_public_access_prevention<T: Into<String>>(self, v: T) -> Self
Sets the value of public_access_prevention.
§Example
ⓘ
let x = IamConfig::new().set_public_access_prevention("example");Trait Implementations§
impl StructuralPartialEq for IamConfig
Auto Trait Implementations§
impl Freeze for IamConfig
impl RefUnwindSafe for IamConfig
impl Send for IamConfig
impl Sync for IamConfig
impl Unpin for IamConfig
impl UnwindSafe for IamConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request