From 3ccf6e70b7faf658476af809d430690fb5504be6 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 18 Oct 2023 12:48:48 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20ccb92?= =?UTF-8?q?78d673c656573a1ca90c4094c230a0fdfa8=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- implementors/core/convert/trait.From.js | 2 +- mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html | 2 +- .../easy/struct.TrafficPatternRequest.html | 2 +- .../get/struct.NotificationResp.html | 4 ++-- mcaptcha/data/struct.Data.html | 4 ++-- mcaptcha/db/maria/fn.get_data.html | 2 +- mcaptcha/db/pg/fn.get_data.html | 2 +- mcaptcha/db/type.BoxDB.html | 2 +- mcaptcha/errors/enum.PageError.html | 2 +- mcaptcha/errors/enum.ServiceError.html | 2 +- mcaptcha/errors/struct.DBErrorWrapper.html | 2 +- .../panel/notifications/struct.Notification.html | 2 +- .../sitekey/edit/struct.AdvanceEditPage.html | 2 +- .../panel/sitekey/list/struct.IndexPage.html | 4 ++-- .../panel/sitekey/view/struct.IndexPage.html | 2 +- mcaptcha/pages/panel/struct.IndexPage.html | 4 ++-- mcaptcha/stats/struct.Dummy.html | 8 ++++---- mcaptcha/stats/struct.Real.html | 8 ++++---- mcaptcha/stats/trait.Stats.html | 16 ++++++++-------- mcaptcha/struct.Data.html | 4 ++-- 20 files changed, 38 insertions(+), 38 deletions(-) diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index 04d896c3..8851ebd1 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<String> for HealthBuilderError"],["impl From<MailboxError> for ServiceError"],["impl From<Notification> for Notification"],["impl From<Notification> for NotificationResp"],["impl From<ServiceError> for PageError"],["impl From<VerifyCaptchaResultPayload> for VerifyCaptchaResult"],["impl From<CredsError> for ServiceError"],["impl From<DBError> for PageError"],["impl From<UninitializedFieldError> for BuildDetailsBuilderError"],["impl From<ValidationErrors> for ServiceError"],["impl From<DBError> for ServiceError"],["impl From<ParseError> for ServiceError"],["impl From<Error> for ServiceError"],["impl From<UninitializedFieldError> for HealthBuilderError"],["impl From<ApiWork> for Work"],["impl From<CaptchaError> for ServiceError"],["impl From<String> for BuildDetailsBuilderError"],["impl From<&TrafficPatternRequest> for TrafficPattern"],["impl From<ChangePasswordReqest> for UpdatePassword"],["impl From<RecvError> for ServiceError"]] +"mcaptcha":[["impl From<String> for HealthBuilderError"],["impl From<MailboxError> for ServiceError"],["impl From<Notification> for Notification"],["impl From<Notification> for NotificationResp"],["impl From<ServiceError> for PageError"],["impl From<VerifyCaptchaResultPayload> for VerifyCaptchaResult"],["impl From<CredsError> for ServiceError"],["impl From<DBError> for PageError"],["impl From<UninitializedFieldError> for BuildDetailsBuilderError"],["impl From<ValidationErrors> for ServiceError"],["impl From<DBError> for ServiceError"],["impl From<ParseError> for ServiceError"],["impl From<Error> for ServiceError"],["impl From<UninitializedFieldError> for HealthBuilderError"],["impl From<ApiWork> for Work"],["impl From<CaptchaError> for ServiceError"],["impl From<String> for BuildDetailsBuilderError"],["impl From<&TrafficPatternRequest> for TrafficPattern"],["impl From<ChangePasswordReqest> for UpdatePassword"],["impl From<RecvError> for ServiceError"]] };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 b5c9bdc8..357405fa 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html +++ b/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html @@ -1,4 +1,4 @@ calculate in mcaptcha::api::v1::mcaptcha::easy - Rust

Function mcaptcha::api::v1::mcaptcha::easy::calculate

