pub struct Limits {
pub max_payload_bytes: u64,
pub max_embedded_bytes: u64,
pub idempotency_key_ttl_seconds: Option<u32>,
}Expand description
Resource limits declared by the registry.
The capabilities document is OPEN at the top level, but limits is a
CLOSED sub-object (additionalProperties: false): new limit keys are
added by a spec version bump, not by registries inventing fields, so
deny_unknown_fields rejects an unknown key (RFC-ACDP-0007 §3.3.1,
conformance fixture schema-010).
Fields§
§max_payload_bytes: u64Maximum total publish request size in bytes.
max_embedded_bytes: u64Maximum size of any single embedded data reference in bytes (≤ 65536).
idempotency_key_ttl_seconds: Option<u32>How long idempotency-key mappings are retained, in seconds.
MUST be present when supports_idempotency_key is true.
Optional and absent-or-integer in the schema — not nullable.
de_present rejects an explicit "idempotency_key_ttl_seconds": null.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Limits
impl<'de> Deserialize<'de> for Limits
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
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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