pub struct TextDisplay {
pub id: Option<u32>,
pub content: String,
}Expand description
Type 10.
Fields§
§id: Option<u32>Unique in the message.
content: StringMarkdown, 1–4 000 scalars (all text displays together ≤ 4 000).
Trait Implementations§
Source§impl Clone for TextDisplay
impl Clone for TextDisplay
Source§fn clone(&self) -> TextDisplay
fn clone(&self) -> TextDisplay
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 TextDisplay
impl Debug for TextDisplay
Source§impl<'de> Deserialize<'de> for TextDisplay
impl<'de> Deserialize<'de> for TextDisplay
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TextDisplay
Source§impl PartialEq for TextDisplay
impl PartialEq for TextDisplay
Source§impl Serialize for TextDisplay
impl Serialize for TextDisplay
impl StructuralPartialEq for TextDisplay
Auto Trait Implementations§
impl Freeze for TextDisplay
impl RefUnwindSafe for TextDisplay
impl Send for TextDisplay
impl Sync for TextDisplay
impl Unpin for TextDisplay
impl UnsafeUnpin for TextDisplay
impl UnwindSafe for TextDisplay
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