pub struct InputKeyboardButtonRequestPeer {
pub name_requested: bool,
pub username_requested: bool,
pub photo_requested: bool,
pub style: Option<KeyboardButtonStyle>,
pub text: String,
pub button_id: i32,
pub peer_type: RequestPeerType,
pub max_quantity: i32,
}Expand description
inputKeyboardButtonRequestPeer
Generated from:
inputKeyboardButtonRequestPeer#2b78156 flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true style:flags.10?KeyboardButtonStyle text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButtonFields§
§name_requested: bool§username_requested: bool§photo_requested: bool§style: Option<KeyboardButtonStyle>§text: String§peer_type: RequestPeerType§max_quantity: i32Trait Implementations§
Source§impl Clone for InputKeyboardButtonRequestPeer
impl Clone for InputKeyboardButtonRequestPeer
Source§fn clone(&self) -> InputKeyboardButtonRequestPeer
fn clone(&self) -> InputKeyboardButtonRequestPeer
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 Deserializable for InputKeyboardButtonRequestPeer
impl Deserializable for InputKeyboardButtonRequestPeer
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<InputKeyboardButtonRequestPeer> for KeyboardButton
impl From<InputKeyboardButtonRequestPeer> for KeyboardButton
Source§fn from(x: InputKeyboardButtonRequestPeer) -> Self
fn from(x: InputKeyboardButtonRequestPeer) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputKeyboardButtonRequestPeer
impl Identifiable for InputKeyboardButtonRequestPeer
Source§const CONSTRUCTOR_ID: u32 = 0x02b78156
const CONSTRUCTOR_ID: u32 = 0x02b78156
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputKeyboardButtonRequestPeer
impl PartialEq for InputKeyboardButtonRequestPeer
Source§fn eq(&self, other: &InputKeyboardButtonRequestPeer) -> bool
fn eq(&self, other: &InputKeyboardButtonRequestPeer) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<KeyboardButton> for InputKeyboardButtonRequestPeer
impl TryFrom<KeyboardButton> for InputKeyboardButtonRequestPeer
Source§type Error = KeyboardButton
type Error = KeyboardButton
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputKeyboardButtonRequestPeer
Auto Trait Implementations§
impl Freeze for InputKeyboardButtonRequestPeer
impl RefUnwindSafe for InputKeyboardButtonRequestPeer
impl Send for InputKeyboardButtonRequestPeer
impl Sync for InputKeyboardButtonRequestPeer
impl Unpin for InputKeyboardButtonRequestPeer
impl UnsafeUnpin for InputKeyboardButtonRequestPeer
impl UnwindSafe for InputKeyboardButtonRequestPeer
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