pub struct KeyboardButtonRequestPeer {
pub style: Option<KeyboardButtonStyle>,
pub text: String,
pub button_id: i32,
pub peer_type: RequestPeerType,
pub max_quantity: i32,
}Expand description
Generated from:
keyboardButtonRequestPeer#5b0f15f5 flags:# style:flags.10?KeyboardButtonStyle text:string button_id:int peer_type:RequestPeerType max_quantity:int = KeyboardButtonFields§
§style: Option<KeyboardButtonStyle>§text: String§peer_type: RequestPeerType§max_quantity: i32Trait Implementations§
Source§impl Clone for KeyboardButtonRequestPeer
impl Clone for KeyboardButtonRequestPeer
Source§fn clone(&self) -> KeyboardButtonRequestPeer
fn clone(&self) -> KeyboardButtonRequestPeer
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 KeyboardButtonRequestPeer
impl Debug for KeyboardButtonRequestPeer
Source§impl Deserializable for KeyboardButtonRequestPeer
impl Deserializable for KeyboardButtonRequestPeer
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<KeyboardButtonRequestPeer> for KeyboardButton
impl From<KeyboardButtonRequestPeer> for KeyboardButton
Source§fn from(x: KeyboardButtonRequestPeer) -> Self
fn from(x: KeyboardButtonRequestPeer) -> Self
Converts to this type from the input type.
Source§impl Identifiable for KeyboardButtonRequestPeer
impl Identifiable for KeyboardButtonRequestPeer
Source§const CONSTRUCTOR_ID: u32 = 0x5b0f15f5
const CONSTRUCTOR_ID: u32 = 0x5b0f15f5
The constructor ID as specified in the TL schema.
Source§impl TryFrom<KeyboardButton> for KeyboardButtonRequestPeer
impl TryFrom<KeyboardButton> for KeyboardButtonRequestPeer
Source§type Error = KeyboardButton
type Error = KeyboardButton
The type returned in the event of a conversion error.
impl StructuralPartialEq for KeyboardButtonRequestPeer
Auto Trait Implementations§
impl Freeze for KeyboardButtonRequestPeer
impl RefUnwindSafe for KeyboardButtonRequestPeer
impl Send for KeyboardButtonRequestPeer
impl Sync for KeyboardButtonRequestPeer
impl Unpin for KeyboardButtonRequestPeer
impl UnsafeUnpin for KeyboardButtonRequestPeer
impl UnwindSafe for KeyboardButtonRequestPeer
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