Struct serenity::utils::Content
[−]
[src]
pub struct Content {
pub italic: bool,
pub bold: bool,
pub strikethrough: bool,
pub inner: String,
pub code: bool,
pub underline: bool,
}Describes formatting on string content
Fields
italic: bool
bold: bool
strikethrough: bool
inner: String
code: bool
underline: bool
Methods
impl Content[src]
Trait Implementations
impl Default for Content[src]
impl Clone for Content[src]
fn clone(&self) -> Content[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<T: ToString> Add<T> for Content[src]
type Output = Content
The resulting type after applying the + operator.
fn add(self, rhs: T) -> Content[src]
Performs the + operation.
impl Add<ContentModifier> for Content[src]
type Output = Content
The resulting type after applying the + operator.
fn add(self, rhs: ContentModifier) -> Content[src]
Performs the + operation.
impl From<ContentModifier> for Content[src]
fn from(cm: ContentModifier) -> Content[src]
Performs the conversion.