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

pub struct Check {
    pub name: &'static str,
    pub function: CheckFunction,
    pub check_in_help: bool,
    pub display_in_help: bool,
}

A check can be part of a command or group and will be executed to determine whether a user is permitted to use related item.

Additionally, a check may hold additional settings.

Fields

name: &'static str

Name listed in help-system.

function: CheckFunction

Function that will be executed.

check_in_help: bool

Whether a check should be evaluated in the help-system. false will ignore check and won't fail execution.

display_in_help: bool

Whether a check shall be listed in the help-system. false won't affect whether the check will be evaluated help, solely check_in_help sets this.

Trait Implementations

impl Debug for Check[src]

impl PartialEq<Check> for Check[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]