pub struct RoleBinding {
pub name: String,
pub urn: String,
pub member: String,
pub role: String,
pub project: String,
pub creator: String,
pub create_time: Option<Timestamp>,
}Expand description
One role granted to one member, organization-wide or in one project. A binding can’t be changed: delete it and create another.
Fields§
§name: StringThe binding’s resource name.
urn: StringThe binding’s URN, the identifier access policies and the audit log use.
member: StringWho holds the role: user:{email} or
serviceAccount:{service_account}. A user is shown with their
account’s current verified address, as userId:{user} when it has
none, or as deleted:user:{user} once the account is gone.
role: StringThe role granted, roles/{role}.
project: StringThe project the binding is limited to, projects/{project}, one of
the organization’s. Empty for a binding on the whole organization,
which covers every project in it.
creator: StringWho created the binding, written as a member is, or platform for a
binding the platform made itself. Always userId:{user} for a user in
a list of the caller’s own bindings (organizations/-).
create_time: Option<Timestamp>When the binding was created.
Trait Implementations§
Source§impl Clone for RoleBinding
impl Clone for RoleBinding
Source§impl Debug for RoleBinding
impl Debug for RoleBinding
Source§impl Default for RoleBinding
impl Default for RoleBinding
Source§impl<'de> Deserialize<'de> for RoleBinding
impl<'de> Deserialize<'de> for RoleBinding
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 Eq for RoleBinding
Source§impl Hash for RoleBinding
impl Hash for RoleBinding
Source§impl Message for RoleBinding
impl Message for RoleBinding
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for RoleBinding
impl PartialEq for RoleBinding
Source§impl Serialize for RoleBinding
impl Serialize for RoleBinding
impl StructuralPartialEq for RoleBinding
Auto Trait Implementations§
impl Forget for RoleBinding
impl Freeze for RoleBinding
impl Move for RoleBinding
impl RefUnwindSafe for RoleBinding
impl Send for RoleBinding
impl Sync for RoleBinding
impl Unpin for RoleBinding
impl UnsafeUnpin for RoleBinding
impl UnwindSafe for RoleBinding
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.