diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index c5cce0ee..5a0bbf7d 100644 --- a/implementors/core/convert/trait.From.js +++ b/implementors/core/convert/trait.From.js @@ -1,5 +1,5 @@ (function() {var implementors = { "db_sqlx_maria":[["impl From<InnerNotification> for Notification"]], "db_sqlx_postgres":[["impl From<InnerNotification> for Notification"]], -"mcaptcha":[["impl From<ChangePasswordReqest> for UpdatePassword"],["impl From<&TrafficPatternRequest> for TrafficPattern"],["impl From<UninitializedFieldError> for BuildDetailsBuilderError"],["impl From<String> for BuildDetailsBuilderError"],["impl From<UninitializedFieldError> for HealthBuilderError"],["impl From<String> for HealthBuilderError"],["impl From<Notification> for NotificationResp"],["impl From<VerifyCaptchaResultPayload> for VerifyCaptchaResult"],["impl From<CredsError> for ServiceError"],["impl From<DBError> for ServiceError"],["impl From<ValidationErrors> for ServiceError"],["impl From<ParseError> for ServiceError"],["impl From<CaptchaError> for ServiceError"],["impl From<Error> for ServiceError"],["impl From<RecvError> for ServiceError"],["impl From<MailboxError> for ServiceError"],["impl From<ServiceError> for PageError"],["impl From<DBError> for PageError"],["impl From<Notification> for Notification"]] +"mcaptcha":[["impl From<ChangePasswordReqest> for UpdatePassword"],["impl From<&TrafficPatternRequest> for TrafficPattern"],["impl From<UninitializedFieldError> for BuildDetailsBuilderError"],["impl From<String> for BuildDetailsBuilderError"],["impl From<UninitializedFieldError> for HealthBuilderError"],["impl From<String> for HealthBuilderError"],["impl From<Notification> for NotificationResp"],["impl From<VerifyCaptchaResultPayload> for VerifyCaptchaResult"],["impl From<CredsError> for ServiceError"],["impl From<DBError> for ServiceError"],["impl From<ValidationErrors> for ServiceError"],["impl From<ParseError> for ServiceError"],["impl From<CaptchaError> for ServiceError"],["impl From<Error> for ServiceError"],["impl From<RecvError> for ServiceError"],["impl From<MailboxError> for ServiceError"],["impl From<ServiceError> for PageError"],["impl From<DBError> for PageError"],["impl From<Notification> for Notification"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html b/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html index 753a2fed..fe8fe350 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html +++ b/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html @@ -1 +1 @@ -calculate in mcaptcha::api::v1::mcaptcha::easy - Rust
pub fn calculate(
    tp: &TrafficPattern,
    strategy: &DefaultDifficultyStrategy
) -> Result<Vec<Level>, ServiceError>
\ No newline at end of file +calculate in mcaptcha::api::v1::mcaptcha::easy - Rust
pub fn calculate(
    tp: &TrafficPattern,
    strategy: &DefaultDifficultyStrategy
) -> Result<Vec<Level>, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/struct.TrafficPatternRequest.html b/mcaptcha/api/v1/mcaptcha/easy/struct.TrafficPatternRequest.html index 1bbf26a1..5ba464fb 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/struct.TrafficPatternRequest.html +++ b/mcaptcha/api/v1/mcaptcha/easy/struct.TrafficPatternRequest.html @@ -8,7 +8,7 @@ peak_sustainable_traffic: u32

the peak traffic that the user’s website can handle

broke_my_site_traffic: Option<u32>

traffic that bought the user’s website down; optional

description: String

Captcha description

-

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html b/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html index aa31bdc0..9aecc6e4 100644 --- a/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html +++ b/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html @@ -4,7 +4,7 @@ pub message: String, pub received: i64, pub id: i32, -}

Fields

name: Stringheading: Stringmessage: Stringreceived: i64id: i32

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used +}

Fields

name: Stringheading: Stringmessage: Stringreceived: i64id: i32

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an diff --git a/mcaptcha/data/struct.Data.html b/mcaptcha/data/struct.Data.html index 9b1b7a10..2b96ddcd 100644 --- a/mcaptcha/data/struct.Data.html +++ b/mcaptcha/data/struct.Data.html @@ -1,12 +1,12 @@ Data in mcaptcha::data - Rust
pub struct Data {
-    pub db: Box<dyn MCDatabase>,
+    pub db: Box<dyn MCDatabase>,
     pub creds: Config,
     pub captcha: SystemGroup,
     pub mailer: Option<AsyncSmtpTransport<Tokio1Executor>>,
     pub settings: Settings,
     pub stats: Box<dyn Stats>,
 }
Expand description

App data

-

Fields

db: Box<dyn MCDatabase>

database ops defined by db crates

+

Fields

db: Box<dyn MCDatabase>

database ops defined by db crates

creds: Config

credential management configuration

captcha: SystemGroup

mCaptcha system: Redis cache, etc.

mailer: Option<AsyncSmtpTransport<Tokio1Executor>>

email client

diff --git a/mcaptcha/db/maria/fn.get_data.html b/mcaptcha/db/maria/fn.get_data.html index 0006ff8e..53ef6a63 100644 --- a/mcaptcha/db/maria/fn.get_data.html +++ b/mcaptcha/db/maria/fn.get_data.html @@ -1 +1 @@ -get_data in mcaptcha::db::maria - Rust
pub async fn get_data(settings: Option<Settings>) -> Box<dyn MCDatabase>
\ No newline at end of file +get_data in mcaptcha::db::maria - Rust
pub async fn get_data(settings: Option<Settings>) -> Box<dyn MCDatabase>
\ No newline at end of file diff --git a/mcaptcha/db/pg/fn.get_data.html b/mcaptcha/db/pg/fn.get_data.html index 1460c016..c6ae09fa 100644 --- a/mcaptcha/db/pg/fn.get_data.html +++ b/mcaptcha/db/pg/fn.get_data.html @@ -1 +1 @@ -get_data in mcaptcha::db::pg - Rust
pub async fn get_data(settings: Option<Settings>) -> Box<dyn MCDatabase>
\ No newline at end of file +get_data in mcaptcha::db::pg - Rust
pub async fn get_data(settings: Option<Settings>) -> Box<dyn MCDatabase>
\ No newline at end of file diff --git a/mcaptcha/db/type.BoxDB.html b/mcaptcha/db/type.BoxDB.html index 912b5103..4275272c 100644 --- a/mcaptcha/db/type.BoxDB.html +++ b/mcaptcha/db/type.BoxDB.html @@ -1 +1 @@ -BoxDB in mcaptcha::db - Rust

Type Definition mcaptcha::db::BoxDB

source · []
pub type BoxDB = Box<dyn MCDatabase>;
\ No newline at end of file +BoxDB in mcaptcha::db - Rust

Type Definition mcaptcha::db::BoxDB

source · []
pub type BoxDB = Box<dyn MCDatabase>;
\ No newline at end of file diff --git a/mcaptcha/errors/enum.PageError.html b/mcaptcha/errors/enum.PageError.html index 8314fc88..25b02c6e 100644 --- a/mcaptcha/errors/enum.PageError.html +++ b/mcaptcha/errors/enum.PageError.html @@ -3,7 +3,7 @@ ServiceError(ServiceError), }

Variants

InternalServerError

ServiceError(ServiceError)

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0:

use the Display impl or to_string()

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

-
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used +
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Creates full response for error. Read more
Returns appropriate status code for error. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an diff --git a/mcaptcha/errors/enum.ServiceError.html b/mcaptcha/errors/enum.ServiceError.html index 180bc2c6..85013183 100644 --- a/mcaptcha/errors/enum.ServiceError.html +++ b/mcaptcha/errors/enum.ServiceError.html @@ -34,7 +34,7 @@ profile

TrafficPatternNotFound

Traffic pattern not found

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0:

use the Display impl or to_string()

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

-
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used +
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Creates full response for error. Read more
Returns appropriate status code for error. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an diff --git a/mcaptcha/errors/struct.DBErrorWrapper.html b/mcaptcha/errors/struct.DBErrorWrapper.html index a861f1f2..bc589d5b 100644 --- a/mcaptcha/errors/struct.DBErrorWrapper.html +++ b/mcaptcha/errors/struct.DBErrorWrapper.html @@ -1,4 +1,4 @@ -DBErrorWrapper in mcaptcha::errors - Rust
pub struct DBErrorWrapper(DBError);

Tuple Fields

0: DBError

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0:

use the Display impl or to_string()

+DBErrorWrapper in mcaptcha::errors - Rust
pub struct DBErrorWrapper(DBError);

Tuple Fields

0: DBError

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0:

use the Display impl or to_string()

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always diff --git a/mcaptcha/pages/panel/notifications/struct.Notification.html b/mcaptcha/pages/panel/notifications/struct.Notification.html index 9612a676..48d5b6b6 100644 --- a/mcaptcha/pages/panel/notifications/struct.Notification.html +++ b/mcaptcha/pages/panel/notifications/struct.Notification.html @@ -4,7 +4,7 @@ pub message: String, pub received: OffsetDateTime, pub id: i32, -}

Fields

name: Stringheading: Stringmessage: Stringreceived: OffsetDateTimeid: i32

Implementations

Trait Implementations

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

name: Stringheading: Stringmessage: Stringreceived: OffsetDateTimeid: i32

Implementations

Trait Implementations

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html b/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html index bd220e21..9645a55d 100644 --- a/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html +++ b/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html @@ -3,7 +3,7 @@ name: String, key: String, levels: Vec<Level>, -}

