Skip to main content

Channel

Struct Channel 

Source
pub struct Channel {
Show 49 fields pub creator: bool, pub left: bool, pub broadcast: bool, pub verified: bool, pub megagroup: bool, pub restricted: bool, pub signatures: bool, pub min: bool, pub scam: bool, pub has_link: bool, pub has_geo: bool, pub slowmode_enabled: bool, pub call_active: bool, pub call_not_empty: bool, pub fake: bool, pub gigagroup: bool, pub noforwards: bool, pub join_to_send: bool, pub join_request: bool, pub forum: bool, pub stories_hidden: bool, pub stories_hidden_min: bool, pub stories_unavailable: bool, pub signature_profiles: bool, pub autotranslation: bool, pub broadcast_messages_allowed: bool, pub monoforum: bool, pub forum_tabs: bool, pub id: i64, pub access_hash: Option<i64>, pub title: String, pub username: Option<String>, pub photo: ChatPhoto, pub date: i32, pub restriction_reason: Option<Vec<RestrictionReason>>, pub admin_rights: Option<ChatAdminRights>, pub banned_rights: Option<ChatBannedRights>, pub default_banned_rights: Option<ChatBannedRights>, pub participants_count: Option<i32>, pub usernames: Option<Vec<Username>>, pub stories_max_id: Option<RecentStory>, pub color: Option<PeerColor>, pub profile_color: Option<PeerColor>, pub emoji_status: Option<EmojiStatus>, pub level: Option<i32>, pub subscription_until_date: Option<i32>, pub bot_verification_icon: Option<i64>, pub send_paid_messages_stars: Option<i64>, pub linked_monoforum_id: Option<i64>,
}
Expand description

channel

Generated from:

channel#1c32b11c flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true fake:flags.25?true gigagroup:flags.26?true noforwards:flags.27?true join_to_send:flags.28?true join_request:flags.29?true forum:flags.30?true flags2:# stories_hidden:flags2.1?true stories_hidden_min:flags2.2?true stories_unavailable:flags2.3?true signature_profiles:flags2.12?true autotranslation:flags2.15?true broadcast_messages_allowed:flags2.16?true monoforum:flags2.17?true forum_tabs:flags2.19?true id:long access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int usernames:flags2.0?Vector<Username> stories_max_id:flags2.4?RecentStory color:flags2.7?PeerColor profile_color:flags2.8?PeerColor emoji_status:flags2.9?EmojiStatus level:flags2.10?int subscription_until_date:flags2.11?int bot_verification_icon:flags2.13?long send_paid_messages_stars:flags2.14?long linked_monoforum_id:flags2.18?long = Chat

Fields§

§creator: bool§left: bool§broadcast: bool§verified: bool§megagroup: bool§restricted: bool§signatures: bool§min: bool§scam: bool§has_link: bool§has_geo: bool§slowmode_enabled: bool§call_active: bool§call_not_empty: bool§fake: bool§gigagroup: bool§noforwards: bool§join_to_send: bool§join_request: bool§forum: bool§stories_hidden: bool§stories_hidden_min: bool§stories_unavailable: bool§signature_profiles: bool§autotranslation: bool§broadcast_messages_allowed: bool§monoforum: bool§forum_tabs: bool§id: i64§access_hash: Option<i64>§title: String§username: Option<String>§photo: ChatPhoto§date: i32§restriction_reason: Option<Vec<RestrictionReason>>§admin_rights: Option<ChatAdminRights>§banned_rights: Option<ChatBannedRights>§default_banned_rights: Option<ChatBannedRights>§participants_count: Option<i32>§usernames: Option<Vec<Username>>§stories_max_id: Option<RecentStory>§color: Option<PeerColor>§profile_color: Option<PeerColor>§emoji_status: Option<EmojiStatus>§level: Option<i32>§subscription_until_date: Option<i32>§bot_verification_icon: Option<i64>§send_paid_messages_stars: Option<i64>§linked_monoforum_id: Option<i64>

Trait Implementations§

Source§

impl Clone for Channel

Source§

fn clone(&self) -> Channel

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Channel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserializable for Channel

Source§

fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>

Read Self from buf, advancing its position.
Source§

fn from_bytes(bytes: &[u8]) -> Result<Self>

Convenience: deserialize from a byte slice.
Source§

impl From<Channel> for Chat

Source§

fn from(x: Channel) -> Self

Converts to this type from the input type.
Source§

impl Identifiable for Channel

Source§

const CONSTRUCTOR_ID: u32 = 0x1c32b11c

The constructor ID as specified in the TL schema.
Source§

impl PartialEq for Channel

Source§

fn eq(&self, other: &Channel) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serializable for Channel

Source§

fn serialize(&self, buf: &mut impl Extend<u8>)

Appends the serialized form of self to buf.
Source§

fn to_bytes(&self) -> Vec<u8>

Convenience: allocate a fresh Vec<u8> and serialize into it.
Source§

impl TryFrom<Chat> for Channel

Source§

type Error = Chat

The type returned in the event of a conversion error.
Source§

fn try_from(v: Chat) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for Channel

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.