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