source ·
pub fn calculate(
-    tp: &TrafficPattern,
+    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 04a781f6..547ce448 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/struct.TrafficPatternRequest.html +++ b/mcaptcha/api/v1/mcaptcha/easy/struct.TrafficPatternRequest.html @@ -11,7 +11,7 @@ §description: String

Captcha description

§publish_benchmarks: bool

publish benchmarks

Trait Implementations§

source§

impl Clone for TrafficPatternRequest

source§

fn clone(&self) -> TrafficPatternRequest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TrafficPatternRequest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TrafficPatternRequest

source§

fn default() -> TrafficPatternRequest

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for TrafficPatternRequest

source§

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 From<&TrafficPatternRequest> for TrafficPattern

source§

fn from(t: &TrafficPatternRequest) -> Self

Converts to this type from the input type.
source§

impl Serialize for TrafficPatternRequest

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<&TrafficPatternRequest> for TrafficPattern

source§

fn from(t: &TrafficPatternRequest) -> Self

Converts to this type from the input type.
source§

impl Serialize for TrafficPatternRequest

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for TrafficPatternRequest

§

impl Send for TrafficPatternRequest

§

impl Sync for TrafficPatternRequest

§

impl Unpin for TrafficPatternRequest

§

impl UnwindSafe for TrafficPatternRequest

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html b/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html index 37d88c0f..7364ba17 100644 --- a/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html +++ b/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html @@ -4,8 +4,8 @@ pub message: String, pub received: i64, pub id: i32, -}

Fields§

§name: String§heading: String§message: String§received: i64§id: i32

Implementations§

source§

impl NotificationResp

source

pub fn from_notifications(n: Vec<Notification>) -> Vec<Self>

Trait Implementations§

source§

impl Clone for NotificationResp

source§

fn clone(&self) -> NotificationResp

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for NotificationResp

source§

fn default() -> NotificationResp

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for NotificationResp

source§

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 From<Notification> for NotificationResp

source§

fn from(n: Notification) -> Self

Converts to this type from the input type.
source§

impl PartialEq<NotificationResp> for NotificationResp

source§

fn eq(&self, other: &NotificationResp) -> bool

This method tests for self and other values to be equal, and is used +}

Fields§

§name: String§heading: String§message: String§received: i64§id: i32

Implementations§

Trait Implementations§

source§

impl Clone for NotificationResp

source§

fn clone(&self) -> NotificationResp

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for NotificationResp

source§

fn default() -> NotificationResp

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for NotificationResp

source§

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 From<Notification> for NotificationResp

source§

fn from(n: Notification) -> Self

Converts to this type from the input type.
source§

impl PartialEq<NotificationResp> for NotificationResp

source§

fn eq(&self, other: &NotificationResp) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for NotificationResp

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for NotificationResp

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/mcaptcha/data/struct.Data.html b/mcaptcha/data/struct.Data.html index e09c84f2..e2674c1b 100644 --- a/mcaptcha/data/struct.Data.html +++ b/mcaptcha/data/struct.Data.html @@ -1,12 +1,12 @@ Data in mcaptcha::data - Rust

Struct mcaptcha::data::Data

source ·
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 0b620bbe..2b78e316 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

Function mcaptcha::db::maria::get_data

source ·
pub async fn get_data(settings: Option<Settings>) -> Box<dyn MCDatabase>
\ No newline at end of file +get_data in mcaptcha::db::maria - Rust

Function mcaptcha::db::maria::get_data

source ·
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 9b079418..7b085a4d 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

Function mcaptcha::db::pg::get_data

source ·
pub async fn get_data(settings: Option<Settings>) -> Box<dyn MCDatabase>
\ No newline at end of file +get_data in mcaptcha::db::pg - Rust

Function mcaptcha::db::pg::get_data

source ·
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 9e7e7f9c..eacddea8 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 8dad7d38..de84b535 100644 --- a/mcaptcha/errors/enum.PageError.html +++ b/mcaptcha/errors/enum.PageError.html @@ -1,7 +1,7 @@ PageError in mcaptcha::errors - Rust
pub enum PageError {
     InternalServerError,
     ServiceError(ServiceError),
-}

Variants§

§

InternalServerError

§

ServiceError(ServiceError)

Trait Implementations§

source§

impl Debug for PageError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for PageError

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for PageError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<DBError> for PageError

source§

fn from(e: DBError) -> Self

