#[non_exhaustive]pub struct ReadyApplication {
pub id: ApplicationId,
pub flags: ApplicationFlags,
pub flags_new: Option<ApplicationFlags>,
}Expand description
The partial application included in Ready: its ID and flags.
discord.js counterpart: the application of GatewayReadyDispatchData (discord-api-types).
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.
flags: ApplicationFlagsThe application’s flags, e.g. which privileged intents it may use.
flags_new: Option<ApplicationFlags>The flags as a decimal string (for flags beyond 32 bits).
Trait Implementations§
Source§impl Clone for ReadyApplication
impl Clone for ReadyApplication
impl Copy for ReadyApplication
Source§impl Debug for ReadyApplication
impl Debug for ReadyApplication
Source§impl<'de> Deserialize<'de> for ReadyApplication
impl<'de> Deserialize<'de> for ReadyApplication
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 ReadyApplication
Source§impl Hash for ReadyApplication
impl Hash for ReadyApplication
Source§impl PartialEq for ReadyApplication
impl PartialEq for ReadyApplication
Source§impl Serialize for ReadyApplication
impl Serialize for ReadyApplication
impl StructuralPartialEq for ReadyApplication
Auto Trait Implementations§
impl Freeze for ReadyApplication
impl RefUnwindSafe for ReadyApplication
impl Send for ReadyApplication
impl Sync for ReadyApplication
impl Unpin for ReadyApplication
impl UnsafeUnpin for ReadyApplication
impl UnwindSafe for ReadyApplication
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