pub struct DatVerificationConfig {
pub public_key: [u8; 32],
pub required_scope: String,
}Expand description
Configuration for the DAT verification middleware.
Fields§
§public_key: [u8; 32]Ed25519 public key bytes for signature verification.
required_scope: StringRequired scope to check. Empty string = skip scope check.
Trait Implementations§
Source§impl Clone for DatVerificationConfig
impl Clone for DatVerificationConfig
Source§fn clone(&self) -> DatVerificationConfig
fn clone(&self) -> DatVerificationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DatVerificationConfig
impl RefUnwindSafe for DatVerificationConfig
impl Send for DatVerificationConfig
impl Sync for DatVerificationConfig
impl Unpin for DatVerificationConfig
impl UnsafeUnpin for DatVerificationConfig
impl UnwindSafe for DatVerificationConfig
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