pub struct UpdatePackRequestOverallRateLimit {
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 UpdatePackRequestOverallRateLimit
impl Clone for UpdatePackRequestOverallRateLimit
Source§fn clone(&self) -> UpdatePackRequestOverallRateLimit
fn clone(&self) -> UpdatePackRequestOverallRateLimit
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<'de> Deserialize<'de> for UpdatePackRequestOverallRateLimit
impl<'de> Deserialize<'de> for UpdatePackRequestOverallRateLimit
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<&UpdatePackRequestOverallRateLimit> for UpdatePackRequestOverallRateLimit
impl From<&UpdatePackRequestOverallRateLimit> for UpdatePackRequestOverallRateLimit
Source§fn from(value: &UpdatePackRequestOverallRateLimit) -> Self
fn from(value: &UpdatePackRequestOverallRateLimit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdatePackRequestOverallRateLimit
impl RefUnwindSafe for UpdatePackRequestOverallRateLimit
impl Send for UpdatePackRequestOverallRateLimit
impl Sync for UpdatePackRequestOverallRateLimit
impl Unpin for UpdatePackRequestOverallRateLimit
impl UnwindSafe for UpdatePackRequestOverallRateLimit
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