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
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 = ChatFields§
§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§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 Deserializable for Channel
impl Deserializable for Channel
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl Identifiable for Channel
impl Identifiable for Channel
Source§const CONSTRUCTOR_ID: u32 = 0x1c32b11c
const CONSTRUCTOR_ID: u32 = 0x1c32b11c
The constructor ID as specified in the TL schema.
Source§impl Serializable for Channel
impl Serializable for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnsafeUnpin for Channel
impl UnwindSafe for Channel
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