Struct libmcaptcha::cache::messages::CachedPoWConfig
source · pub struct CachedPoWConfig {
pub key: String,
pub difficulty_factor: u32,
pub duration: u64,
}
Fields§
§key: String
mCaptcha name
difficulty_factor: u32
§duration: u64
Trait Implementations§
source§impl Clone for CachedPoWConfig
impl Clone for CachedPoWConfig
source§fn clone(&self) -> CachedPoWConfig
fn clone(&self) -> CachedPoWConfig
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 Debug for CachedPoWConfig
impl Debug for CachedPoWConfig
source§impl Default for CachedPoWConfig
impl Default for CachedPoWConfig
source§fn default() -> CachedPoWConfig
fn default() -> CachedPoWConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CachedPoWConfig
impl<'de> Deserialize<'de> for CachedPoWConfig
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 From<CachedPoWConfig> for CacheResult
impl From<CachedPoWConfig> for CacheResult
source§fn from(c: CachedPoWConfig) -> Self
fn from(c: CachedPoWConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq<CachedPoWConfig> for CachedPoWConfig
impl PartialEq<CachedPoWConfig> for CachedPoWConfig
source§fn eq(&self, other: &CachedPoWConfig) -> bool
fn eq(&self, other: &CachedPoWConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CachedPoWConfig
impl Serialize for CachedPoWConfig
impl StructuralPartialEq for CachedPoWConfig
Auto Trait Implementations§
impl RefUnwindSafe for CachedPoWConfig
impl Send for CachedPoWConfig
impl Sync for CachedPoWConfig
impl Unpin for CachedPoWConfig
impl UnwindSafe for CachedPoWConfig
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