#[non_exhaustive]pub struct GetApplicationCommands {
pub with_localizations: Option<bool>,
}Expand description
The query of Get Global Application Commands and Get Guild Application Commands.
discord.js counterpart: RESTGetAPIApplicationCommandsQuery (discord-api-types).
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.with_localizations: Option<bool>Whether to return the full localization dictionaries instead of the name_localized
and description_localized fields (Discord’s default: no).
Trait Implementations§
Source§impl Clone for GetApplicationCommands
impl Clone for GetApplicationCommands
impl Copy for GetApplicationCommands
Source§impl Debug for GetApplicationCommands
impl Debug for GetApplicationCommands
Source§impl Default for GetApplicationCommands
impl Default for GetApplicationCommands
impl Eq for GetApplicationCommands
Source§impl Hash for GetApplicationCommands
impl Hash for GetApplicationCommands
Source§impl PartialEq for GetApplicationCommands
impl PartialEq for GetApplicationCommands
impl StructuralPartialEq for GetApplicationCommands
Auto Trait Implementations§
impl Freeze for GetApplicationCommands
impl RefUnwindSafe for GetApplicationCommands
impl Send for GetApplicationCommands
impl Sync for GetApplicationCommands
impl Unpin for GetApplicationCommands
impl UnsafeUnpin for GetApplicationCommands
impl UnwindSafe for GetApplicationCommands
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