#[repr(u8)]pub enum RealmCreatePublicStreamPolicy {
MembersOnly = 1,
AdminsOnly = 2,
FullMembers = 3,
Admins = 4,
}Expand description
A deprecated representation of a superset of the users who have permission to create private channels in the organization, available for backwards-compatibility.
Clients should use can_create_public_channel_group instead.
It is an enum with the following possible values, corresponding to roles/system groups:
- 1: Members only
- 2: Admins only
- 3: Full members only
- 4: Admins and moderators only
Changes: Deprecated in Zulip 9.0 (feature level 264) and replaced by realm_can_create_public_channel_group,
which supports finer resolution of configurations, resulting in this property being inaccurate following that transition.
Changes: Before Zulip 5.0 (feature level 102), permission to create channels was controlled by the realm_create_stream_policy setting.
Variants§
MembersOnly = 1
Members only
AdminsOnly = 2
Admins only
FullMembers = 3
Full members
Admins = 4
Admins and moderators only
Implementations§
Source§impl RealmCreatePublicStreamPolicy
impl RealmCreatePublicStreamPolicy
Sourcepub const MEMBERS_ONLY: &str = "members_only"
pub const MEMBERS_ONLY: &str = "members_only"
Represents the string value of the members only policy.
Sourcepub const ADMINS_ONLY: &str = "admins_only"
pub const ADMINS_ONLY: &str = "admins_only"
Represents the string value of the admins only policy.
Sourcepub const FULL_MEMBERS: &str = "full_members"
pub const FULL_MEMBERS: &str = "full_members"
Represents the string value of the full members policy.
Trait Implementations§
impl Copy for RealmCreatePublicStreamPolicy
Source§impl<'de> Deserialize<'de> for RealmCreatePublicStreamPolicy
impl<'de> Deserialize<'de> for RealmCreatePublicStreamPolicy
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 RealmCreatePublicStreamPolicy
impl StructuralPartialEq for RealmCreatePublicStreamPolicy
Auto Trait Implementations§
impl Freeze for RealmCreatePublicStreamPolicy
impl RefUnwindSafe for RealmCreatePublicStreamPolicy
impl Send for RealmCreatePublicStreamPolicy
impl Sync for RealmCreatePublicStreamPolicy
impl Unpin for RealmCreatePublicStreamPolicy
impl UnsafeUnpin for RealmCreatePublicStreamPolicy
impl UnwindSafe for RealmCreatePublicStreamPolicy
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.