#[repr(u8)]pub enum ChannelKind {
Broadcast = 0,
Megagroup = 1,
Gigagroup = 2,
}Expand description
The kind of a Telegram channel, persisted in the session so that
is_megagroup() / is_broadcast() work correctly after a restart.
Variants§
Broadcast = 0
A broadcast channel (posts only).
Megagroup = 1
A supergroup / megagroup (all members can post).
Gigagroup = 2
A gigagroup / broadcast group (large public broadcast supergroup).
Implementations§
Trait Implementations§
Source§impl Clone for ChannelKind
impl Clone for ChannelKind
Source§fn clone(&self) -> ChannelKind
fn clone(&self) -> ChannelKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChannelKind
Source§impl Debug for ChannelKind
impl Debug for ChannelKind
Source§impl<'de> Deserialize<'de> for ChannelKind
impl<'de> Deserialize<'de> for ChannelKind
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
impl Eq for ChannelKind
Source§impl PartialEq for ChannelKind
impl PartialEq for ChannelKind
Source§fn eq(&self, other: &ChannelKind) -> bool
fn eq(&self, other: &ChannelKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChannelKind
impl Serialize for ChannelKind
impl StructuralPartialEq for ChannelKind
Auto Trait Implementations§
impl Freeze for ChannelKind
impl RefUnwindSafe for ChannelKind
impl Send for ChannelKind
impl Sync for ChannelKind
impl Unpin for ChannelKind
impl UnsafeUnpin for ChannelKind
impl UnwindSafe for ChannelKind
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