pub struct RateLimitScopeSchema {
pub second: Option<Box<RateLimitWindowSchema>>,
pub minute: Option<Box<RateLimitWindowSchema>>,
pub hour: Option<Box<RateLimitWindowSchema>>,
pub day: Option<Box<RateLimitWindowSchema>>,
}Fields§
§second: Option<Box<RateLimitWindowSchema>>§minute: Option<Box<RateLimitWindowSchema>>§hour: Option<Box<RateLimitWindowSchema>>§day: Option<Box<RateLimitWindowSchema>>Implementations§
Source§impl RateLimitScopeSchema
impl RateLimitScopeSchema
pub fn new() -> RateLimitScopeSchema
Trait Implementations§
Source§impl Clone for RateLimitScopeSchema
impl Clone for RateLimitScopeSchema
Source§fn clone(&self) -> RateLimitScopeSchema
fn clone(&self) -> RateLimitScopeSchema
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 RateLimitScopeSchema
impl Debug for RateLimitScopeSchema
Source§impl Default for RateLimitScopeSchema
impl Default for RateLimitScopeSchema
Source§fn default() -> RateLimitScopeSchema
fn default() -> RateLimitScopeSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateLimitScopeSchema
impl<'de> Deserialize<'de> for RateLimitScopeSchema
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 RateLimitScopeSchema
impl PartialEq for RateLimitScopeSchema
Source§fn eq(&self, other: &RateLimitScopeSchema) -> bool
fn eq(&self, other: &RateLimitScopeSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RateLimitScopeSchema
impl Serialize for RateLimitScopeSchema
impl StructuralPartialEq for RateLimitScopeSchema
Auto Trait Implementations§
impl Freeze for RateLimitScopeSchema
impl RefUnwindSafe for RateLimitScopeSchema
impl Send for RateLimitScopeSchema
impl Sync for RateLimitScopeSchema
impl Unpin for RateLimitScopeSchema
impl UnsafeUnpin for RateLimitScopeSchema
impl UnwindSafe for RateLimitScopeSchema
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