pub struct ChallengeOptions<'a> {
pub algorithm: Option<AltchaAlgorithm>,
pub max_number: Option<u64>,
pub salt_length: Option<usize>,
pub hmac_key: &'a str,
pub salt: Option<String>,
pub number: Option<u64>,
pub expires: Option<DateTime<Utc>>,
pub params: Option<HashMap<String, String>>,
}Expand description
ChallengeOptions defines the options for creating a challenge
Fields§
§algorithm: Option<AltchaAlgorithm>§max_number: Option<u64>§salt_length: Option<usize>§hmac_key: &'a str§salt: Option<String>§number: Option<u64>§expires: Option<DateTime<Utc>>§params: Option<HashMap<String, String>>Trait Implementations§
Source§impl<'a> Clone for ChallengeOptions<'a>
impl<'a> Clone for ChallengeOptions<'a>
Source§fn clone(&self) -> ChallengeOptions<'a>
fn clone(&self) -> ChallengeOptions<'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 ChallengeOptions<'a>
impl<'a> Debug for ChallengeOptions<'a>
Source§impl<'a> Default for ChallengeOptions<'a>
impl<'a> Default for ChallengeOptions<'a>
Source§fn default() -> ChallengeOptions<'a>
fn default() -> ChallengeOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ChallengeOptions<'a>
impl<'a> RefUnwindSafe for ChallengeOptions<'a>
impl<'a> Send for ChallengeOptions<'a>
impl<'a> Sync for ChallengeOptions<'a>
impl<'a> Unpin for ChallengeOptions<'a>
impl<'a> UnwindSafe for ChallengeOptions<'a>
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