pub enum Chat {
Empty(ChatEmpty),
Chat(Chat),
Forbidden(ChatForbidden),
Channel(Channel),
ChannelForbidden(ChannelForbidden),
CommunityForbidden(CommunityForbidden),
Community(Community),
}Expand description
Variants§
Empty(ChatEmpty)
Chat(Chat)
Forbidden(ChatForbidden)
Channel(Channel)
ChannelForbidden(ChannelForbidden)
CommunityForbidden(CommunityForbidden)
Community(Community)
Implementations§
Source§impl Chat
impl Chat
Sourcepub fn call_active(&self) -> Option<&bool>
pub fn call_active(&self) -> Option<&bool>
Returns call_active if present in this variant.
Sourcepub fn call_not_empty(&self) -> Option<&bool>
pub fn call_not_empty(&self) -> Option<&bool>
Returns call_not_empty if present in this variant.
Sourcepub fn noforwards(&self) -> Option<&bool>
pub fn noforwards(&self) -> Option<&bool>
Returns noforwards if present in this variant.
Sourcepub fn participants_count(&self) -> Option<&i32>
pub fn participants_count(&self) -> Option<&i32>
Returns participants_count if present in this variant.
Sourcepub fn admin_rights(&self) -> Option<&ChatAdminRights>
pub fn admin_rights(&self) -> Option<&ChatAdminRights>
Returns admin_rights if present in this variant.
Sourcepub fn default_banned_rights(&self) -> Option<&ChatBannedRights>
pub fn default_banned_rights(&self) -> Option<&ChatBannedRights>
Returns default_banned_rights if present in this variant.
Sourcepub fn access_hash(&self) -> Option<&i64>
pub fn access_hash(&self) -> Option<&i64>
Returns access_hash if present in this variant.
Trait Implementations§
Source§impl Deserializable for Chat
impl Deserializable for Chat
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 From<ChannelForbidden> for Chat
impl From<ChannelForbidden> for Chat
Source§fn from(x: ChannelForbidden) -> Self
fn from(x: ChannelForbidden) -> Self
Converts to this type from the input type.
Source§impl From<ChatForbidden> for Chat
impl From<ChatForbidden> for Chat
Source§fn from(x: ChatForbidden) -> Self
fn from(x: ChatForbidden) -> Self
Converts to this type from the input type.
Source§impl From<CommunityForbidden> for Chat
impl From<CommunityForbidden> for Chat
Source§fn from(x: CommunityForbidden) -> Self
fn from(x: CommunityForbidden) -> Self
Converts to this type from the input type.
Source§impl Serializable for Chat
impl Serializable for Chat
impl StructuralPartialEq for Chat
Source§impl TryFrom<Chat> for ChatForbidden
impl TryFrom<Chat> for ChatForbidden
Source§impl TryFrom<Chat> for ChannelForbidden
impl TryFrom<Chat> for ChannelForbidden
Source§impl TryFrom<Chat> for CommunityForbidden
impl TryFrom<Chat> for CommunityForbidden
Auto Trait Implementations§
impl Freeze for Chat
impl RefUnwindSafe for Chat
impl Send for Chat
impl Sync for Chat
impl Unpin for Chat
impl UnsafeUnpin for Chat
impl UnwindSafe for Chat
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