Struct libmcaptcha::master::AddVisitorResult
source · pub struct AddVisitorResult {
pub duration: u64,
pub difficulty_factor: u32,
}
Expand description
Struct representing the return datatime of [AddVisitor] message. Contains MCaptcha lifetime and difficulty factor
Fields§
§duration: u64
§difficulty_factor: u32
Implementations§
source§impl AddVisitorResult
impl AddVisitorResult
sourcepub fn new(m: &MCaptcha) -> Self
pub fn new(m: &MCaptcha) -> Self
create new AddVisitorResult from MCaptcha
Trait Implementations§
source§impl Clone for AddVisitorResult
impl Clone for AddVisitorResult
source§fn clone(&self) -> AddVisitorResult
fn clone(&self) -> AddVisitorResult
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 AddVisitorResult
impl Debug for AddVisitorResult
source§impl<'de> Deserialize<'de> for AddVisitorResult
impl<'de> Deserialize<'de> for AddVisitorResult
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
Auto Trait Implementations§
impl RefUnwindSafe for AddVisitorResult
impl Send for AddVisitorResult
impl Sync for AddVisitorResult
impl Unpin for AddVisitorResult
impl UnwindSafe for AddVisitorResult
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