pub enum Channel {
Stable,
Beta,
Nightly,
}
Expand description
Specifies the Rust release channel to use.
Variants§
Stable
Stable channel – tested and officially released features.
Beta
Beta channel – pre-release testing for the next stable release.
Nightly
Nightly channel – bleeding-edge features and experimental tools.
Trait Implementations§
Source§impl ChoiceParameter for Channel
impl ChoiceParameter for Channel
Source§fn list() -> Vec<CommandParameterChoice>
fn list() -> Vec<CommandParameterChoice>
Returns all possible choices for this parameter, in the order they will appear in Discord.
Source§fn from_index(index: usize) -> Option<Self>
fn from_index(index: usize) -> Option<Self>
Returns an instance of
Self
corresponding to the given index into Self::list()
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Channel
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<'a, T> PopArgument<'a> for Twhere
T: ChoiceParameter,
impl<'a, T> PopArgument<'a> for Twhere
T: ChoiceParameter,
Source§fn pop_from<'life0, 'life1, 'async_trait>(
args: &'a str,
attachment_index: usize,
ctx: &'life0 Context,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(&'a str, usize, T), (Box<dyn Error + Send + Sync>, Option<String>)>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn pop_from<'life0, 'life1, 'async_trait>(
args: &'a str,
attachment_index: usize,
ctx: &'life0 Context,
msg: &'life1 Message,
) -> Pin<Box<dyn Future<Output = Result<(&'a str, usize, T), (Box<dyn Error + Send + Sync>, Option<String>)>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Source§impl<T> SlashArgument for Twhere
T: ChoiceParameter,
impl<T> SlashArgument for Twhere
T: ChoiceParameter,
Source§fn extract<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 Context,
_: &'life1 CommandInteraction,
value: &'life2 ResolvedValue<'life3>,
) -> Pin<Box<dyn Future<Output = Result<T, SlashArgError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
T: 'async_trait,
fn extract<'life0, 'life1, 'life2, 'life3, 'async_trait>(
_: &'life0 Context,
_: &'life1 CommandInteraction,
value: &'life2 ResolvedValue<'life3>,
) -> Pin<Box<dyn Future<Output = Result<T, SlashArgError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
T: 'async_trait,
Extract a Rust value of type T from the slash command argument, given via a
serenity::json::Value
. Read moreSource§fn create(builder: CreateCommandOption) -> CreateCommandOption
fn create(builder: CreateCommandOption) -> CreateCommandOption
Create a slash command parameter equivalent to type T. Read more