Struct Application

Source
pub struct Application {
Show 20 fields pub id: Snowflake, pub name: String, pub icon: Option<String>, pub description: String, pub rpc_origins: Option<Vec<String>>, pub bot_public: bool, pub bot_require_code_grant: bool, pub terms_of_service_url: Option<String>, pub privacy_policy_url: Option<String>, pub owner: Option<User>, pub verify_key: String, pub guild_id: Option<Snowflake>, pub primary_sku_id: Option<Snowflake>, pub slug: Option<String>, pub cover_image: Option<String>, pub flags: Option<ApplicationFlags>, pub tags: Option<Vec<String>>, pub install_params: Option<InstallParams>, pub custom_install_url: Option<String>, pub role_connections_verification_url: Option<String>,
}
Expand description

Fields§

§id: Snowflake

the id of the app

§name: String

the name of the app

§icon: Option<String>

the icon hash of the app

§description: String

the description of the app

§rpc_origins: Option<Vec<String>>

an array of rpc origin urls, if rpc is enabled

§bot_public: bool

when false only app owner can join the app’s bot to guilds

§bot_require_code_grant: bool

when true the app’s bot will only join upon completion of the full oauth2 code grant flow

§terms_of_service_url: Option<String>

the url of the app’s terms of service

§privacy_policy_url: Option<String>

the url of the app’s privacy policy

§owner: Option<User>

partial user object containing info on the owner of the application

§verify_key: String

the hex encoded key for verification in interactions and the GameSDK’s GetTicket

§guild_id: Option<Snowflake>

if this application is a game sold on Discord, this field will be the guild to which it has been linked

§primary_sku_id: Option<Snowflake>

if this application is a game sold on Discord, this field will be the id of the “Game SKU” that is created, if exists

§slug: Option<String>

if this application is a game sold on Discord, this field will be the URL slug that links to the store page

§cover_image: Option<String>

the application’s default rich presence invite cover image hash

§flags: Option<ApplicationFlags>

the application’s public flags

§tags: Option<Vec<String>>

up to 5 tags describing the content and functionality of the application

§install_params: Option<InstallParams>

settings for the application’s default in-app authorization link, if enabled

§custom_install_url: Option<String>

the application’s default custom authorization link, if enabled

§role_connections_verification_url: Option<String>

the application’s role connection verification entry point, which when configured will render the app as a verification method in the guild role verification configuration

Trait Implementations§

Source§

impl Debug for Application

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Application

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,