pub struct RoleBinding {
pub name: String,
pub member: String,
pub role: String,
pub project: String,
pub creator: String,
pub create_time: Option<Timestamp>,
pub state: i32,
}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. A pending binding keeps its name when it becomes active.
member: StringThe full name of who holds the role: a user,
//iam.origincloudapis.eu/users/{user}, one of the organization’s
service accounts,
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
or a platform service agent,
//iam.origincloudapis.eu/serviceAgents/{service_agent}. A pending
binding’s member is user:{email}, the address it was granted to,
until it becomes active.
role: StringThe full name of the role granted,
//iam.origincloudapis.eu/roles/{role}.
project: StringThe full name of the project the binding is limited to, one of the
organization’s: //resourcemanager.origincloudapis.eu/projects/{project}.
Empty for a binding on the whole organization, which covers every
project in it.
creator: StringThe full name of who created the binding: //iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
//iam.origincloudapis.eu/serviceAgents/{service_agent} for a platform
service agent, or //iam.origincloudapis.eu/services/{service} for a
change the platform made itself.
create_time: Option<Timestamp>When the binding was created.
state: i32Whether the binding grants its role yet.
Implementations§
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.