[][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 PartialEq<Check> for Check[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Debug for Check[src]

Auto Trait Implementations

impl Sync for Check

impl Send for Check

impl Unpin for Check

impl RefUnwindSafe for Check

impl UnwindSafe for Check

Blanket Implementations

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<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> UnsafeAny for T where
    T: Any