pub struct CaptchaBinding {
pub hostname_bound: bool,
pub action_bound: bool,
pub fail_open: bool,
}Expand description
What a captcha adapter is actually bound to (issue #133). The harness
reads this at build time to decide whether a production venture’s
HumanForm routes can really be verified — providing the port is
not the same as configuring it.
Fields§
§hostname_bound: boolResponse hostnames are checked against the venture’s own host. Without this, a token minted on any site using the same widget verifies here (Turnstile’s hostname check is the site’s job).
action_bound: boolThe expected Turnstile action is configured and checked, so a
widget embedded for some other flow on the same site does not
authorize this one.
fail_open: boolTransport failures verify as OK. A staging-only posture: an adapter left fail-open cannot support a production form write.
Trait Implementations§
Source§impl Clone for CaptchaBinding
impl Clone for CaptchaBinding
impl Copy for CaptchaBinding
Source§impl Debug for CaptchaBinding
impl Debug for CaptchaBinding
impl Eq for CaptchaBinding
Source§impl PartialEq for CaptchaBinding
impl PartialEq for CaptchaBinding
impl StructuralPartialEq for CaptchaBinding
Auto Trait Implementations§
impl Freeze for CaptchaBinding
impl RefUnwindSafe for CaptchaBinding
impl Send for CaptchaBinding
impl Sync for CaptchaBinding
impl Unpin for CaptchaBinding
impl UnsafeUnpin for CaptchaBinding
impl UnwindSafe for CaptchaBinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.