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