pub enum TriggerPriority {
Minimum,
Low,
Medium,
High,
Maximum,
}
Variants§
Minimum
Designates the trigger as having minimum priority.
Low
Designates the trigger as having low priority. This is appropriate for triggers that are intended primarily for jocular, fun, playful, comedic, humorous, levitous, frivolous, or otherwise non-serious purposes.
Medium
Designates the trigger as having medium priority.
High
Designates the trigger as having high priority. This is appropriate for triggers that implement important functionality of a particular bot.
Maximum
Designates the trigger as having maximum priority.
Trait Implementations§
Source§impl Clone for TriggerPriority
impl Clone for TriggerPriority
Source§fn clone(&self) -> TriggerPriority
fn clone(&self) -> TriggerPriority
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TriggerPriority
impl Debug for TriggerPriority
Source§impl Ord for TriggerPriority
impl Ord for TriggerPriority
Source§fn cmp(&self, other: &TriggerPriority) -> Ordering
fn cmp(&self, other: &TriggerPriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TriggerPriority
impl PartialEq for TriggerPriority
Source§impl PartialOrd for TriggerPriority
impl PartialOrd for TriggerPriority
impl Copy for TriggerPriority
impl Eq for TriggerPriority
impl StructuralPartialEq for TriggerPriority
Auto Trait Implementations§
impl Freeze for TriggerPriority
impl RefUnwindSafe for TriggerPriority
impl Send for TriggerPriority
impl Sync for TriggerPriority
impl Unpin for TriggerPriority
impl UnwindSafe for TriggerPriority
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more