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