pub enum RoleKind {
Server,
Curve,
Signer,
}Expand description
The nats.type claim of a minimal role JWT minted via RoleJwt. These are
the roles the broker mints through the generic role path; account, user, and
operator have their own dedicated builders.
Variants§
Server
A NATS server JWT (type=server).
Curve
A NATS curve / x25519 xkey JWT (type=curve).
Signer
An account- or operator-signing-key JWT (type=signer).
Implementations§
Trait Implementations§
impl Copy for RoleKind
impl Eq for RoleKind
impl StructuralPartialEq for RoleKind
Auto Trait Implementations§
impl Freeze for RoleKind
impl RefUnwindSafe for RoleKind
impl Send for RoleKind
impl Sync for RoleKind
impl Unpin for RoleKind
impl UnsafeUnpin for RoleKind
impl UnwindSafe for RoleKind
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