#[repr(i32)]pub enum PredefinedPermissionSettings {
Unspecified = 0,
CollaborationSpace = 1,
AnnouncementSpace = 2,
}
Expand description
Predefined permission settings that you can only specify when creating a named space. More settings might be added in the future. For details about permission settings for named spaces, see Learn about spaces.
Variants§
Unspecified = 0
Unspecified. Don’t use.
CollaborationSpace = 1
Setting to make the space a collaboration space where all members can post messages.
AnnouncementSpace = 2
Setting to make the space an announcement space where only space managers can post messages.
Implementations§
Source§impl PredefinedPermissionSettings
impl PredefinedPermissionSettings
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of PredefinedPermissionSettings
.
Sourcepub fn from_i32(value: i32) -> Option<PredefinedPermissionSettings>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PredefinedPermissionSettings>
Converts an i32
to a PredefinedPermissionSettings
, or None
if value
is not a valid variant.
Source§impl PredefinedPermissionSettings
impl PredefinedPermissionSettings
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 PredefinedPermissionSettings
impl Clone for PredefinedPermissionSettings
Source§fn clone(&self) -> PredefinedPermissionSettings
fn clone(&self) -> PredefinedPermissionSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PredefinedPermissionSettings
impl Debug for PredefinedPermissionSettings
Source§impl Default for PredefinedPermissionSettings
impl Default for PredefinedPermissionSettings
Source§fn default() -> PredefinedPermissionSettings
fn default() -> PredefinedPermissionSettings
Source§impl From<PredefinedPermissionSettings> for i32
impl From<PredefinedPermissionSettings> for i32
Source§fn from(value: PredefinedPermissionSettings) -> i32
fn from(value: PredefinedPermissionSettings) -> i32
Source§impl Hash for PredefinedPermissionSettings
impl Hash for PredefinedPermissionSettings
Source§impl Ord for PredefinedPermissionSettings
impl Ord for PredefinedPermissionSettings
Source§fn cmp(&self, other: &PredefinedPermissionSettings) -> Ordering
fn cmp(&self, other: &PredefinedPermissionSettings) -> 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 PredefinedPermissionSettings
impl PartialEq for PredefinedPermissionSettings
Source§fn eq(&self, other: &PredefinedPermissionSettings) -> bool
fn eq(&self, other: &PredefinedPermissionSettings) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd for PredefinedPermissionSettings
impl PartialOrd for PredefinedPermissionSettings
Source§impl TryFrom<i32> for PredefinedPermissionSettings
impl TryFrom<i32> for PredefinedPermissionSettings
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(
value: i32,
) -> Result<PredefinedPermissionSettings, UnknownEnumValue>
fn try_from( value: i32, ) -> Result<PredefinedPermissionSettings, UnknownEnumValue>
impl Copy for PredefinedPermissionSettings
impl Eq for PredefinedPermissionSettings
impl StructuralPartialEq for PredefinedPermissionSettings
Auto Trait Implementations§
impl Freeze for PredefinedPermissionSettings
impl RefUnwindSafe for PredefinedPermissionSettings
impl Send for PredefinedPermissionSettings
impl Sync for PredefinedPermissionSettings
impl Unpin for PredefinedPermissionSettings
impl UnwindSafe for PredefinedPermissionSettings
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