pub struct PoW {
pub get_config: &'static str,
pub verify_pow: &'static str,
pub validate_captcha_token: &'static str,
pub scope: &'static str,
}Fields§
§get_config: &'static str§verify_pow: &'static str§validate_captcha_token: &'static str§scope: &'static strImplementations§
Source§impl PoW
impl PoW
pub const fn new() -> Self
Sourcepub fn get_config(&self) -> &str
pub fn get_config(&self) -> &str
remove scope for $name route
Sourcepub fn verify_pow(&self) -> &str
pub fn verify_pow(&self) -> &str
remove scope for $name route
Sourcepub fn validate_captcha_token(&self) -> &str
pub fn validate_captcha_token(&self) -> &str
remove scope for $name route
Auto Trait Implementations§
impl Freeze for PoW
impl RefUnwindSafe for PoW
impl Send for PoW
impl Sync for PoW
impl Unpin for PoW
impl UnwindSafe for PoW
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more