pub struct RateLimitSample {
pub timestamp: DateTime<Utc>,
pub session_id: String,
pub account_id: Option<String>,
pub plan_type: Option<String>,
pub limit_id: Option<String>,
pub window: String,
pub window_minutes: i64,
pub used_percent: f64,
pub remaining_percent: f64,
pub resets_at: DateTime<Utc>,
/* private fields */
}Fields§
§timestamp: DateTime<Utc>§session_id: String§account_id: Option<String>§plan_type: Option<String>§limit_id: Option<String>§window: String§window_minutes: i64§used_percent: f64§remaining_percent: f64§resets_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for RateLimitSample
impl Clone for RateLimitSample
Source§fn clone(&self) -> RateLimitSample
fn clone(&self) -> RateLimitSample
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 RateLimitSample
impl Debug for RateLimitSample
Source§impl PartialEq for RateLimitSample
impl PartialEq for RateLimitSample
Source§fn eq(&self, other: &RateLimitSample) -> bool
fn eq(&self, other: &RateLimitSample) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RateLimitSample
impl Serialize for RateLimitSample
impl StructuralPartialEq for RateLimitSample
Auto Trait Implementations§
impl Freeze for RateLimitSample
impl RefUnwindSafe for RateLimitSample
impl Send for RateLimitSample
impl Sync for RateLimitSample
impl Unpin for RateLimitSample
impl UnsafeUnpin for RateLimitSample
impl UnwindSafe for RateLimitSample
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