pub struct RateLimitStatusDetails {
pub allowed: bool,
pub limit_reached: bool,
pub primary_window: Option<Option<Box<RateLimitWindowSnapshot>>>,
pub secondary_window: Option<Option<Box<RateLimitWindowSnapshot>>>,
}Fields§
§allowed: bool§limit_reached: bool§primary_window: Option<Option<Box<RateLimitWindowSnapshot>>>§secondary_window: Option<Option<Box<RateLimitWindowSnapshot>>>Implementations§
Source§impl RateLimitStatusDetails
impl RateLimitStatusDetails
pub fn new(allowed: bool, limit_reached: bool) -> RateLimitStatusDetails
Trait Implementations§
Source§impl Clone for RateLimitStatusDetails
impl Clone for RateLimitStatusDetails
Source§fn clone(&self) -> RateLimitStatusDetails
fn clone(&self) -> RateLimitStatusDetails
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 RateLimitStatusDetails
impl Debug for RateLimitStatusDetails
Source§impl Default for RateLimitStatusDetails
impl Default for RateLimitStatusDetails
Source§fn default() -> RateLimitStatusDetails
fn default() -> RateLimitStatusDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateLimitStatusDetails
impl<'de> Deserialize<'de> for RateLimitStatusDetails
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
Source§impl PartialEq for RateLimitStatusDetails
impl PartialEq for RateLimitStatusDetails
Source§impl Serialize for RateLimitStatusDetails
impl Serialize for RateLimitStatusDetails
impl StructuralPartialEq for RateLimitStatusDetails
Auto Trait Implementations§
impl Freeze for RateLimitStatusDetails
impl RefUnwindSafe for RateLimitStatusDetails
impl Send for RateLimitStatusDetails
impl Sync for RateLimitStatusDetails
impl Unpin for RateLimitStatusDetails
impl UnsafeUnpin for RateLimitStatusDetails
impl UnwindSafe for RateLimitStatusDetails
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