pub struct Check {
pub name: &'static str,
pub function: CheckFunction,
pub check_in_help: bool,
pub display_in_help: bool,
}
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise
for command handlingAvailable on crate features
framework
and standard_framework
only.Expand description
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
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise
for command handlingName listed in help-system.
function: CheckFunction
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise
for command handlingFunction that will be executed.
check_in_help: bool
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise
for command handlingWhether a check should be evaluated in the help-system. false
will ignore check and won’t
fail execution.
display_in_help: bool
👎Deprecated: The standard framework is deprecated, and will be removed in 0.13. Please migrate to
poise
for command handlingWhether a check shall be listed in the help-system. false
won’t affect whether the check
will be evaluated help, solely Self::check_in_help
sets this.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Check
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnwindSafe for Check
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more