#[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.
The original client will consider any command reply that isn’t
ShowInConsole to be ShowInPopup however other clients may handle
things differently.
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
Add a new message within the chat window.
ShowInPopup
Show a popup with the message.
Note that the original client will fail to show any message that is not valid JSON if shown in a popup.
Unknown(u8)
Trait Implementations§
Source§impl Clone for CommandReplyType
impl Clone for CommandReplyType
Source§fn clone(&self) -> CommandReplyType
fn clone(&self) -> CommandReplyType
Returns a duplicate 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 CommandReplyType
impl Debug for CommandReplyType
Source§impl Default for CommandReplyType
impl Default for CommandReplyType
Source§impl<'de> DeserializeV5<'de> for CommandReplyType
impl<'de> DeserializeV5<'de> for CommandReplyType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<CommandReplyType> for u8
impl From<CommandReplyType> for u8
Source§fn from(v: CommandReplyType) -> Self
fn from(v: CommandReplyType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for CommandReplyType
impl From<u8> for CommandReplyType
Source§impl Hash for CommandReplyType
impl Hash for CommandReplyType
Source§impl PartialEq for CommandReplyType
impl PartialEq for CommandReplyType
Source§impl SerializeV5 for CommandReplyType
impl SerializeV5 for CommandReplyType
impl Copy for CommandReplyType
impl Eq for CommandReplyType
impl StructuralPartialEq for CommandReplyType
Auto Trait Implementations§
impl Freeze for CommandReplyType
impl RefUnwindSafe for CommandReplyType
impl Send for CommandReplyType
impl Sync for CommandReplyType
impl Unpin for CommandReplyType
impl UnwindSafe for CommandReplyType
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