[][src]Struct serenity::framework::standard::WithWhiteSpace

pub struct WithWhiteSpace {
    pub prefixes: bool,
    pub groups: bool,
    pub commands: bool,
}

A configuration struct for deciding whether the framework should allow optional whitespace between prefixes, group prefixes and command names.

Fields

prefixes: boolgroups: boolcommands: bool

Trait Implementations

impl Clone for WithWhiteSpace[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for WithWhiteSpace[src]

fn default() -> Self[src]

Impose the default settings to (false, true, true).

impl From<bool> for WithWhiteSpace[src]

fn from(b: bool) -> Self[src]

Impose the prefix setting.

impl From<(bool, bool)> for WithWhiteSpace[src]

fn from((prefixes, groups): (bool, bool)) -> Self[src]

Impose the prefix and group prefix settings.

impl From<(bool, bool, bool)> for WithWhiteSpace[src]

fn from((prefixes, groups, commands): (bool, bool, bool)) -> Self[src]

Impose the prefix, group prefix and command names settings.

impl PartialEq<WithWhiteSpace> for WithWhiteSpace[src]

impl Copy for WithWhiteSpace[src]

impl Eq for WithWhiteSpace[src]

impl Debug for WithWhiteSpace[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any