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