pub struct KeyboardButtonCallback {
pub requires_password: bool,
pub style: Option<KeyboardButtonStyle>,
pub text: String,
pub data: Vec<u8>,
}Expand description
Generated from:
keyboardButtonCallback#e62bc960 flags:# requires_password:flags.0?true style:flags.10?KeyboardButtonStyle text:string data:bytes = KeyboardButtonFields§
§requires_password: bool§style: Option<KeyboardButtonStyle>§text: String§data: Vec<u8>Trait Implementations§
Source§impl Clone for KeyboardButtonCallback
impl Clone for KeyboardButtonCallback
Source§fn clone(&self) -> KeyboardButtonCallback
fn clone(&self) -> KeyboardButtonCallback
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 KeyboardButtonCallback
impl Debug for KeyboardButtonCallback
Source§impl Deserializable for KeyboardButtonCallback
impl Deserializable for KeyboardButtonCallback
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<KeyboardButtonCallback> for KeyboardButton
impl From<KeyboardButtonCallback> for KeyboardButton
Source§fn from(x: KeyboardButtonCallback) -> Self
fn from(x: KeyboardButtonCallback) -> Self
Converts to this type from the input type.
Source§impl Identifiable for KeyboardButtonCallback
impl Identifiable for KeyboardButtonCallback
Source§const CONSTRUCTOR_ID: u32 = 0xe62bc960
const CONSTRUCTOR_ID: u32 = 0xe62bc960
The constructor ID as specified in the TL schema.
Source§impl PartialEq for KeyboardButtonCallback
impl PartialEq for KeyboardButtonCallback
Source§impl TryFrom<KeyboardButton> for KeyboardButtonCallback
impl TryFrom<KeyboardButton> for KeyboardButtonCallback
Source§type Error = KeyboardButton
type Error = KeyboardButton
The type returned in the event of a conversion error.
impl StructuralPartialEq for KeyboardButtonCallback
Auto Trait Implementations§
impl Freeze for KeyboardButtonCallback
impl RefUnwindSafe for KeyboardButtonCallback
impl Send for KeyboardButtonCallback
impl Sync for KeyboardButtonCallback
impl Unpin for KeyboardButtonCallback
impl UnsafeUnpin for KeyboardButtonCallback
impl UnwindSafe for KeyboardButtonCallback
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