Enum serenity::utils::ContentModifier
[−]
[src]
pub enum ContentModifier { Italic, Bold, Strikethrough, Code, Underline, }
Formatting modifiers for MessageBuilder content pushes
Provides an enum of formatting modifiers for a string, for combination with string types and Content types.
Examples
Create a new Content type which describes a bold-italic "text":
use serenity::utils::ContentModifier::{Bold, Italic}; use serenity::utils::Content; let content: Content = Bold + Italic + "text";
Variants
Italic
Bold
Strikethrough
Code
Underline
Trait Implementations
impl<T: ToString> Add<T> for ContentModifier
[src]
type Output = Content
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Content
[src]
Performs the +
operation.