Fields

duration: u32name: Stringkey: Stringlevels: Vec<Level>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

duration: u32name: Stringkey: Stringlevels: Vec<Level>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html b/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html index 4c7eaf7e..d58bf5fa 100644 --- a/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html +++ b/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html @@ -1,6 +1,6 @@ IndexPage in mcaptcha::pages::panel::sitekey::list - Rust
pub struct IndexPage {
-    sitekeys: Vec<Captcha>,
-}

Fields

sitekeys: Vec<Captcha>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+ sitekeys: Vec<Captcha>, +}

Fields

sitekeys: Vec<Captcha>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html b/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html index aaa12292..7744886f 100644 --- a/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html +++ b/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html @@ -4,7 +4,7 @@ key: String, levels: Vec<Level>, stats: CaptchaStats, -}

Fields

duration: u32name: Stringkey: Stringlevels: Vec<Level>stats: CaptchaStats

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+}

Fields

duration: u32name: Stringkey: Stringlevels: Vec<Level>stats: CaptchaStats

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/mcaptcha/pages/panel/struct.IndexPage.html b/mcaptcha/pages/panel/struct.IndexPage.html index fac67b1c..5e8b5928 100644 --- a/mcaptcha/pages/panel/struct.IndexPage.html +++ b/mcaptcha/pages/panel/struct.IndexPage.html @@ -1,6 +1,6 @@ IndexPage in mcaptcha::pages::panel - Rust
pub struct IndexPage {
-    sitekeys: Vec<Captcha>,
-}

