pub struct RateLimitSnapshot {
pub credits: Option<CreditsSnapshot>,
pub limit_id: Option<String>,
pub limit_name: Option<String>,
pub plan_type: Option<PlanType>,
pub primary: Option<RateLimitWindow>,
pub rate_limit_reached_type: Option<RateLimitReachedType>,
pub secondary: Option<RateLimitWindow>,
}Fields§
§credits: Option<CreditsSnapshot>§limit_id: Option<String>§limit_name: Option<String>§plan_type: Option<PlanType>§primary: Option<RateLimitWindow>§rate_limit_reached_type: Option<RateLimitReachedType>§secondary: Option<RateLimitWindow>Trait Implementations§
Source§impl Clone for RateLimitSnapshot
impl Clone for RateLimitSnapshot
Source§fn clone(&self) -> RateLimitSnapshot
fn clone(&self) -> RateLimitSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RateLimitSnapshot
impl Debug for RateLimitSnapshot
Source§impl<'de> Deserialize<'de> for RateLimitSnapshot
impl<'de> Deserialize<'de> for RateLimitSnapshot
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 RateLimitSnapshot
impl RefUnwindSafe for RateLimitSnapshot
impl Send for RateLimitSnapshot
impl Sync for RateLimitSnapshot
impl Unpin for RateLimitSnapshot
impl UnsafeUnpin for RateLimitSnapshot
impl UnwindSafe for RateLimitSnapshot
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