Enum google_api_proto::google::chat::v1::membership::MembershipRole
source · #[repr(i32)]pub enum MembershipRole {
Unspecified = 0,
RoleMember = 1,
RoleManager = 2,
}
Expand description
Represents a user’s permitted actions in a Chat space. More enum values might be added in the future.
Variants§
Unspecified = 0
Default value. For [users][google.chat.v1.Membership.member]: they aren’t a member of the space, but can be invited. For [Google Groups][google.chat.v1.Membership.group_member]: they’re always assigned this role (other enum values might be used in the future).
RoleMember = 1
A member of the space. The user has basic permissions, like sending messages to the space. In 1:1 and unnamed group conversations, everyone has this role.
RoleManager = 2
A space manager. The user has all basic permissions plus administrative permissions that let them manage the space, like adding or removing members. Only supported in [SpaceType.SPACE][google.chat.v1.Space.SpaceType].
Implementations§
source§impl MembershipRole
impl MembershipRole
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for MembershipRole
impl Clone for MembershipRole
source§fn clone(&self) -> MembershipRole
fn clone(&self) -> MembershipRole
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MembershipRole
impl Debug for MembershipRole
source§impl Default for MembershipRole
impl Default for MembershipRole
source§fn default() -> MembershipRole
fn default() -> MembershipRole
source§impl From<MembershipRole> for i32
impl From<MembershipRole> for i32
source§fn from(value: MembershipRole) -> i32
fn from(value: MembershipRole) -> i32
source§impl Hash for MembershipRole
impl Hash for MembershipRole
source§impl Ord for MembershipRole
impl Ord for MembershipRole
source§fn cmp(&self, other: &MembershipRole) -> Ordering
fn cmp(&self, other: &MembershipRole) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for MembershipRole
impl PartialEq for MembershipRole
source§fn eq(&self, other: &MembershipRole) -> bool
fn eq(&self, other: &MembershipRole) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MembershipRole
impl PartialOrd for MembershipRole
source§fn partial_cmp(&self, other: &MembershipRole) -> Option<Ordering>
fn partial_cmp(&self, other: &MembershipRole) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for MembershipRole
impl TryFrom<i32> for MembershipRole
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<MembershipRole, UnknownEnumValue>
fn try_from(value: i32) -> Result<MembershipRole, UnknownEnumValue>
impl Copy for MembershipRole
impl Eq for MembershipRole
impl StructuralPartialEq for MembershipRole
Auto Trait Implementations§
impl Freeze for MembershipRole
impl RefUnwindSafe for MembershipRole
impl Send for MembershipRole
impl Sync for MembershipRole
impl Unpin for MembershipRole
impl UnwindSafe for MembershipRole
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request