#[non_exhaustive]pub struct UnknownOption {
pub kind: CommandOptionType,
pub name: CompactString,
pub name_localizations: BTreeMap<Locale, CompactString>,
pub description: CompactString,
pub description_localizations: BTreeMap<Locale, CompactString>,
pub name_localized: Option<CompactString>,
pub description_localized: Option<CompactString>,
pub required: bool,
}Expand description
An option of a type this version of the library does not know about; the fields every option has are kept.
discord.js counterpart: none (an option type unknown to this version, kept as received).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: CommandOptionTypeThe raw option type.
name: CompactStringThe name.
name_localizations: BTreeMap<Locale, CompactString>Translations of the name.
description: CompactStringThe description.
description_localizations: BTreeMap<Locale, CompactString>Translations of the description.
name_localized: Option<CompactString>The name in the requester’s locale, from endpoints that do not return the full translations.
description_localized: Option<CompactString>The description in the requester’s locale (see name_localized).
required: boolWhether the option must be filled.
Trait Implementations§
Source§impl Clone for UnknownOption
impl Clone for UnknownOption
Source§impl Debug for UnknownOption
impl Debug for UnknownOption
impl Eq for UnknownOption
Source§impl PartialEq for UnknownOption
impl PartialEq for UnknownOption
Source§impl Serialize for UnknownOption
impl Serialize for UnknownOption
impl StructuralPartialEq for UnknownOption
Auto Trait Implementations§
impl Forget for UnknownOption
impl Freeze for UnknownOption
impl Move for UnknownOption
impl RefUnwindSafe for UnknownOption
impl Send for UnknownOption
impl Sync for UnknownOption
impl Unpin for UnknownOption
impl UnsafeUnpin for UnknownOption
impl UnwindSafe for UnknownOption
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