[][src]Struct grammers_tl_types::types::Channel

pub struct Channel {
    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 id: i32,
    pub access_hash: Option<i64>,
    pub title: String,
    pub username: Option<String>,
    pub photo: ChatPhoto,
    pub date: i32,
    pub version: 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>,
}

Fields

creator: boolleft: boolbroadcast: boolverified: boolmegagroup: boolrestricted: boolsignatures: boolmin: boolscam: boolhas_link: boolhas_geo: boolslowmode_enabled: boolid: i32access_hash: Option<i64>title: Stringusername: Option<String>photo: ChatPhotodate: i32version: i32restriction_reason: Option<Vec<RestrictionReason>>admin_rights: Option<ChatAdminRights>banned_rights: Option<ChatBannedRights>default_banned_rights: Option<ChatBannedRights>participants_count: Option<i32>

Trait Implementations

impl Clone for Channel[src]

impl Debug for Channel[src]

impl Deserializable for Channel[src]

impl From<Channel> for Chat[src]

impl Identifiable for Channel[src]

impl PartialEq<Channel> for Channel[src]

impl Serializable for Channel[src]

impl StructuralPartialEq for Channel[src]

impl TryFrom<Chat> for Channel[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Channel

impl Send for Channel

impl Sync for Channel

impl Unpin for Channel

impl UnwindSafe for Channel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.