pub trait Captcha:
Serialize
+ Send
+ Sync
+ Debug {
type Solution: for<'de> Deserialize<'de> + Debug + Send + Sync + PartialEq + Eq;
type Builder: Default;
// Required method
fn get_timeout(&self) -> Duration;
// Provided method
fn builder() -> Self::Builder { ... }
}Required Associated Types§
type Solution: for<'de> Deserialize<'de> + Debug + Send + Sync + PartialEq + Eq
type Builder: Default
Required Methods§
fn get_timeout(&self) -> Duration
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.