#[non_exhaustive]pub struct CurrentApplicationInfo {Show 27 fields
pub id: ApplicationId,
pub name: String,
pub icon: Option<ImageHash>,
pub description: String,
pub rpc_origins: 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 team: Option<Team>,
pub guild_id: Option<GuildId>,
pub primary_sku_id: Option<SkuId>,
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>,
pub integration_types_config: HashMap<InstallationContext, InstallationContextConfig>,
pub approximate_guild_count: Option<u32>,
pub approximate_user_install_count: Option<u32>,
pub guild: Option<PartialGuild>,
pub redirect_uris: Option<Vec<String>>,
pub interactions_endpoint_url: Option<String>,
}
Expand description
Information about the current application and its owner.
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.id: ApplicationId
§name: String
§icon: Option<ImageHash>
§description: String
§rpc_origins: Vec<String>
§bot_public: bool
§bot_require_code_grant: bool
§terms_of_service_url: Option<String>
§privacy_policy_url: Option<String>
§owner: Option<User>
§verify_key: String
§team: Option<Team>
§guild_id: Option<GuildId>
§primary_sku_id: Option<SkuId>
§slug: Option<String>
§cover_image: Option<String>
§flags: Option<ApplicationFlags>
§install_params: Option<InstallParams>
§custom_install_url: Option<String>
§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.
integration_types_config: HashMap<InstallationContext, InstallationContextConfig>
§approximate_guild_count: Option<u32>
§approximate_user_install_count: Option<u32>
§guild: Option<PartialGuild>
§redirect_uris: Option<Vec<String>>
§interactions_endpoint_url: Option<String>
Implementations§
Source§impl CurrentApplicationInfo
impl CurrentApplicationInfo
Sourcepub fn store_url(&self) -> String
pub fn store_url(&self) -> String
Returns the store url for the application. If included in a message, will render as a rich embed. See the Discord docs for details.
Trait Implementations§
Source§impl Clone for CurrentApplicationInfo
impl Clone for CurrentApplicationInfo
Source§fn clone(&self) -> CurrentApplicationInfo
fn clone(&self) -> CurrentApplicationInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CurrentApplicationInfo
impl Debug for CurrentApplicationInfo
Source§impl<'de> Deserialize<'de> for CurrentApplicationInfo
impl<'de> Deserialize<'de> for CurrentApplicationInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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§
impl Freeze for CurrentApplicationInfo
impl RefUnwindSafe for CurrentApplicationInfo
impl Send for CurrentApplicationInfo
impl Sync for CurrentApplicationInfo
impl Unpin for CurrentApplicationInfo
impl UnwindSafe for CurrentApplicationInfo
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