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