Fields

sitekeys: Vec<Captcha>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

+ sitekeys: Vec<Captcha>, +}

Fields

sitekeys: Vec<Captcha>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Render the template and return the rendering result as RenderResult Read more
Render the template and append the result to buf. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

diff --git a/mcaptcha/stats/struct.Dummy.html b/mcaptcha/stats/struct.Dummy.html index 18ddeea7..9812a83b 100644 --- a/mcaptcha/stats/struct.Dummy.html +++ b/mcaptcha/stats/struct.Dummy.html @@ -1,9 +1,9 @@ Dummy in mcaptcha::stats - Rust
pub struct Dummy;

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch stats

+sufficient, and should not be overridden without very good reason. Read more

record PoWConfig fetches

+

record PoWConfig solves

+

record PoWConfig confirms

+

fetch stats

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an diff --git a/mcaptcha/stats/struct.Real.html b/mcaptcha/stats/struct.Real.html index 70db46c2..415c1f97 100644 --- a/mcaptcha/stats/struct.Real.html +++ b/mcaptcha/stats/struct.Real.html @@ -1,9 +1,9 @@ Real in mcaptcha::stats - Rust
pub struct Real;

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason. Read more

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch stats

+sufficient, and should not be overridden without very good reason. Read more

record PoWConfig fetches

+

record PoWConfig solves

+

record PoWConfig confirms

+

fetch stats

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an diff --git a/mcaptcha/stats/trait.Stats.html b/mcaptcha/stats/trait.Stats.html index 12409186..d972bffb 100644 --- a/mcaptcha/stats/trait.Stats.html +++ b/mcaptcha/stats/trait.Stats.html @@ -1,10 +1,10 @@ Stats in mcaptcha::stats - Rust
pub trait Stats: Send + Sync + CloneStats {
-    fn record_fetch<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        d: &'life1 Data,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        d: &'life1 Data,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        d: &'life1 Data,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        d: &'life1 Data,
        user: &'life2 str,
        key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; -}

Required Methods

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch stats

+ fn record_fetch<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        d: &'life1 Data,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; + fn record_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        d: &'life1 Data,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; + fn record_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        d: &'life1 Data,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; + fn fetch<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        d: &'life1 Data,
        user: &'life2 str,
        key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; +}

Required Methods

record PoWConfig fetches

+

record PoWConfig solves

+

record PoWConfig confirms

+

fetch stats

Implementors

\ No newline at end of file diff --git a/mcaptcha/struct.Data.html b/mcaptcha/struct.Data.html index 31c10e60..ac74bf6b 100644 --- a/mcaptcha/struct.Data.html +++ b/mcaptcha/struct.Data.html @@ -1,12 +1,12 @@ Data in mcaptcha - Rust
pub struct Data {
-    pub db: Box<dyn MCDatabase>,
+    pub db: Box<dyn MCDatabase>,
     pub creds: Config,
     pub captcha: SystemGroup,
     pub mailer: Option<AsyncSmtpTransport<Tokio1Executor>>,
     pub settings: Settings,
     pub stats: Box<dyn Stats>,
 }
Expand description

App data

-

Fields

db: Box<dyn MCDatabase>

database ops defined by db crates

+

Fields

db: Box<dyn MCDatabase>

database ops defined by db crates

creds: Config

credential management configuration

captcha: SystemGroup

mCaptcha system: Redis cache, etc.

mailer: Option<AsyncSmtpTransport<Tokio1Executor>>

email client