Skip to main content

ChatBannedRights

Struct ChatBannedRights 

Source
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

chatBannedRights

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 = ChatBannedRights

Fields§

§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: i32

Trait Implementations§

Source§

impl Clone for ChatBannedRights

Source§

fn clone(&self) -> ChatBannedRights

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 ChatBannedRights

Source§

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

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

impl Deserializable for ChatBannedRights

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<ChatBannedRights> for ChatBannedRights

Source§

fn from(x: ChatBannedRights) -> Self

Converts to this type from the input type.
Source§

impl Identifiable for ChatBannedRights

Source§

const CONSTRUCTOR_ID: u32 = 0x9f120418

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

impl PartialEq for ChatBannedRights

Source§

fn eq(&self, other: &ChatBannedRights) -> 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 ChatBannedRights

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<ChatBannedRights> for ChatBannedRights

Source§

type Error = ChatBannedRights

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

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

Performs the conversion.
Source§

impl StructuralPartialEq for ChatBannedRights

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.