pub struct VerifyConfig {
pub require_nonce: bool,
}Expand description
v0.7.0 H5 (round-2) — [verify] config block. Operator-facing
knobs for POST /api/v1/links/verify. Today exposes one knob:
require_nonce (default false).
Wire format:
[verify]
require_nonce = true # strict mode — every verify request
# must carry verification_nonceWhen require_nonce = false (the default), the handler logs a
deprecation WARN when a request omits verification_nonce but
still allows it through. When true, missing nonces are rejected
with 409 Conflict and the operator’s audit trail receives every
attempted reuse.
Fields§
§require_nonce: boolWhen true, POST /api/v1/links/verify requires every
request body to include a verification_nonce field. Missing
or empty nonces produce a 400 Bad Request. Already-seen
(link_id, signature, nonce) tuples produce a 409 Conflict
with {"error":"verification replay detected"}. Default false
preserves the v0.6.x verify-anytime semantics; operators
opting into the H5 replay-protection guarantee set this to
true after their clients have been updated to emit nonces.
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerifyConfig
impl Debug for VerifyConfig
Source§impl Default for VerifyConfig
impl Default for VerifyConfig
Source§fn default() -> VerifyConfig
fn default() -> VerifyConfig
Source§impl<'de> Deserialize<'de> for VerifyConfig
impl<'de> Deserialize<'de> for VerifyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for VerifyConfig
impl RefUnwindSafe for VerifyConfig
impl Send for VerifyConfig
impl Sync for VerifyConfig
impl Unpin for VerifyConfig
impl UnsafeUnpin for VerifyConfig
impl UnwindSafe for VerifyConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more