pub struct ChatBannedRights {Show 21 fields
pub view_messages: bool,
pub send_messages: bool,
pub send_media: bool,
pub send_stickers: bool,
pub send_gifs: bool,
pub send_games: bool,
pub send_inline: bool,
pub embed_links: bool,
pub send_polls: bool,
pub change_info: bool,
pub invite_users: bool,
pub pin_messages: bool,
pub manage_topics: bool,
pub send_photos: bool,
pub send_videos: bool,
pub send_roundvideos: bool,
pub send_audios: bool,
pub send_voices: bool,
pub send_docs: bool,
pub send_plain: bool,
pub until_date: i32,
}Expand description
Generated from:
chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true manage_topics:flags.18?true send_photos:flags.19?true send_videos:flags.20?true send_roundvideos:flags.21?true send_audios:flags.22?true send_voices:flags.23?true send_docs:flags.24?true send_plain:flags.25?true until_date:int = ChatBannedRightsFields§
§view_messages: bool§send_messages: bool§send_media: bool§send_stickers: bool§send_gifs: bool§send_games: bool§send_inline: bool§embed_links: bool§send_polls: bool§change_info: bool§invite_users: bool§pin_messages: bool§manage_topics: bool§send_photos: bool§send_videos: bool§send_roundvideos: bool§send_audios: bool§send_voices: bool§send_docs: bool§send_plain: bool§until_date: i32Trait Implementations§
Source§impl Clone for ChatBannedRights
impl Clone for ChatBannedRights
Source§fn clone(&self) -> ChatBannedRights
fn clone(&self) -> ChatBannedRights
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChatBannedRights
impl Debug for ChatBannedRights
Source§impl Deserializable for ChatBannedRights
impl Deserializable for ChatBannedRights
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<ChatBannedRights> for ChatBannedRights
impl From<ChatBannedRights> for ChatBannedRights
Source§fn from(x: ChatBannedRights) -> Self
fn from(x: ChatBannedRights) -> Self
Converts to this type from the input type.
Source§impl Identifiable for ChatBannedRights
impl Identifiable for ChatBannedRights
Source§const CONSTRUCTOR_ID: u32 = 0x9f120418
const CONSTRUCTOR_ID: u32 = 0x9f120418
The constructor ID as specified in the TL schema.
Source§impl PartialEq for ChatBannedRights
impl PartialEq for ChatBannedRights
Source§impl Serializable for ChatBannedRights
impl Serializable for ChatBannedRights
Source§impl TryFrom<ChatBannedRights> for ChatBannedRights
impl TryFrom<ChatBannedRights> for ChatBannedRights
Source§type Error = ChatBannedRights
type Error = ChatBannedRights
The type returned in the event of a conversion error.
impl StructuralPartialEq for ChatBannedRights
Auto Trait Implementations§
impl Freeze for ChatBannedRights
impl RefUnwindSafe for ChatBannedRights
impl Send for ChatBannedRights
impl Sync for ChatBannedRights
impl Unpin for ChatBannedRights
impl UnsafeUnpin for ChatBannedRights
impl UnwindSafe for ChatBannedRights
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