Struct libmcaptcha::pow::PoWConfig
source · pub struct PoWConfig {
pub string: String,
pub difficulty_factor: u32,
pub salt: String,
}
Expand description
PoW requirement datatype that is be sent to clients for generating PoW
Fields§
§string: String
§difficulty_factor: u32
§salt: String
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PoWConfig
impl<'de> Deserialize<'de> for PoWConfig
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 PoWConfig
impl Send for PoWConfig
impl Sync for PoWConfig
impl Unpin for PoWConfig
impl UnwindSafe for PoWConfig
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