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