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