pub enum DiscordApp {
Register(Application),
PlainId(AppId),
}
Expand description
The details on the Application you’ve created in Discord.
Variants§
Register(Application)
Registers this application with Discord so that Discord can launch it to eg. join another user’s game
PlainId(AppId)
The unique application id. Note that Discord will not be able launch this application when this variant is used, unless you’ve registered it in some other way
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 Freeze for DiscordApp
impl RefUnwindSafe for DiscordApp
impl Send for DiscordApp
impl Sync for DiscordApp
impl Unpin for DiscordApp
impl UnwindSafe for DiscordApp
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