Enum google_api_proto::google::storage::v1::common_enums::PredefinedObjectAcl
source · #[repr(i32)]pub enum PredefinedObjectAcl {
Unspecified = 0,
ObjectAclAuthenticatedRead = 1,
ObjectAclBucketOwnerFullControl = 2,
ObjectAclBucketOwnerRead = 3,
ObjectAclPrivate = 4,
ObjectAclProjectPrivate = 5,
ObjectAclPublicRead = 6,
}
Expand description
Predefined or “canned” aliases for sets of specific object ACL entries.
Variants§
Unspecified = 0
No predefined ACL.
ObjectAclAuthenticatedRead = 1
Object owner gets OWNER
access, and
allAuthenticatedUsers
get READER
access.
ObjectAclBucketOwnerFullControl = 2
Object owner gets OWNER
access, and project team owners get
OWNER
access.
ObjectAclBucketOwnerRead = 3
Object owner gets OWNER
access, and project team owners get
READER
access.
ObjectAclPrivate = 4
Object owner gets OWNER
access.
ObjectAclProjectPrivate = 5
Object owner gets OWNER
access, and project team members get
access according to their roles.
ObjectAclPublicRead = 6
Object owner gets OWNER
access, and allUsers
get READER
access.
Implementations§
source§impl PredefinedObjectAcl
impl PredefinedObjectAcl
sourcepub fn from_i32(value: i32) -> Option<PredefinedObjectAcl>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PredefinedObjectAcl>
Converts an i32
to a PredefinedObjectAcl
, or None
if value
is not a valid variant.
source§impl PredefinedObjectAcl
impl PredefinedObjectAcl
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 PredefinedObjectAcl
impl Clone for PredefinedObjectAcl
source§fn clone(&self) -> PredefinedObjectAcl
fn clone(&self) -> PredefinedObjectAcl
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PredefinedObjectAcl
impl Debug for PredefinedObjectAcl
source§impl Default for PredefinedObjectAcl
impl Default for PredefinedObjectAcl
source§fn default() -> PredefinedObjectAcl
fn default() -> PredefinedObjectAcl
source§impl From<PredefinedObjectAcl> for i32
impl From<PredefinedObjectAcl> for i32
source§fn from(value: PredefinedObjectAcl) -> i32
fn from(value: PredefinedObjectAcl) -> i32
source§impl Hash for PredefinedObjectAcl
impl Hash for PredefinedObjectAcl
source§impl Ord for PredefinedObjectAcl
impl Ord for PredefinedObjectAcl
source§fn cmp(&self, other: &PredefinedObjectAcl) -> Ordering
fn cmp(&self, other: &PredefinedObjectAcl) -> 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 PredefinedObjectAcl
impl PartialEq for PredefinedObjectAcl
source§fn eq(&self, other: &PredefinedObjectAcl) -> bool
fn eq(&self, other: &PredefinedObjectAcl) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PredefinedObjectAcl
impl PartialOrd for PredefinedObjectAcl
source§fn partial_cmp(&self, other: &PredefinedObjectAcl) -> Option<Ordering>
fn partial_cmp(&self, other: &PredefinedObjectAcl) -> 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 PredefinedObjectAcl
impl TryFrom<i32> for PredefinedObjectAcl
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PredefinedObjectAcl, UnknownEnumValue>
fn try_from(value: i32) -> Result<PredefinedObjectAcl, UnknownEnumValue>
impl Copy for PredefinedObjectAcl
impl Eq for PredefinedObjectAcl
impl StructuralPartialEq for PredefinedObjectAcl
Auto Trait Implementations§
impl Freeze for PredefinedObjectAcl
impl RefUnwindSafe for PredefinedObjectAcl
impl Send for PredefinedObjectAcl
impl Sync for PredefinedObjectAcl
impl Unpin for PredefinedObjectAcl
impl UnwindSafe for PredefinedObjectAcl
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