Converts to this type from the input type.
source§

impl From<ServiceError> for PageError

source§

fn from(e: ServiceError) -> Self

Converts to this type from the input type.
source§

impl PartialEq<PageError> for PageError

source§

fn eq(&self, other: &PageError) -> bool

This method tests for self and other values to be equal, and is used +}

Variants§

§

InternalServerError

§

ServiceError(ServiceError)

Trait Implementations§

source§

impl Debug for PageError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for PageError

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for PageError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<DBError> for PageError

source§

fn from(e: DBError) -> Self

Converts to this type from the input type.
source§

impl From<ServiceError> for PageError

source§

fn from(e: ServiceError) -> Self

Converts to this type from the input type.
source§

impl PartialEq<PageError> for PageError

source§

fn eq(&self, other: &PageError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ResponseError for PageError

source§

fn error_response(&self) -> HttpResponse

Creates full response for error. Read more
source§

fn status_code(&self) -> StatusCode

Returns appropriate status code for error. Read more
source§

impl StructuralPartialEq for PageError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/mcaptcha/errors/enum.ServiceError.html b/mcaptcha/errors/enum.ServiceError.html index 294b2e2a..6ca9da73 100644 --- a/mcaptcha/errors/enum.ServiceError.html +++ b/mcaptcha/errors/enum.ServiceError.html @@ -32,7 +32,7 @@ profile

§

TokenNotFound

token not found

§

CaptchaError(CaptchaError)

§

DBError(DBErrorWrapper)

§

CaptchaNotFound

captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

-

Trait Implementations§

source§

impl Debug for ServiceError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ServiceError

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for ServiceError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<CaptchaError> for ServiceError

source§

fn from(e: CaptchaError) -> ServiceError

Converts to this type from the input type.
source§

impl From<CredsError> for ServiceError

source§

fn from(e: CredsError) -> ServiceError

Converts to this type from the input type.
source§

impl From<DBError> for ServiceError

source§

fn from(e: DBError) -> ServiceError

Converts to this type from the input type.
source§

impl From<Error> for ServiceError

source§

fn from(e: SmtpError) -> Self

Converts to this type from the input type.
source§

impl From<MailboxError> for ServiceError

source§

fn from(e: MailboxError) -> Self

Converts to this type from the input type.
source§

impl From<ParseError> for ServiceError

source§

fn from(_: ParseError) -> ServiceError

Converts to this type from the input type.
source§

impl From<RecvError> for ServiceError

source§

fn from(e: RecvError) -> Self

Converts to this type from the input type.
source§

impl From<ServiceError> for PageError

source§

fn from(e: ServiceError) -> Self

Converts to this type from the input type.
source§

impl From<ValidationErrors> for ServiceError

source§

fn from(_: ValidationErrors) -> ServiceError

Converts to this type from the input type.
source§

impl PartialEq<ServiceError> for ServiceError

source§

fn eq(&self, other: &ServiceError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl Debug for ServiceError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ServiceError

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for ServiceError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<CaptchaError> for ServiceError

source§

fn from(e: CaptchaError) -> ServiceError

Converts to this type from the input type.
source§

impl From<CredsError> for ServiceError

source§

fn from(e: CredsError) -> ServiceError

Converts to this type from the input type.
source§

impl From<DBError> for ServiceError

source§

fn from(e: DBError) -> ServiceError

Converts to this type from the input type.
source§

impl From<Error> for ServiceError

source§

fn from(e: SmtpError) -> Self

Converts to this type from the input type.
source§

impl From<MailboxError> for ServiceError

source§

fn from(e: MailboxError) -> Self

Converts to this type from the input type.
source§

impl From<ParseError> for ServiceError

source§

fn from(_: ParseError) -> ServiceError

Converts to this type from the input type.
source§

impl From<RecvError> for ServiceError

source§

fn from(e: RecvError) -> Self

Converts to this type from the input type.
source§

impl From<ServiceError> for PageError

source§

fn from(e: ServiceError) -> Self

Converts to this type from the input type.
source§

impl From<ValidationErrors> for ServiceError

source§

fn from(_: ValidationErrors) -> ServiceError

Converts to this type from the input type.
source§

impl PartialEq<ServiceError> for ServiceError

source§

fn eq(&self, other: &ServiceError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ResponseError for ServiceError

source§

fn error_response(&self) -> HttpResponse

Creates full response for error. Read more
source§

fn status_code(&self) -> StatusCode

Returns appropriate status code for error. Read more
source§

impl StructuralPartialEq for ServiceError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/mcaptcha/errors/struct.DBErrorWrapper.html b/mcaptcha/errors/struct.DBErrorWrapper.html index e2a8534a..f1feb088 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§

source§

impl Debug for DBErrorWrapper

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for DBErrorWrapper

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for DBErrorWrapper

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq<DBErrorWrapper> for DBErrorWrapper

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used +DBErrorWrapper in mcaptcha::errors - Rust
pub struct DBErrorWrapper(DBError);

Tuple Fields§

§0: DBError

Trait Implementations§

source§

impl Debug for DBErrorWrapper

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for DBErrorWrapper

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for DBErrorWrapper

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq<DBErrorWrapper> for DBErrorWrapper

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/mcaptcha/pages/panel/notifications/struct.Notification.html b/mcaptcha/pages/panel/notifications/struct.Notification.html index 84bc03bd..c6c5f08c 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: String§heading: String§message: String§received: OffsetDateTime§id: i32

Implementations§

Trait Implementations§

source§

impl From<Notification> for Notification

source§

fn from(n: Notification) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +}

Fields§

§name: String§heading: String§message: String§received: OffsetDateTime§id: i32

Implementations§

Trait Implementations§

source§

impl From<Notification> for Notification

source§

fn from(n: Notification) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html b/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html index 30648428..1996416b 100644 --- a/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html +++ b/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html @@ -5,7 +5,7 @@ levels: Vec<Level>, publish_benchmarks: bool, }

Fields§

§duration: u32§name: String§key: String§levels: Vec<Level>§publish_benchmarks: bool

Implementations§

source§

impl AdvanceEditPage

source

fn new( - config: Captcha, + config: Captcha, levels: Vec<Level>, key: String, publish_benchmarks: bool diff --git a/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html b/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html index 6b417f99..22d4e325 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§

source§

impl IndexPage

source

fn new(sitekeys: Vec<Captcha>) -> Self

Trait Implementations§

source§

impl Clone for IndexPage

source§

fn clone(&self) -> IndexPage

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl TemplateOnce for IndexPage

source§

fn render_once(self) -> RenderResult

Render the template and return the rendering result as RenderResult Read more
source§

fn render_once_to(self, __sf_buf: &mut Buffer) -> Result<(), RenderError>

Render the template and append the result to buf. Read more
source§

impl Sealed for IndexPage

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + sitekeys: Vec<Captcha>, +}

Fields§

§sitekeys: Vec<Captcha>

Implementations§

source§

impl IndexPage

source

fn new(sitekeys: Vec<Captcha>) -> Self

Trait Implementations§

source§

impl Clone for IndexPage

source§

fn clone(&self) -> IndexPage

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl TemplateOnce for IndexPage

source§

fn render_once(self) -> RenderResult

Render the template and return the rendering result as RenderResult Read more
source§

fn render_once_to(self, __sf_buf: &mut Buffer) -> Result<(), RenderError>

Render the template and append the result to buf. Read more
source§

impl Sealed for IndexPage

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html b/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html index 7c309dc9..07f12981 100644 --- a/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html +++ b/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html @@ -7,7 +7,7 @@ publish_benchmarks: bool, }

