#[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§impl PartialOrd for MembershipRole
impl PartialOrd for MembershipRole
Source§impl TryFrom<i32> for MembershipRole
impl TryFrom<i32> for MembershipRole
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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