KeyboardButtonTypeRequestChat

Struct KeyboardButtonTypeRequestChat 

Source
pub struct KeyboardButtonTypeRequestChat {
Show 13 fields pub id: i32, pub chat_is_channel: bool, pub restrict_chat_is_forum: bool, pub chat_is_forum: bool, pub restrict_chat_has_username: bool, pub chat_has_username: bool, pub chat_is_created: bool, pub user_administrator_rights: Option<ChatAdministratorRights>, pub bot_administrator_rights: Option<ChatAdministratorRights>, pub bot_is_member: bool, pub request_title: bool, pub request_username: bool, pub request_photo: bool,
}
Expand description

A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request

Fields§

§id: i32

Unique button identifier

§chat_is_channel: bool

True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared

§restrict_chat_is_forum: bool

True, if the chat must or must not be a forum supergroup

§chat_is_forum: bool

True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false

§restrict_chat_has_username: bool

True, if the chat must or must not have a username

§chat_has_username: bool

True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false

§chat_is_created: bool

True, if the chat must be created by the current user

§user_administrator_rights: Option<ChatAdministratorRights>

Expected user administrator rights in the chat; may be null if they aren’t restricted

§bot_administrator_rights: Option<ChatAdministratorRights>

Expected bot administrator rights in the chat; may be null if they aren’t restricted

§bot_is_member: bool

True, if the bot must be a member of the chat; for basic group and supergroup chats only

§request_title: bool

Pass true to request title of the chat; bots only

§request_username: bool

Pass true to request username of the chat; bots only

§request_photo: bool

Pass true to request photo of the chat; bots only

Trait Implementations§

Source§

impl Clone for KeyboardButtonTypeRequestChat

Source§

fn clone(&self) -> KeyboardButtonTypeRequestChat

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 KeyboardButtonTypeRequestChat

Source§

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

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

impl Default for KeyboardButtonTypeRequestChat

Source§

fn default() -> KeyboardButtonTypeRequestChat

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for KeyboardButtonTypeRequestChat

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for KeyboardButtonTypeRequestChat

Source§

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

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for KeyboardButtonTypeRequestChat

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,