Enum google_api_proto::google::storage::v1::common_enums::PredefinedBucketAcl
source · #[repr(i32)]pub enum PredefinedBucketAcl {
Unspecified = 0,
BucketAclAuthenticatedRead = 1,
BucketAclPrivate = 2,
BucketAclProjectPrivate = 3,
BucketAclPublicRead = 4,
BucketAclPublicReadWrite = 5,
}
Expand description
Predefined or “canned” aliases for sets of specific bucket ACL entries.
Variants§
Unspecified = 0
No predefined ACL.
BucketAclAuthenticatedRead = 1
Project team owners get OWNER
access, and
allAuthenticatedUsers
get READER
access.
BucketAclPrivate = 2
Project team owners get OWNER
access.
BucketAclProjectPrivate = 3
Project team members get access according to their roles.
BucketAclPublicRead = 4
Project team owners get OWNER
access, and
allUsers
get READER
access.
BucketAclPublicReadWrite = 5
Project team owners get OWNER
access, and
allUsers
get WRITER
access.
Implementations§
source§impl PredefinedBucketAcl
impl PredefinedBucketAcl
sourcepub fn from_i32(value: i32) -> Option<PredefinedBucketAcl>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PredefinedBucketAcl>
Converts an i32
to a PredefinedBucketAcl
, or None
if value
is not a valid variant.
source§impl PredefinedBucketAcl
impl PredefinedBucketAcl
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PredefinedBucketAcl
impl Clone for PredefinedBucketAcl
source§fn clone(&self) -> PredefinedBucketAcl
fn clone(&self) -> PredefinedBucketAcl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredefinedBucketAcl
impl Debug for PredefinedBucketAcl
source§impl Default for PredefinedBucketAcl
impl Default for PredefinedBucketAcl
source§fn default() -> PredefinedBucketAcl
fn default() -> PredefinedBucketAcl
source§impl From<PredefinedBucketAcl> for i32
impl From<PredefinedBucketAcl> for i32
source§fn from(value: PredefinedBucketAcl) -> i32
fn from(value: PredefinedBucketAcl) -> i32
source§impl Hash for PredefinedBucketAcl
impl Hash for PredefinedBucketAcl
source§impl Ord for PredefinedBucketAcl
impl Ord for PredefinedBucketAcl
source§fn cmp(&self, other: &PredefinedBucketAcl) -> Ordering
fn cmp(&self, other: &PredefinedBucketAcl) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PredefinedBucketAcl
impl PartialEq for PredefinedBucketAcl
source§fn eq(&self, other: &PredefinedBucketAcl) -> bool
fn eq(&self, other: &PredefinedBucketAcl) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PredefinedBucketAcl
impl PartialOrd for PredefinedBucketAcl
source§fn partial_cmp(&self, other: &PredefinedBucketAcl) -> Option<Ordering>
fn partial_cmp(&self, other: &PredefinedBucketAcl) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PredefinedBucketAcl
impl TryFrom<i32> for PredefinedBucketAcl
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PredefinedBucketAcl, UnknownEnumValue>
fn try_from(value: i32) -> Result<PredefinedBucketAcl, UnknownEnumValue>
impl Copy for PredefinedBucketAcl
impl Eq for PredefinedBucketAcl
impl StructuralPartialEq for PredefinedBucketAcl
Auto Trait Implementations§
impl Freeze for PredefinedBucketAcl
impl RefUnwindSafe for PredefinedBucketAcl
impl Send for PredefinedBucketAcl
impl Sync for PredefinedBucketAcl
impl Unpin for PredefinedBucketAcl
impl UnwindSafe for PredefinedBucketAcl
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request