pub struct BotMenuButton {
pub text: String,
pub url: String,
}Expand description
Fields§
§text: String§url: StringTrait Implementations§
Source§impl Clone for BotMenuButton
impl Clone for BotMenuButton
Source§fn clone(&self) -> BotMenuButton
fn clone(&self) -> BotMenuButton
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 BotMenuButton
impl Debug for BotMenuButton
Source§impl Deserializable for BotMenuButton
impl Deserializable for BotMenuButton
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<BotMenuButton> for BotMenuButton
impl From<BotMenuButton> for BotMenuButton
Source§fn from(x: BotMenuButton) -> Self
fn from(x: BotMenuButton) -> Self
Converts to this type from the input type.
Source§impl Identifiable for BotMenuButton
impl Identifiable for BotMenuButton
Source§const CONSTRUCTOR_ID: u32 = 0xc7b57ce6
const CONSTRUCTOR_ID: u32 = 0xc7b57ce6
The constructor ID as specified in the TL schema.
Source§impl PartialEq for BotMenuButton
impl PartialEq for BotMenuButton
Source§impl Serializable for BotMenuButton
impl Serializable for BotMenuButton
Source§impl TryFrom<BotMenuButton> for BotMenuButton
impl TryFrom<BotMenuButton> for BotMenuButton
Source§type Error = BotMenuButton
type Error = BotMenuButton
The type returned in the event of a conversion error.
impl StructuralPartialEq for BotMenuButton
Auto Trait Implementations§
impl Freeze for BotMenuButton
impl RefUnwindSafe for BotMenuButton
impl Send for BotMenuButton
impl Sync for BotMenuButton
impl Unpin for BotMenuButton
impl UnsafeUnpin for BotMenuButton
impl UnwindSafe for BotMenuButton
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