Fields§

§duration: u32§name: String§key: String§levels: Vec<Level>§stats: CaptchaStats§publish_benchmarks: bool

Implementations§

source§

impl IndexPage

source

fn new( stats: CaptchaStats, - config: Captcha, + config: Captcha, levels: Vec<Level>, key: String, publish_benchmarks: bool diff --git a/mcaptcha/pages/panel/struct.IndexPage.html b/mcaptcha/pages/panel/struct.IndexPage.html index 780cab88..6efce2dc 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

Struct mcaptcha::pages::panel::IndexPage

source ·
pub struct IndexPage {
-    sitekeys: Vec<Captcha>,
-}

Fields§

§sitekeys: Vec<Captcha>

Implementations§

source§

impl IndexPage

source

fn new(sitekeys: Vec<Captcha>) -> Self

Trait Implementations§

source§

impl Clone for IndexPage

source§

fn clone(&self) -> IndexPage

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl TemplateOnce for IndexPage

source§

fn render_once(self) -> RenderResult

Render the template and return the rendering result as RenderResult Read more
source§

fn render_once_to(self, __sf_buf: &mut Buffer) -> Result<(), RenderError>

Render the template and append the result to buf. Read more
source§

impl Sealed for IndexPage

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + sitekeys: Vec<Captcha>, +}

