pub struct OperatorLimits {
pub nats: NatsLimits,
pub account: AccountLimits,
pub jetstream: JetStreamLimits,
pub tiered_limits: BTreeMap<String, JetStreamLimits>,
}Expand description
The full operator-limits block on an account JWT: the nats, account, and
jetstream limit groups (flattened into one JSON object) plus per-tier
JetStream limits.
Fields§
§nats: NatsLimitsPer-connection NATS limits.
account: AccountLimitsAccount-wide limits.
jetstream: JetStreamLimitsDefault-tier JetStream limits.
tiered_limits: BTreeMap<String, JetStreamLimits>JetStream limits per named tier (R1, R3, …).
Implementations§
Source§impl OperatorLimits
impl OperatorLimits
Sourcepub fn unlimited() -> Self
pub fn unlimited() -> Self
Standard unlimited operator limits for an account, matching what
nsc writes for a default account: every per-connection and account-wide
limit is -1 (unlimited) and wildcard exports are allowed. JetStream
limits stay 0 (disabled); enabling JetStream is a separate, explicit
grant.
A minted account JWT must carry a limits block: nats-server reads a
zero connection/subscription limit as deny-all (only -1 is
unlimited), so an account with no limits rejects every connection.
Trait Implementations§
Source§impl Clone for OperatorLimits
impl Clone for OperatorLimits
Source§fn clone(&self) -> OperatorLimits
fn clone(&self) -> OperatorLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more