Struct discord_sdk::registration::Application
source · pub struct Application {
pub id: AppId,
pub name: Option<String>,
pub command: LaunchCommand,
}
Fields§
§id: AppId
The application’s unique Discord identifier
name: Option<String>
The application name, defaults to the id if not specified
command: LaunchCommand
The command to launch the application itself.
Trait Implementations§
source§impl From<Application> for DiscordApp
impl From<Application> for DiscordApp
source§fn from(app: Application) -> Self
fn from(app: Application) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
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