pub struct Ready {
pub application: PartialApplication,
pub guilds: Vec<UnavailableGuild>,
pub resume_gateway_url: String,
pub session_id: String,
pub shard: Option<ShardId>,
pub user: CurrentUser,
pub version: u64,
}Fields§
§application: PartialApplication§guilds: Vec<UnavailableGuild>§resume_gateway_url: String§session_id: String§shard: Option<ShardId>§user: CurrentUser§version: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ready
impl<'de> Deserialize<'de> for Ready
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Ready, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Ready, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<State, F, Fut, Res> EventHandlerHandler<State, Ready> for Fwhere
State: StateBound,
F: Fn(EventContext<State, Ready>) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Res> + Send + 'static,
Res: IntoEventResult,
impl<State, F, Fut, Res> EventHandlerHandler<State, Ready> for Fwhere
State: StateBound,
F: Fn(EventContext<State, Ready>) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Res> + Send + 'static,
Res: IntoEventResult,
fn handle(&self, ctx: EventContext<State, Ready>) -> DynFuture<'_, EventResult>
Source§impl Serialize for Ready
impl Serialize for Ready
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Ready
impl StructuralPartialEq for Ready
Auto Trait Implementations§
impl Freeze for Ready
impl RefUnwindSafe for Ready
impl Send for Ready
impl Sync for Ready
impl Unpin for Ready
impl UnsafeUnpin for Ready
impl UnwindSafe for Ready
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.