Struct libmcaptcha::cache::messages::VerifyCaptchaResult
source · pub struct VerifyCaptchaResult {
pub token: String,
pub key: String,
}
Expand description
Message to verify captcha result against the stored captcha key
Fields§
§token: String
§key: String
Trait Implementations§
source§impl Clone for VerifyCaptchaResult
impl Clone for VerifyCaptchaResult
source§fn clone(&self) -> VerifyCaptchaResult
fn clone(&self) -> VerifyCaptchaResult
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<'de> Deserialize<'de> for VerifyCaptchaResult
impl<'de> Deserialize<'de> for VerifyCaptchaResult
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<VerifyCaptchaResult> for HashCache
impl Handler<VerifyCaptchaResult> for HashCache
Retrive PoW difficulty_factor for a PoW string
§type Result = MessageResult<VerifyCaptchaResult>
type Result = MessageResult<VerifyCaptchaResult>
The type of value that this handler will return. Read more
source§fn handle(
&mut self,
msg: VerifyCaptchaResult,
_ctx: &mut Self::Context
) -> Self::Result
fn handle( &mut self, msg: VerifyCaptchaResult, _ctx: &mut Self::Context ) -> Self::Result
This method is called for every message received by this actor.
source§impl Handler<VerifyCaptchaResult> for RedisCache
impl Handler<VerifyCaptchaResult> for RedisCache
Retrive PoW difficulty_factor for a PoW string
§type Result = MessageResult<VerifyCaptchaResult>
type Result = MessageResult<VerifyCaptchaResult>
The type of value that this handler will return. Read more
source§fn handle(
&mut self,
msg: VerifyCaptchaResult,
ctx: &mut Self::Context
) -> Self::Result
fn handle( &mut self, msg: VerifyCaptchaResult, ctx: &mut Self::Context ) -> Self::Result
This method is called for every message received by this actor.
source§impl Message for VerifyCaptchaResult
impl Message for VerifyCaptchaResult
§type Result = Receiver<Result<bool, CaptchaError>>
type Result = Receiver<Result<bool, CaptchaError>>
The type of value that this message will resolved with if it is
successful.
Auto Trait Implementations§
impl RefUnwindSafe for VerifyCaptchaResult
impl Send for VerifyCaptchaResult
impl Sync for VerifyCaptchaResult
impl Unpin for VerifyCaptchaResult
impl UnwindSafe for VerifyCaptchaResult
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