Fields§

§sitekeys: Vec<Captcha>

Implementations§

source§

impl IndexPage

source

fn new(sitekeys: Vec<Captcha>) -> Self

Trait Implementations§

source§

impl Clone for IndexPage

source§

fn clone(&self) -> IndexPage

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl TemplateOnce for IndexPage

source§

fn render_once(self) -> RenderResult

Render the template and return the rendering result as RenderResult Read more
source§

fn render_once_to(self, __sf_buf: &mut Buffer) -> Result<(), RenderError>

Render the template and append the result to buf. Read more
source§

impl Sealed for IndexPage

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/mcaptcha/stats/struct.Dummy.html b/mcaptcha/stats/struct.Dummy.html index 3440addb..528780d0 100644 --- a/mcaptcha/stats/struct.Dummy.html +++ b/mcaptcha/stats/struct.Dummy.html @@ -4,7 +4,7 @@ sufficient, and should not be overridden without very good reason.
Data, __arg2: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -13,7 +13,7 @@ sufficient, and should not be overridden without very good reason.
Data, __arg2: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -22,7 +22,7 @@ sufficient, and should not be overridden without very good reason.
Data, __arg2: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -32,7 +32,7 @@ sufficient, and should not be overridden without very good reason.

Data, __arg2: &'life2 str, __arg3: &'life3 str -) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, diff --git a/mcaptcha/stats/struct.Real.html b/mcaptcha/stats/struct.Real.html index 37bec852..0262953a 100644 --- a/mcaptcha/stats/struct.Real.html +++ b/mcaptcha/stats/struct.Real.html @@ -4,7 +4,7 @@ sufficient, and should not be overridden without very good reason.
Data, key: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -13,7 +13,7 @@ sufficient, and should not be overridden without very good reason.

Data, key: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -22,7 +22,7 @@ sufficient, and should not be overridden without very good reason.
Data, key: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -32,7 +32,7 @@ sufficient, and should not be overridden without very good reason.
Data, user: &'life2 str, key: &'life3 str -) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, diff --git a/mcaptcha/stats/trait.Stats.html b/mcaptcha/stats/trait.Stats.html index 8ffa4fdf..53ed8fa7 100644 --- a/mcaptcha/stats/trait.Stats.html +++ b/mcaptcha/stats/trait.Stats.html @@ -4,7 +4,7 @@ &'life0 self, d: &'life1 Data, key: &'life2 str - ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -13,7 +13,7 @@ &'life0 self, d: &'life1 Data, key: &'life2 str - ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -22,7 +22,7 @@ &'life0 self, d: &'life1 Data, key: &'life2 str - ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -32,7 +32,7 @@ d: &'life1 Data, user: &'life2 str, key: &'life3 str - ) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>> + ) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -42,7 +42,7 @@ &'life0 self, d: &'life1 Data, key: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -51,7 +51,7 @@ &'life0 self, d: &'life1 Data, key: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -60,7 +60,7 @@ &'life0 self, d: &'life1 Data, key: &'life2 str -) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, @@ -70,7 +70,7 @@ d: &'life1 Data, user: &'life2 str, key: &'life3 str -) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, diff --git a/mcaptcha/struct.Data.html b/mcaptcha/struct.Data.html index ed6fa36a..89cc941a 100644 --- a/mcaptcha/struct.Data.html +++ b/mcaptcha/struct.Data.html @@ -1,12 +1,12 @@ Data in mcaptcha - Rust

Struct mcaptcha::Data

source ·
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