pub struct TextDisplay;Expand description
A Components V2 text block (markdown, ≤ 4 000 per message in all).
Implementations§
Source§impl TextDisplay
impl TextDisplay
Sourcepub fn new(content: impl Into<String>) -> TextDisplay
pub fn new(content: impl Into<String>) -> TextDisplay
A text display.
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 moreAuto 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