pub enum ExpandedContent {
Embed(Box<SerenityEmbed>),
CodeBlock {
language: String,
code: String,
metadata: String,
},
}Expand description
Expanded content produced by a link expander.
Represents the different kinds of content that can result from expanding a link.
Variants§
Embed(Box<SerenityEmbed>)
A Discord message preview displayed as an embed.
CodeBlock
A code block with syntax highlighting (e.g. GitHub permalink).
Auto Trait Implementations§
impl Freeze for ExpandedContent
impl RefUnwindSafe for ExpandedContent
impl Send for ExpandedContent
impl Sync for ExpandedContent
impl Unpin for ExpandedContent
impl UnsafeUnpin for ExpandedContent
impl UnwindSafe for ExpandedContent
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