pub enum CandidateSigner<'a> {
Nkey(&'a str),
RawPublicKey(&'a [u8; 32]),
}Expand description
A caller-supplied signer candidate for NATS JWT validation.
Variants§
Nkey(&'a str)
Public NKey string (A…, O…, U…, or another supported public role).
RawPublicKey(&'a [u8; 32])
Raw 32-byte Ed25519 public key.
Trait Implementations§
Source§impl<'a> Clone for CandidateSigner<'a>
impl<'a> Clone for CandidateSigner<'a>
Source§fn clone(&self) -> CandidateSigner<'a>
fn clone(&self) -> CandidateSigner<'a>
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 moreimpl<'a> Copy for CandidateSigner<'a>
Auto Trait Implementations§
impl<'a> Freeze for CandidateSigner<'a>
impl<'a> RefUnwindSafe for CandidateSigner<'a>
impl<'a> Send for CandidateSigner<'a>
impl<'a> Sync for CandidateSigner<'a>
impl<'a> Unpin for CandidateSigner<'a>
impl<'a> UnsafeUnpin for CandidateSigner<'a>
impl<'a> UnwindSafe for CandidateSigner<'a>
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