Struct cache::safety::MCaptchaSafety
source · pub struct MCaptchaSafety;
Implementations§
source§impl MCaptchaSafety
impl MCaptchaSafety
sourcepub fn on_delete(
ctx: &Context,
_event_type: NotifyEvent,
_event: &str,
key_name: &str
)
pub fn on_delete(
ctx: &Context,
_event_type: NotifyEvent,
_event: &str,
key_name: &str
)
When safety is deleted due to expiration, if mcaptcha exists in cache a new safety should be created.
pub fn new(
ctx: &Context,
duration: u64,
mcaptcha_name: &str
) -> Result<(), CacheError>
fn set_timer(
ctx: &Context,
safety: &RedisKeyWritable,
(safety_name, duration): (String, u64)
) -> Result<(), CacheError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for MCaptchaSafety
impl<'de> Deserialize<'de> for MCaptchaSafety
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