pub struct OperatorClaims {
pub signing_keys: Vec<String>,
pub account_server_url: String,
pub operator_service_urls: Vec<String>,
pub system_account: String,
pub assert_server_version: String,
pub strict_signing_key_usage: bool,
}Expand description
Operator-specific fields inside a NATS operator JWT (the nats claim block
for type=operator). All fields are optional; empty ones are omitted.
Fields§
§signing_keys: Vec<String>Operator signing keys (O…) authorized to sign accounts. If left empty,
OperatorJwt::signing_keys is used.
account_server_url: StringAccount-resolver / account-server URL. If empty,
OperatorJwt::account_server_url is used.
operator_service_urls: Vec<String>Advertised operator service (NATS) URLs.
system_account: StringSystem account public NKey (A…). If empty,
OperatorJwt::system_account is used.
assert_server_version: StringMinimum NATS server version this operator asserts (empty = none).
strict_signing_key_usage: boolWhether accounts must be signed by a dedicated signing key (not the operator identity key).
Trait Implementations§
Source§impl Clone for OperatorClaims
impl Clone for OperatorClaims
Source§fn clone(&self) -> OperatorClaims
fn clone(&self) -> OperatorClaims
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for OperatorClaims
impl Default for OperatorClaims
Source§fn default() -> OperatorClaims
fn default() -> OperatorClaims
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OperatorClaims
impl RefUnwindSafe for OperatorClaims
impl Send for OperatorClaims
impl Sync for OperatorClaims
impl Unpin for OperatorClaims
impl UnsafeUnpin for OperatorClaims
impl UnwindSafe for OperatorClaims
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