pub struct GatewayBot {
pub url: String,
pub shards: usize,
pub session_start_limit: SessionStartLimit,
}Expand description
Returns useful information about the application from the gateway.
Fields§
§url: StringThe websocket URL that can be used to begin connecting to this gateway.
shards: usizeThe recommended number of shards to spawn when connecting.
session_start_limit: SessionStartLimitInformation regarding the current session start limit.
Trait Implementations§
Source§impl Debug for GatewayBot
impl Debug for GatewayBot
Source§impl<'de> Deserialize<'de> for GatewayBot
impl<'de> Deserialize<'de> for GatewayBot
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 GatewayBot
impl RefUnwindSafe for GatewayBot
impl Send for GatewayBot
impl Sync for GatewayBot
impl Unpin for GatewayBot
impl UnwindSafe for GatewayBot
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