Struct cloud_storage::bucket::Binding
source · [−]pub struct Binding {
pub role: IamRole,
pub members: Vec<String>,
pub condition: Option<IamCondition>,
}
Expand description
An association between a role, which comes with a set of permissions, and members who may assume that role.
Fields
role: IamRole
The role to which members belong. Two types of roles are supported: standard IAM roles,
which grant permissions that do not map directly to those provided by ACLs, and legacy IAM
roles, which do map directly to ACL permissions. All roles are of the format
roles/storage.specificRole.
See Cloud Storage IAM Roles for a list of available roles.
members: Vec<String>
A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows:
allUsers
— A special identifier that represents anyone on the internet; with or without a Google account.allAuthenticatedUsers
— A special identifier that represents anyone who is authenticated with a Google account or a service account.user:emailid
— An email address that represents a specific account. For example, user:alice@gmail.com or user:joe@example.com.serviceAccount:emailid
— An email address that represents a service account. For example, serviceAccount:my-other-app@appspot.gserviceaccount.com .group:emailid
— An email address that represents a Google group. For example, group:admins@example.com.domain:domain
— A G Suite domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com.projectOwner:projectid
— Owners of the given project. For example, projectOwner:my-example-projectprojectEditor:projectid
— Editors of the given project. For example, projectEditor:my-example-projectprojectViewer:projectid
— Viewers of the given project. For example, projectViewer:my-example-project
condition: Option<IamCondition>
A condition object associated with this binding. Each role binding can only contain one condition.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Binding
impl<'de> Deserialize<'de> for Binding
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Binding
Auto Trait Implementations
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnwindSafe for Binding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more