pub enum LegacyIamRole {
LegacyObjectReader,
LegacyObjectOwner,
LegacyBucketReader,
LegacyBucketWriter,
LegacyBucketOwner,
}
Expand description
The following enum contains Cloud IAM roles that are equivalent to Access Control List (ACL) permissions. These Cloud IAM roles can only be applied to a bucket, not a project.
Variants§
LegacyObjectReader
Grants permission to view objects and their metadata, excluding ACLs.
LegacyObjectOwner
Grants permission to view and edit objects and their metadata, including ACLs.
LegacyBucketReader
Grants permission to list a bucket’s contents and read bucket metadata, excluding Cloud IAM policies. Also grants permission to read object metadata, excluding Cloud IAM policies, when listing objects.
Use of this role is also reflected in the bucket’s ACLs. See Cloud IAM relation to ACLs for more information.
LegacyBucketWriter
Grants permission to create, overwrite, and delete objects; list objects in a bucket and read object metadata, excluding Cloud IAM policies, when listing; and read bucket metadata, excluding Cloud IAM policies.
Use of this role is also reflected in the bucket’s ACLs. See Cloud IAM relation to ACLs for more information.
LegacyBucketOwner
Grants permission to create, overwrite, and delete objects; list objects in a bucket and read object metadata, excluding Cloud IAM policies, when listing; and read and edit bucket metadata, including Cloud IAM policies.
Use of this role is also reflected in the bucket’s ACLs. See Cloud IAM relation to ACLs for more information.
Trait Implementations§
Source§impl Debug for LegacyIamRole
impl Debug for LegacyIamRole
Source§impl<'de> Deserialize<'de> for LegacyIamRole
impl<'de> Deserialize<'de> for LegacyIamRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LegacyIamRole
impl PartialEq for LegacyIamRole
Source§impl Serialize for LegacyIamRole
impl Serialize for LegacyIamRole
impl StructuralPartialEq for LegacyIamRole
Auto Trait Implementations§
impl Freeze for LegacyIamRole
impl RefUnwindSafe for LegacyIamRole
impl Send for LegacyIamRole
impl Sync for LegacyIamRole
impl Unpin for LegacyIamRole
impl UnwindSafe for LegacyIamRole
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more