Struct libmcaptcha::cache::messages::CachePoW
source · pub struct CachePoW {
pub string: String,
pub difficulty_factor: u32,
pub duration: u64,
pub key: String,
}
Expand description
Message to cache PoW difficulty factor and string
Fields§
§string: String
challenge string
difficulty_factor: u32
Difficulty factor of mCaptcha at the time of minting this config
duration: u64
mCaptcha TTL
key: String
Key is mCaptcha name
Trait Implementations§
source§impl<'de> Deserialize<'de> for CachePoW
impl<'de> Deserialize<'de> for CachePoW
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 Handler<CachePoW> for RedisCache
impl Handler<CachePoW> for RedisCache
cache a PoWConfig
Auto Trait Implementations§
impl RefUnwindSafe for CachePoW
impl Send for CachePoW
impl Sync for CachePoW
impl Unpin for CachePoW
impl UnwindSafe for CachePoW
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