#[non_exhaustive]pub struct PartialApplication {
pub id: ApplicationId,
pub name: Option<CompactString>,
pub icon: Option<ImageHash>,
pub description: Option<CompactString>,
pub cover_image: Option<ImageHash>,
pub flags: Option<ApplicationFlags>,
}Expand description
A partial Application, as attached to invites (target_application) (D-051).
discord.js counterpart: a partial APIApplication (discord-api-types), as IntegrationApplication.
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: ApplicationIdThe application’s ID.
name: Option<CompactString>The application’s name.
icon: Option<ImageHash>The icon hash.
description: Option<CompactString>The application’s description.
cover_image: Option<ImageHash>The cover image hash.
flags: Option<ApplicationFlags>The application’s public flags.
Trait Implementations§
Source§impl Clone for PartialApplication
impl Clone for PartialApplication
Source§impl Debug for PartialApplication
impl Debug for PartialApplication
Source§impl<'de> Deserialize<'de> for PartialApplication
impl<'de> Deserialize<'de> for PartialApplication
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
impl Eq for PartialApplication
Source§impl PartialEq for PartialApplication
impl PartialEq for PartialApplication
Source§impl Serialize for PartialApplication
impl Serialize for PartialApplication
impl StructuralPartialEq for PartialApplication
Auto Trait Implementations§
impl Freeze for PartialApplication
impl RefUnwindSafe for PartialApplication
impl Send for PartialApplication
impl Sync for PartialApplication
impl Unpin for PartialApplication
impl UnsafeUnpin for PartialApplication
impl UnwindSafe for PartialApplication
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