#[repr(u8)]pub enum StreamPostPolicy {
AnyUser = 1,
OnlyAdministrator = 2,
OnlyFullMember = 3,
OnlyModerator = 4,
}Expand description
Represents A deprecated representation of a superset of the users who have permission to post messages to the channel available for backwards-compatibility.
Clients should use can_send_message_group instead.
Variants§
AnyUser = 1
Any user can post.
OnlyAdministrator = 2
Only administrators can post.
OnlyFullMember = 3
Only full members can post.
OnlyModerator = 4
Only moderators can post.
Implementations§
Source§impl StreamPostPolicy
impl StreamPostPolicy
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new StreamPostPolicy.
Trait Implementations§
Source§impl Clone for StreamPostPolicy
impl Clone for StreamPostPolicy
impl Copy for StreamPostPolicy
Source§impl Debug for StreamPostPolicy
impl Debug for StreamPostPolicy
Source§impl Default for StreamPostPolicy
impl Default for StreamPostPolicy
Source§impl<'de> Deserialize<'de> for StreamPostPolicy
impl<'de> Deserialize<'de> for StreamPostPolicy
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 Display for StreamPostPolicy
impl Display for StreamPostPolicy
impl Eq for StreamPostPolicy
Source§impl PartialEq for StreamPostPolicy
impl PartialEq for StreamPostPolicy
Source§impl Serialize for StreamPostPolicy
impl Serialize for StreamPostPolicy
impl StructuralPartialEq for StreamPostPolicy
Auto Trait Implementations§
impl Freeze for StreamPostPolicy
impl RefUnwindSafe for StreamPostPolicy
impl Send for StreamPostPolicy
impl Sync for StreamPostPolicy
impl Unpin for StreamPostPolicy
impl UnsafeUnpin for StreamPostPolicy
impl UnwindSafe for StreamPostPolicy
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
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
Compare self to
key and return true if they are equal.