#[non_exhaustive]
pub enum CommandReplyType {
ShowInConsole,
ShowInPopup,
Unknown(u8),
}
Expand description
Specifies whether the debug reply to a command should open a popup or be displayed in the chat window.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ShowInConsole
ShowInPopup
Technically this should be any value other than 0
,
the From
integer implementation for this enum deals
with that.
Unknown(u8)
Trait Implementations
sourceimpl Clone for CommandReplyType
impl Clone for CommandReplyType
sourcefn clone(&self) -> CommandReplyType
fn clone(&self) -> CommandReplyType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommandReplyType
impl Debug for CommandReplyType
sourceimpl Default for CommandReplyType
impl Default for CommandReplyType
sourceimpl<'de> DeserializeV5<'de> for CommandReplyType
impl<'de> DeserializeV5<'de> for CommandReplyType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<CommandReplyType> for u8
impl From<CommandReplyType> for u8
sourcefn from(v: CommandReplyType) -> Self
fn from(v: CommandReplyType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for CommandReplyType
impl From<u8> for CommandReplyType
sourceimpl Hash for CommandReplyType
impl Hash for CommandReplyType
sourceimpl PartialEq<CommandReplyType> for CommandReplyType
impl PartialEq<CommandReplyType> for CommandReplyType
sourcefn eq(&self, other: &CommandReplyType) -> bool
fn eq(&self, other: &CommandReplyType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CommandReplyType) -> bool
fn ne(&self, other: &CommandReplyType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for CommandReplyType
impl SerializeV5 for CommandReplyType
impl Copy for CommandReplyType
impl Eq for CommandReplyType
impl StructuralEq for CommandReplyType
impl StructuralPartialEq for CommandReplyType
Auto Trait Implementations
impl RefUnwindSafe for CommandReplyType
impl Send for CommandReplyType
impl Sync for CommandReplyType
impl Unpin for CommandReplyType
impl UnwindSafe for CommandReplyType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more