pub struct PackRateLimit {
pub interval_seconds: NonZeroU64,
pub operations_per_interval: u64,
}
Expand description
Rate limit in Pack settings.
JSON schema
{
"description": "Rate limit in Pack settings.",
"type": "object",
"required": [
"intervalSeconds",
"operationsPerInterval"
],
"properties": {
"intervalSeconds": {
"description": "The rate limit interval in seconds.",
"examples": [
3600
],
"type": "integer",
"maximum": 86400.0,
"minimum": 1.0
},
"operationsPerInterval": {
"description": "The maximum number of Pack operations that can be
performed in a given interval.",
"examples": [
20
],
"type": "integer",
"minimum": 0.0
}
},
"additionalProperties": false,
"x-schema-name": "PackRateLimit"
}
Fields§
§interval_seconds: NonZeroU64
The rate limit interval in seconds.
operations_per_interval: u64
The maximum number of Pack operations that can be performed in a given interval.
Trait Implementations§
Source§impl Clone for PackRateLimit
impl Clone for PackRateLimit
Source§fn clone(&self) -> PackRateLimit
fn clone(&self) -> PackRateLimit
Returns a duplicate of the value. Read more
1.0.0 · 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 PackRateLimit
impl Debug for PackRateLimit
Source§impl<'de> Deserialize<'de> for PackRateLimit
impl<'de> Deserialize<'de> for PackRateLimit
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 From<&PackRateLimit> for PackRateLimit
impl From<&PackRateLimit> for PackRateLimit
Source§fn from(value: &PackRateLimit) -> Self
fn from(value: &PackRateLimit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackRateLimit
impl RefUnwindSafe for PackRateLimit
impl Send for PackRateLimit
impl Sync for PackRateLimit
impl Unpin for PackRateLimit
impl UnwindSafe for PackRateLimit
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