pub struct TextDisplay {
pub id: Option<i32>,
pub content: String,
}
Expand description
Top-level component that allows markdown formatted text.
Text Displays are only available in messages.
Fields§
§id: Option<i32>
Optional id for the text display component.
content: String
Text that will be displayed similar to a message.
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 · 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
Source§impl From<TextDisplay> for Component
impl From<TextDisplay> for Component
Source§fn from(text_display: TextDisplay) -> Self
fn from(text_display: TextDisplay) -> Self
Converts to this type from the input type.
Source§impl Hash for TextDisplay
impl Hash for TextDisplay
Source§impl PartialEq for TextDisplay
impl PartialEq for TextDisplay
Source§impl Serialize for TextDisplay
impl Serialize for TextDisplay
impl Eq 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 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