Struct db_core::CreateCaptcha
source · pub struct CreateCaptcha<'a> {
pub duration: i32,
pub description: &'a str,
pub key: &'a str,
}
Expand description
data required to create new captcha
Fields§
§duration: i32
cool down duration
description: &'a str
description of the captcha
key: &'a str
secret key of the captcha
Trait Implementations§
source§impl<'a> Clone for CreateCaptcha<'a>
impl<'a> Clone for CreateCaptcha<'a>
source§fn clone(&self) -> CreateCaptcha<'a>
fn clone(&self) -> CreateCaptcha<'a>
Returns a copy 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 moresource§impl<'a> Debug for CreateCaptcha<'a>
impl<'a> Debug for CreateCaptcha<'a>
source§impl<'a> Default for CreateCaptcha<'a>
impl<'a> Default for CreateCaptcha<'a>
source§fn default() -> CreateCaptcha<'a>
fn default() -> CreateCaptcha<'a>
Returns the “default value” for a type. Read more
source§impl<'de: 'a, 'a> Deserialize<'de> for CreateCaptcha<'a>
impl<'de: 'a, 'a> Deserialize<'de> for CreateCaptcha<'a>
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>
impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>
source§fn eq(&self, other: &CreateCaptcha<'a>) -> bool
fn eq(&self, other: &CreateCaptcha<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.