pub struct SessionStartLimit {
pub total: i32,
pub remaining: i32,
pub reset_after: i32,
}Expand description
Useful information about a bot’s session start limit.
Fields§
§total: i32The total number of session starts the current user is allowed.
remaining: i32The remaining number of session starts the current user is allowed.
reset_after: i32The time until the limit resets.
Trait Implementations§
Source§impl Debug for SessionStartLimit
impl Debug for SessionStartLimit
Source§impl<'de> Deserialize<'de> for SessionStartLimit
impl<'de> Deserialize<'de> for SessionStartLimit
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 SessionStartLimit
impl RefUnwindSafe for SessionStartLimit
impl Send for SessionStartLimit
impl Sync for SessionStartLimit
impl Unpin for SessionStartLimit
impl UnwindSafe for SessionStartLimit
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