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