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]
impl Content
Trait Implementations
impl Debug for Content
[src]
impl Debug for Content
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Content
[src]
impl Default for Content
impl Clone for Content
[src]
impl Clone for Content
fn clone(&self) -> Content
[src]
fn clone(&self) -> Content
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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]
impl<T: ToString> Add<T> for Content
type Output = Content
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Content
[src]
fn add(self, rhs: T) -> Content
Performs the +
operation.
impl Add<ContentModifier> for Content
[src]
impl Add<ContentModifier> for Content
type Output = Content
The resulting type after applying the +
operator.
fn add(self, rhs: ContentModifier) -> Content
[src]
fn add(self, rhs: ContentModifier) -> Content
Performs the +
operation.
impl From<ContentModifier> for Content
[src]
impl From<ContentModifier> for Content
fn from(cm: ContentModifier) -> Content
[src]
fn from(cm: ContentModifier) -> Content
Performs the conversion.