pub struct CanSubscribeGroup(pub GroupSetting);Expand description
Represents a group-setting value defining the set of users who have permission to subscribe themselves to this channel.
Everyone, excluding guests, can subscribe to any public channel irrespective of this setting. Users in this group can subscribe to a private channel as well.
Note that a user must have content access to a channel and permission to administer the channel in order to modify this setting.
Changes: New in Zulip 10.0 (feature level 357).
Tuple Fields§
§0: GroupSettingImplementations§
Source§impl CanSubscribeGroup
impl CanSubscribeGroup
Sourcepub const fn from_inner(val: GroupSetting) -> Self
pub const fn from_inner(val: GroupSetting) -> Self
Converts the inner representation into a Self.
Sourcepub fn into_inner(self) -> GroupSetting
pub fn into_inner(self) -> GroupSetting
Converts the Self into the inner representation.
Trait Implementations§
Source§impl Clone for CanSubscribeGroup
impl Clone for CanSubscribeGroup
Source§impl Debug for CanSubscribeGroup
impl Debug for CanSubscribeGroup
Source§impl Default for CanSubscribeGroup
impl Default for CanSubscribeGroup
Source§impl<'de> Deserialize<'de> for CanSubscribeGroup
impl<'de> Deserialize<'de> for CanSubscribeGroup
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'c> From<&'c CanSubscribeGroup> for Cow<'c, CanSubscribeGroup>
impl<'c> From<&'c CanSubscribeGroup> for Cow<'c, CanSubscribeGroup>
Source§fn from(val: &'c CanSubscribeGroup) -> Self
fn from(val: &'c CanSubscribeGroup) -> Self
Converts to this type from the input type.
Source§impl<'c> From<CanSubscribeGroup> for Cow<'c, CanSubscribeGroup>
impl<'c> From<CanSubscribeGroup> for Cow<'c, CanSubscribeGroup>
Source§fn from(val: CanSubscribeGroup) -> Self
fn from(val: CanSubscribeGroup) -> Self
Converts to this type from the input type.
Source§impl<'c> From<Cow<'c, CanSubscribeGroup>> for CanSubscribeGroup
impl<'c> From<Cow<'c, CanSubscribeGroup>> for CanSubscribeGroup
Source§impl PartialEq for CanSubscribeGroup
impl PartialEq for CanSubscribeGroup
Source§impl Serialize for CanSubscribeGroup
impl Serialize for CanSubscribeGroup
impl StructuralPartialEq for CanSubscribeGroup
Auto Trait Implementations§
impl Freeze for CanSubscribeGroup
impl RefUnwindSafe for CanSubscribeGroup
impl Send for CanSubscribeGroup
impl Sync for CanSubscribeGroup
impl Unpin for CanSubscribeGroup
impl UnsafeUnpin for CanSubscribeGroup
impl UnwindSafe for CanSubscribeGroup
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
Mutably borrows from an owned value. Read more