Struct google_cloudiot1::Binding
source · pub struct Binding {
pub role: Option<String>,
pub condition: Option<Expr>,
pub members: Option<Vec<String>>,
}Expand description
Associates members with a role.
This type is not used in any activity, and only used as part of another schema.
Fields§
§role: Option<String>Role that is assigned to members.
For example, roles/viewer, roles/editor, or roles/owner.
condition: Option<Expr>Unimplemented. The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently.
members: Option<Vec<String>>Specifies the identities requesting access for a Cloud Platform resource.
members can have the following values:
-
allUsers: A special identifier that represents anyone who is 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 Google account. For example,alice@gmail.com. -
serviceAccount:{emailid}: An email address that represents a service account. For example,my-other-app@appspot.gserviceaccount.com. -
group:{emailid}: An email address that represents a Google group. For example,admins@example.com. -
domain:{domain}: A Google Apps domain name that represents all the users of that domain. For example,google.comorexample.com.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Binding
impl<'de> Deserialize<'de> for Binding
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>,
impl Part for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnwindSafe for Binding
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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