pub struct TextBotCommand {
pub text: RichText,
}Expand description
Fields§
§text: RichTextTrait Implementations§
Source§impl Clone for TextBotCommand
impl Clone for TextBotCommand
Source§fn clone(&self) -> TextBotCommand
fn clone(&self) -> TextBotCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextBotCommand
impl Debug for TextBotCommand
Source§impl Deserializable for TextBotCommand
impl Deserializable for TextBotCommand
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<TextBotCommand> for RichText
impl From<TextBotCommand> for RichText
Source§fn from(x: TextBotCommand) -> Self
fn from(x: TextBotCommand) -> Self
Converts to this type from the input type.
Source§impl Identifiable for TextBotCommand
impl Identifiable for TextBotCommand
Source§const CONSTRUCTOR_ID: u32 = 0x02ff29d3
const CONSTRUCTOR_ID: u32 = 0x02ff29d3
The constructor ID as specified in the TL schema.
Source§impl PartialEq for TextBotCommand
impl PartialEq for TextBotCommand
Source§fn eq(&self, other: &TextBotCommand) -> bool
fn eq(&self, other: &TextBotCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serializable for TextBotCommand
impl Serializable for TextBotCommand
impl StructuralPartialEq for TextBotCommand
Auto Trait Implementations§
impl Freeze for TextBotCommand
impl RefUnwindSafe for TextBotCommand
impl Send for TextBotCommand
impl Sync for TextBotCommand
impl Unpin for TextBotCommand
impl UnsafeUnpin for TextBotCommand
impl UnwindSafe for TextBotCommand
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