#[repr(u8)]pub enum RealmCreateWebPublicStreamPolicy {
AdminsOnly = 2,
Admins = 4,
Nobody = 6,
OwnersOnly = 7,
}Expand description
A deprecated representation of a superset of the users who have permission to create web-public channels in the organization, available for backwards-compatibility.
Clients should use can_create_web_public_channel_group instead.
It is an enum with the following possible values, corresponding to roles/system groups:
- 2: Admins only
- 4: Admins and moderators only
- 6: Nobody
- 7: Owners only
Changes: Deprecated in Zulip 10.0 (feature level 280) and replaced by realm_can_create_web_public_channel_group,
which supports finer resolution of configurations, resulting in this property being inaccurate following that transition.
Changes: Added in Zulip 5.0 (feature level 103).
Variants§
AdminsOnly = 2
Admins only
Admins = 4
Admins and moderators only
Nobody = 6
Nobody
OwnersOnly = 7
Owners only
Implementations§
Source§impl RealmCreateWebPublicStreamPolicy
impl RealmCreateWebPublicStreamPolicy
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 ADMINS: &str = "admins"
pub const ADMINS: &str = "admins"
Represents the string value of the admins or moderators policy.
Sourcepub const OWNERS_ONLY: &str = "owners_only"
pub const OWNERS_ONLY: &str = "owners_only"
Represents the string value of the owners only policy.
Trait Implementations§
impl Copy for RealmCreateWebPublicStreamPolicy
Source§impl<'de> Deserialize<'de> for RealmCreateWebPublicStreamPolicy
impl<'de> Deserialize<'de> for RealmCreateWebPublicStreamPolicy
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 RealmCreateWebPublicStreamPolicy
impl StructuralPartialEq for RealmCreateWebPublicStreamPolicy
Auto Trait Implementations§
impl Freeze for RealmCreateWebPublicStreamPolicy
impl RefUnwindSafe for RealmCreateWebPublicStreamPolicy
impl Send for RealmCreateWebPublicStreamPolicy
impl Sync for RealmCreateWebPublicStreamPolicy
impl Unpin for RealmCreateWebPublicStreamPolicy
impl UnsafeUnpin for RealmCreateWebPublicStreamPolicy
impl UnwindSafe for RealmCreateWebPublicStreamPolicy
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.