diff --git a/db_core/all.html b/db_core/all.html index 760a8bc3..add459d3 100644 --- a/db_core/all.html +++ b/db_core/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Attribute Macros

Functions

Type Definitions

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Attribute Macros

Functions

Type Definitions

\ No newline at end of file diff --git a/db_core/dev/attr.async_trait.html b/db_core/dev/attr.async_trait.html index 8cf45444..fc4a7ce0 100644 --- a/db_core/dev/attr.async_trait.html +++ b/db_core/dev/attr.async_trait.html @@ -1 +1 @@ -async_trait in db_core::dev - Rust

Attribute Macro db_core::dev::async_trait

#[async_trait]
\ No newline at end of file +async_trait in db_core::dev - Rust

Attribute Macro db_core::dev::async_trait

#[async_trait]
\ No newline at end of file diff --git a/db_core/dev/index.html b/db_core/dev/index.html index 41b8403c..eb544c04 100644 --- a/db_core/dev/index.html +++ b/db_core/dev/index.html @@ -1,2 +1,2 @@ -db_core::dev - Rust

Module db_core::dev

source ·
Expand description

useful imports for supporting a new database

-

Re-exports

pub use super::prelude::*;

Attribute Macros

\ No newline at end of file +db_core::dev - Rust

Module db_core::dev

source ·
Expand description

useful imports for supporting a new database

+

Re-exports

Attribute Macros

\ No newline at end of file diff --git a/db_core/dev/sidebar-items.js b/db_core/dev/sidebar-items.js index eb02cda1..8c2cada5 100644 --- a/db_core/dev/sidebar-items.js +++ b/db_core/dev/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"attr":[["async_trait",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"attr":["async_trait"]}; \ No newline at end of file diff --git a/db_core/enum.Login.html b/db_core/enum.Login.html index 9a12e731..465f5c22 100644 --- a/db_core/enum.Login.html +++ b/db_core/enum.Login.html @@ -1,17 +1,29 @@ -Login in db_core - Rust

Enum db_core::Login

source ·
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_core - Rust

Enum db_core::Login

source ·
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

source§

impl<'a> Clone for Login<'a>

source§

fn clone(&self) -> Login<'a>

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<'a> Debug for Login<'a>

source§

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

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

impl<'de: 'a, 'a> Deserialize<'de> for Login<'a>

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<'a> PartialEq<Login<'a>> for Login<'a>

source§

fn eq(&self, other: &Login<'a>) -> 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<'a> Serialize for Login<'a>

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<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/errors/enum.DBError.html b/db_core/errors/enum.DBError.html index 135e269a..c6afa6ec 100644 --- a/db_core/errors/enum.DBError.html +++ b/db_core/errors/enum.DBError.html @@ -1,4 +1,4 @@ -DBError in db_core::errors - Rust

Enum db_core::errors::DBError

source ·
pub enum DBError {
+DBError in db_core::errors - Rust

Enum db_core::errors::DBError

source ·
pub enum DBError {
     DBError(BoxDynError),
     UsernameTaken,
     EmailTaken,
@@ -8,7 +8,7 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

+}
Expand description

Error data structure grouping various error subtypes

Variants§

§

DBError(BoxDynError)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

source§

impl Debug for DBError

source§

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

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

impl Display for DBError

source§

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

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

impl Error for DBError

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_core/errors/index.html b/db_core/errors/index.html index 988c4a95..c644badd 100644 --- a/db_core/errors/index.html +++ b/db_core/errors/index.html @@ -1,2 +1,2 @@ -db_core::errors - Rust

Module db_core::errors

source ·
Expand description

represents all the ways a trait can fail using this crate

-

Enums

Error data structure grouping various error subtypes

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_core::errors - Rust

Module db_core::errors

source ·
Expand description

represents all the ways a trait can fail using this crate

+

Enums

  • Error data structure grouping various error subtypes

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_core/errors/sidebar-items.js b/db_core/errors/sidebar-items.js index 48f114ec..f42d6190 100644 --- a/db_core/errors/sidebar-items.js +++ b/db_core/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_core/errors/type.BoxDynError.html b/db_core/errors/type.BoxDynError.html index 3a0c9e8e..e3e8f893 100644 --- a/db_core/errors/type.BoxDynError.html +++ b/db_core/errors/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_core::errors - Rust

Type Definition db_core::errors::BoxDynError

source ·
pub type BoxDynError = Box<dyn StdError + Send + Sync + 'static>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_core::errors - Rust

Type Definition db_core::errors::BoxDynError

source ·
pub type BoxDynError = Box<dyn StdError + Send + Sync + 'static>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_core/errors/type.DBResult.html b/db_core/errors/type.DBResult.html index f804a29e..fd88f563 100644 --- a/db_core/errors/type.DBResult.html +++ b/db_core/errors/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_core::errors - Rust

Type Definition db_core::errors::DBResult

source ·
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_core::errors - Rust

Type Definition db_core::errors::DBResult

source ·
pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_core/index.html b/db_core/index.html index c0bfbdbe..84e386e5 100644 --- a/db_core/index.html +++ b/db_core/index.html @@ -1,4 +1,4 @@ -db_core - Rust

Crate db_core

source ·
Expand description

mCaptcha database operations

+db_core - Rust

Crate db_core

source ·
Expand description

mCaptcha database operations

Traits and datastructures used in mCaptcha to interact with database.

To use an unsupported database with mCaptcha, traits present within this crate should be implemented.

@@ -6,8 +6,8 @@ implemented.

Database functionality is divided across various modules:

  • errors: error data structures used in this crate
  • -
  • ops: meta operations like connection pool creation, migrations and getting +
  • ops: meta operations like connection pool creation, migrations and getting connection from pool
-

Re-exports

pub use ops::GetConnection;

Modules

useful imports for supporting a new database
represents all the ways a trait can fail using this crate
meta operations like migration and connecting to a database
useful imports for users working with a supported database
Test utilities

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
\ No newline at end of file +

Re-exports

Modules

  • useful imports for supporting a new database
  • represents all the ways a trait can fail using this crate
  • meta operations like migration and connecting to a database
  • useful imports for users working with a supported database
  • Test utilities

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
\ No newline at end of file diff --git a/db_core/ops/index.html b/db_core/ops/index.html index 08dc3194..973a5ff0 100644 --- a/db_core/ops/index.html +++ b/db_core/ops/index.html @@ -1,2 +1,2 @@ -db_core::ops - Rust

Module db_core::ops

source ·
Expand description

meta operations like migration and connecting to a database

-

Traits

Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
database migrations
\ No newline at end of file +db_core::ops - Rust

Module db_core::ops

source ·
Expand description

meta operations like migration and connecting to a database

+

Traits

  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • database migrations
\ No newline at end of file diff --git a/db_core/ops/sidebar-items.js b/db_core/ops/sidebar-items.js index 765f2b9c..de460e00 100644 --- a/db_core/ops/sidebar-items.js +++ b/db_core/ops/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"trait":["Connect","DBOps","GetConnection","Migrate"]}; \ No newline at end of file diff --git a/db_core/ops/trait.Connect.html b/db_core/ops/trait.Connect.html index 4e0f0604..37539b65 100644 --- a/db_core/ops/trait.Connect.html +++ b/db_core/ops/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_core::ops - Rust

Trait db_core::ops::Connect

source ·
pub trait Connect {
+Connect in db_core::ops - Rust

Trait db_core::ops::Connect

source ·
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

source

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

source

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_core/ops/trait.DBOps.html b/db_core/ops/trait.DBOps.html index 46b14917..cdcd9853 100644 --- a/db_core/ops/trait.DBOps.html +++ b/db_core/ops/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_core::ops - Rust

Trait db_core::ops::DBOps

source ·
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_core::ops - Rust

Trait db_core::ops::DBOps

source ·
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_core/ops/trait.GetConnection.html b/db_core/ops/trait.GetConnection.html index 5248ce52..59621b95 100644 --- a/db_core/ops/trait.GetConnection.html +++ b/db_core/ops/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_core::ops - Rust
pub trait GetConnection {
+GetConnection in db_core::ops - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

source

type Conn

database connection type

+

Required Methods§

source

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_core/ops/trait.Migrate.html b/db_core/ops/trait.Migrate.html index 9d307d61..e7acf9ca 100644 --- a/db_core/ops/trait.Migrate.html +++ b/db_core/ops/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_core::ops - Rust

Trait db_core::ops::Migrate

source ·
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_core::ops - Rust

Trait db_core::ops::Migrate

source ·
pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
+       where Self: 'async_trait,
+             'life0: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

source

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_core/prelude/index.html b/db_core/prelude/index.html index 231044fd..5d915cf4 100644 --- a/db_core/prelude/index.html +++ b/db_core/prelude/index.html @@ -1,2 +1,2 @@ -db_core::prelude - Rust

Module db_core::prelude

source ·
Expand description

useful imports for users working with a supported database

-

Re-exports

pub use super::errors::*;
pub use super::ops::*;
pub use super::*;
\ No newline at end of file +db_core::prelude - Rust

Module db_core::prelude

source ·
Expand description

useful imports for users working with a supported database

+

Re-exports

\ No newline at end of file diff --git a/db_core/sidebar-items.js b/db_core/sidebar-items.js index b9e8d27e..55a16d69 100644 --- a/db_core/sidebar-items.js +++ b/db_core/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["Login"],"mod":["dev","errors","ops","prelude","tests"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","MCDatabase"]}; \ No newline at end of file diff --git a/db_core/struct.AddNotification.html b/db_core/struct.AddNotification.html index 22c8d73c..c1d292df 100644 --- a/db_core/struct.AddNotification.html +++ b/db_core/struct.AddNotification.html @@ -1,21 +1,33 @@ -AddNotification in db_core - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_core - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

source§

impl<'a> Clone for AddNotification<'a>

source§

fn clone(&self) -> AddNotification<'a>

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<'a> Debug for AddNotification<'a>

source§

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

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

impl<'a> Default for AddNotification<'a>

source§

fn default() -> AddNotification<'a>

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

impl<'de: 'a, 'a> Deserialize<'de> for AddNotification<'a>

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<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

source§

fn eq(&self, other: &AddNotification<'a>) -> 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<'a> Serialize for AddNotification<'a>

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<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.Captcha.html b/db_core/struct.Captcha.html index c27810a1..818d452c 100644 --- a/db_core/struct.Captcha.html +++ b/db_core/struct.Captcha.html @@ -1,21 +1,33 @@ -Captcha in db_core - Rust

Struct db_core::Captcha

source ·
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_core - Rust

Struct db_core::Captcha

source ·
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

source§

impl Clone for Captcha

source§

fn clone(&self) -> Captcha

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 Captcha

source§

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

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

impl Default for Captcha

source§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

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 PartialEq<Captcha> for Captcha

source§

fn eq(&self, other: &Captcha) -> 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 Captcha

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 Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.CreateCaptcha.html b/db_core/struct.CreateCaptcha.html index a0b15dd0..dbb87557 100644 --- a/db_core/struct.CreateCaptcha.html +++ b/db_core/struct.CreateCaptcha.html @@ -1,19 +1,31 @@ -CreateCaptcha in db_core - Rust

Struct db_core::CreateCaptcha

source ·
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_core - Rust

Struct db_core::CreateCaptcha

source ·
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

source§

impl<'a> Clone for CreateCaptcha<'a>

source§

fn clone(&self) -> CreateCaptcha<'a>

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<'a> Debug for CreateCaptcha<'a>

source§

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

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

impl<'a> Default for CreateCaptcha<'a>

source§

fn default() -> CreateCaptcha<'a>

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

impl<'de: 'a, 'a> Deserialize<'de> for CreateCaptcha<'a>

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<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

source§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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<'a> Serialize for CreateCaptcha<'a>

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<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.Level.html b/db_core/struct.Level.html index 4f70f0b3..237d122f 100644 --- a/db_core/struct.Level.html +++ b/db_core/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_core - Rust

Struct db_core::Level

pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_core - Rust

Struct db_core::Level

pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.NameHash.html b/db_core/struct.NameHash.html index b989a6f7..8687e31f 100644 --- a/db_core/struct.NameHash.html +++ b/db_core/struct.NameHash.html @@ -1,17 +1,29 @@ -NameHash in db_core - Rust

Struct db_core::NameHash

source ·
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_core - Rust

Struct db_core::NameHash

source ·
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

source§

impl Clone for NameHash

source§

fn clone(&self) -> NameHash

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 NameHash

source§

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

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

impl<'de> Deserialize<'de> for NameHash

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 PartialEq<NameHash> for NameHash

source§

fn eq(&self, other: &NameHash) -> 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 NameHash

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 NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.Notification.html b/db_core/struct.Notification.html index baaec2bc..ab2383fc 100644 --- a/db_core/struct.Notification.html +++ b/db_core/struct.Notification.html @@ -1,23 +1,35 @@ -Notification in db_core - Rust

Struct db_core::Notification

source ·
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_core - Rust

Struct db_core::Notification

source ·
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

source§

impl Clone for Notification

source§

fn clone(&self) -> Notification

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 Notification

source§

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

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

impl Default for Notification

source§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

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 PartialEq<Notification> for Notification

source§

fn eq(&self, other: &Notification) -> 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 Notification

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 Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.Register.html b/db_core/struct.Register.html index 27d17c2f..5953e4ef 100644 --- a/db_core/struct.Register.html +++ b/db_core/struct.Register.html @@ -1,21 +1,33 @@ -Register in db_core - Rust

Struct db_core::Register

source ·
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_core - Rust

Struct db_core::Register

source ·
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

source§

impl<'a> Clone for Register<'a>

source§

fn clone(&self) -> Register<'a>

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<'a> Debug for Register<'a>

source§

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

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

impl<'de: 'a, 'a> Deserialize<'de> for Register<'a>

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<'a> PartialEq<Register<'a>> for Register<'a>

source§

fn eq(&self, other: &Register<'a>) -> 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<'a> Serialize for Register<'a>

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<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.Secret.html b/db_core/struct.Secret.html index fc95cf7d..c38c51b8 100644 --- a/db_core/struct.Secret.html +++ b/db_core/struct.Secret.html @@ -1,15 +1,27 @@ -Secret in db_core - Rust

Struct db_core::Secret

source ·
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_core - Rust

Struct db_core::Secret

source ·
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

source§

impl Clone for Secret

source§

fn clone(&self) -> Secret

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 Secret

source§

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

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

impl Default for Secret

source§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

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 PartialEq<Secret> for Secret

source§

fn eq(&self, other: &Secret) -> 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 Secret

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 Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.StatsUnixTimestamp.html b/db_core/struct.StatsUnixTimestamp.html index 80abcdce..39f1cd46 100644 --- a/db_core/struct.StatsUnixTimestamp.html +++ b/db_core/struct.StatsUnixTimestamp.html @@ -1,19 +1,31 @@ -StatsUnixTimestamp in db_core - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64>,
-    pub solves: Vec<i64>,
-    pub confirms: Vec<i64>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64>

times at which the configuration were fetched

-
§solves: Vec<i64>

times at which the PoW was solved

-
§confirms: Vec<i64>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_core - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64>,
+    pub solves: Vec<i64>,
+    pub confirms: Vec<i64>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64>

times at which the configuration were fetched

+
§solves: Vec<i64>

times at which the PoW was solved

+
§confirms: Vec<i64>

times at which the PoW token was verified

+

Trait Implementations§

source§

impl Clone for StatsUnixTimestamp

source§

fn clone(&self) -> StatsUnixTimestamp

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 StatsUnixTimestamp

source§

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

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

impl Default for StatsUnixTimestamp

source§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

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 PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

source§

fn eq(&self, other: &StatsUnixTimestamp) -> 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 StatsUnixTimestamp

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 StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.TrafficPattern.html b/db_core/struct.TrafficPattern.html index 37111b7f..6aad147d 100644 --- a/db_core/struct.TrafficPattern.html +++ b/db_core/struct.TrafficPattern.html @@ -1,19 +1,31 @@ -TrafficPattern in db_core - Rust

Struct db_core::TrafficPattern

source ·
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_core - Rust

Struct db_core::TrafficPattern

source ·
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

source§

impl Clone for TrafficPattern

source§

fn clone(&self) -> TrafficPattern

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 TrafficPattern

source§

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

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

impl Default for TrafficPattern

source§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

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 PartialEq<TrafficPattern> for TrafficPattern

source§

fn eq(&self, other: &TrafficPattern) -> 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 TrafficPattern

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 TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/struct.UpdateEmail.html b/db_core/struct.UpdateEmail.html index 86d2c0e9..38e36ead 100644 --- a/db_core/struct.UpdateEmail.html +++ b/db_core/struct.UpdateEmail.html @@ -1,17 +1,29 @@ -UpdateEmail in db_core - Rust

Struct db_core::UpdateEmail

source ·
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_core - Rust

Struct db_core::UpdateEmail

source ·
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

source§

impl<'a> Clone for UpdateEmail<'a>

source§

fn clone(&self) -> UpdateEmail<'a>

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<'a> Debug for UpdateEmail<'a>

source§

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

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

impl<'de: 'a, 'a> Deserialize<'de> for UpdateEmail<'a>

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<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

source§

fn eq(&self, other: &UpdateEmail<'a>) -> 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<'a> Serialize for UpdateEmail<'a>

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<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_core/tests/fn.database_works.html b/db_core/tests/fn.database_works.html index 730b2fd3..bbc4e39a 100644 --- a/db_core/tests/fn.database_works.html +++ b/db_core/tests/fn.database_works.html @@ -1,2 +1,9 @@ -database_works in db_core::tests - Rust

Function db_core::tests::database_works

source ·
pub async fn database_works<'a, T: MCDatabase>(
    db: &T,
    p: &Register<'a>,
    c: &CreateCaptcha<'a>,
    l: &[Level],
    tp: &TrafficPattern,
    an: &AddNotification<'a>
)
Expand description

test all database functions

-
\ No newline at end of file +database_works in db_core::tests - Rust

Function db_core::tests::database_works

source ·
pub async fn database_works<'a, T: MCDatabase>(
+    db: &T,
+    p: &Register<'a>,
+    c: &CreateCaptcha<'a>,
+    l: &[Level],
+    tp: &TrafficPattern,
+    an: &AddNotification<'a>
+)
Expand description

test all database functions

+
\ No newline at end of file diff --git a/db_core/tests/index.html b/db_core/tests/index.html index f972eba0..ba3593da 100644 --- a/db_core/tests/index.html +++ b/db_core/tests/index.html @@ -1,2 +1,2 @@ -db_core::tests - Rust

Module db_core::tests

source ·
Expand description

Test utilities

-

Functions

test all database functions
\ No newline at end of file +db_core::tests - Rust

Module db_core::tests

source ·
Expand description

Test utilities

+

Functions

\ No newline at end of file diff --git a/db_core/tests/sidebar-items.js b/db_core/tests/sidebar-items.js index 4939af2f..b8901262 100644 --- a/db_core/tests/sidebar-items.js +++ b/db_core/tests/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["database_works","test all database functions"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["database_works"]}; \ No newline at end of file diff --git a/db_core/trait.CloneSPDatabase.html b/db_core/trait.CloneSPDatabase.html index 2022b800..27708da8 100644 --- a/db_core/trait.CloneSPDatabase.html +++ b/db_core/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_core - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_core - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

source

fn clone_db(&self) -> Box<dyn MCDatabase>

clone DB

+

Implementors§

source§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_core/trait.MCDatabase.html b/db_core/trait.MCDatabase.html index ebe577d4..b2983b41 100644 --- a/db_core/trait.MCDatabase.html +++ b/db_core/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_core - Rust

Trait db_core::MCDatabase

source ·
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_core - Rust

Trait db_core::MCDatabase

source ·
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>> + where Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Implementors§

\ No newline at end of file +

Required Methods§

source

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait,

ping DB

+
source

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

register a new user

+
source

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

delete a user

+
source

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

check if username exists

+
source

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get user email

+
source

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

check if email exists

+
source

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

update a user’s email

+
source

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s password

+
source

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

update user’s password

+
source

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update username

+
source

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s secret

+
source

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s secret from a captcha key

+
source

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update a user’s secret

+
source

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

create new captcha

+
source

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get captcha config

+
source

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

Get all captchas belonging to user

+
source

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update captcha metadata; doesn’t change captcha key

+
source

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

update captcha key; doesn’t change metadata

+
source

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

Add levels to captcha

+
source

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

check if captcha exists

+
source

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete all levels of a captcha

+
source

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete captcha

+
source

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get captcha levels

+
source

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

Get captcha’s cooldown period

+
source

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

Add traffic configuration

+
source

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get traffic configuration

+
source

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete traffic configuration

+
source

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

create new notification

+
source

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get all unread notifications

+
source

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

mark a notification read

+
source

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig fetches

+
source

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig solves

+
source

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig confirms

+
source

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig fetches

+
source

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig solves

+
source

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig confirms

+

Trait Implementations§

source§

impl Clone for Box<dyn MCDatabase>

source§

fn clone(&self) -> Self

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

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/all.html b/db_sqlx_maria/all.html index 0eddfab2..a2b39126 100644 --- a/db_sqlx_maria/all.html +++ b/db_sqlx_maria/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Attribute Macros

Functions

Type Definitions

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Attribute Macros

Functions

Type Definitions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/attr.async_trait.html b/db_sqlx_maria/dev/attr.async_trait.html index d6994860..1b30b515 100644 --- a/db_sqlx_maria/dev/attr.async_trait.html +++ b/db_sqlx_maria/dev/attr.async_trait.html @@ -1 +1 @@ -async_trait in db_sqlx_maria::dev - Rust

Attribute Macro db_sqlx_maria::dev::async_trait

#[async_trait]
\ No newline at end of file +async_trait in db_sqlx_maria::dev - Rust

Attribute Macro db_sqlx_maria::dev::async_trait

#[async_trait]
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/attr.async_trait.html b/db_sqlx_maria/dev/dev/attr.async_trait.html index a2a78760..0f8c1789 100644 --- a/db_sqlx_maria/dev/dev/attr.async_trait.html +++ b/db_sqlx_maria/dev/dev/attr.async_trait.html @@ -1 +1 @@ -async_trait in db_sqlx_maria::dev::dev - Rust

Attribute Macro db_sqlx_maria::dev::dev::async_trait

#[async_trait]
\ No newline at end of file +async_trait in db_sqlx_maria::dev::dev - Rust

Attribute Macro db_sqlx_maria::dev::dev::async_trait

#[async_trait]
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/enum.DBError.html b/db_sqlx_maria/dev/dev/enum.DBError.html index d4878a22..44ea12dc 100644 --- a/db_sqlx_maria/dev/dev/enum.DBError.html +++ b/db_sqlx_maria/dev/dev/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_maria::dev::dev - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_maria::dev::dev - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/enum.Login.html b/db_sqlx_maria/dev/dev/enum.Login.html index 6876e243..1214b6c4 100644 --- a/db_sqlx_maria/dev/dev/enum.Login.html +++ b/db_sqlx_maria/dev/dev/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_maria::dev::dev - Rust

Enum db_sqlx_maria::dev::dev::Login

pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_maria::dev::dev - Rust

Enum db_sqlx_maria::dev::dev::Login

pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/errors/enum.DBError.html b/db_sqlx_maria/dev/dev/errors/enum.DBError.html index 435a6ecd..62aba23c 100644 --- a/db_sqlx_maria/dev/dev/errors/enum.DBError.html +++ b/db_sqlx_maria/dev/dev/errors/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_maria::dev::dev::errors - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_maria::dev::dev::errors - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/errors/index.html b/db_sqlx_maria/dev/dev/errors/index.html index 20d0271e..163eadaa 100644 --- a/db_sqlx_maria/dev/dev/errors/index.html +++ b/db_sqlx_maria/dev/dev/errors/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::dev::dev::errors - Rust

Module db_sqlx_maria::dev::dev::errors

Expand description

represents all the ways a trait can fail using this crate

-

Enums

Error data structure grouping various error subtypes

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_maria::dev::dev::errors - Rust

Module db_sqlx_maria::dev::dev::errors

Expand description

represents all the ways a trait can fail using this crate

+

Enums

  • Error data structure grouping various error subtypes

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/errors/sidebar-items.js b/db_sqlx_maria/dev/dev/errors/sidebar-items.js index 48f114ec..f42d6190 100644 --- a/db_sqlx_maria/dev/dev/errors/sidebar-items.js +++ b/db_sqlx_maria/dev/dev/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/errors/type.BoxDynError.html b/db_sqlx_maria/dev/dev/errors/type.BoxDynError.html index f467f3fd..3097f72f 100644 --- a/db_sqlx_maria/dev/dev/errors/type.BoxDynError.html +++ b/db_sqlx_maria/dev/dev/errors/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_maria::dev::dev::errors - Rust

Type Definition db_sqlx_maria::dev::dev::errors::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_maria::dev::dev::errors - Rust

Type Definition db_sqlx_maria::dev::dev::errors::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/errors/type.DBResult.html b/db_sqlx_maria/dev/dev/errors/type.DBResult.html index e2e3ad1c..8ab88690 100644 --- a/db_sqlx_maria/dev/dev/errors/type.DBResult.html +++ b/db_sqlx_maria/dev/dev/errors/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_maria::dev::dev::errors - Rust

Type Definition db_sqlx_maria::dev::dev::errors::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_maria::dev::dev::errors - Rust

Type Definition db_sqlx_maria::dev::dev::errors::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/index.html b/db_sqlx_maria/dev/dev/index.html index 6cf8bfa5..2ab8ae2a 100644 --- a/db_sqlx_maria/dev/dev/index.html +++ b/db_sqlx_maria/dev/dev/index.html @@ -1,3 +1,3 @@ -db_sqlx_maria::dev::dev - Rust

Module db_sqlx_maria::dev::dev

Expand description

useful imports for supporting a new database

-

Modules

represents all the ways a trait can fail using this crate
meta operations like migration and connecting to a database
useful imports for users working with a supported database
Test utilities

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure

Attribute Macros

\ No newline at end of file +db_sqlx_maria::dev::dev - Rust

Module db_sqlx_maria::dev::dev

Expand description

useful imports for supporting a new database

+

Modules

  • represents all the ways a trait can fail using this crate
  • meta operations like migration and connecting to a database
  • useful imports for users working with a supported database
  • Test utilities

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure

Attribute Macros

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/ops/index.html b/db_sqlx_maria/dev/dev/ops/index.html index e3c9d612..fab59448 100644 --- a/db_sqlx_maria/dev/dev/ops/index.html +++ b/db_sqlx_maria/dev/dev/ops/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::dev::dev::ops - Rust

Module db_sqlx_maria::dev::dev::ops

Expand description

meta operations like migration and connecting to a database

-

Traits

Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
database migrations
\ No newline at end of file +db_sqlx_maria::dev::dev::ops - Rust

Module db_sqlx_maria::dev::dev::ops

Expand description

meta operations like migration and connecting to a database

+

Traits

  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • database migrations
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/ops/sidebar-items.js b/db_sqlx_maria/dev/dev/ops/sidebar-items.js index 765f2b9c..de460e00 100644 --- a/db_sqlx_maria/dev/dev/ops/sidebar-items.js +++ b/db_sqlx_maria/dev/dev/ops/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"trait":["Connect","DBOps","GetConnection","Migrate"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/ops/trait.Connect.html b/db_sqlx_maria/dev/dev/ops/trait.Connect.html index 2840da90..a1e61c68 100644 --- a/db_sqlx_maria/dev/dev/ops/trait.Connect.html +++ b/db_sqlx_maria/dev/dev/ops/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::dev::dev::ops - Rust
pub trait Connect {
+Connect in db_sqlx_maria::dev::dev::ops - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/ops/trait.DBOps.html b/db_sqlx_maria/dev/dev/ops/trait.DBOps.html index b5a1eea9..82f45067 100644 --- a/db_sqlx_maria/dev/dev/ops/trait.DBOps.html +++ b/db_sqlx_maria/dev/dev/ops/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::dev::dev::ops - Rust

Trait db_sqlx_maria::dev::dev::ops::DBOps

pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::dev::dev::ops - Rust

Trait db_sqlx_maria::dev::dev::ops::DBOps

pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/ops/trait.GetConnection.html b/db_sqlx_maria/dev/dev/ops/trait.GetConnection.html index f9300be1..30872cdb 100644 --- a/db_sqlx_maria/dev/dev/ops/trait.GetConnection.html +++ b/db_sqlx_maria/dev/dev/ops/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::dev::dev::ops - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::dev::ops - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/ops/trait.Migrate.html b/db_sqlx_maria/dev/dev/ops/trait.Migrate.html index dce05564..e9bf05f0 100644 --- a/db_sqlx_maria/dev/dev/ops/trait.Migrate.html +++ b/db_sqlx_maria/dev/dev/ops/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::dev::dev::ops - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::dev::dev::ops - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/enum.DBError.html b/db_sqlx_maria/dev/dev/prelude/enum.DBError.html index dc324cbf..bc02c3ff 100644 --- a/db_sqlx_maria/dev/dev/prelude/enum.DBError.html +++ b/db_sqlx_maria/dev/dev/prelude/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_maria::dev::dev::prelude - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_maria::dev::dev::prelude - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/enum.Login.html b/db_sqlx_maria/dev/dev/prelude/enum.Login.html index b94138e0..0a89397b 100644 --- a/db_sqlx_maria/dev/dev/prelude/enum.Login.html +++ b/db_sqlx_maria/dev/dev/prelude/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_maria::dev::dev::prelude - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_maria::dev::dev::prelude - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/index.html b/db_sqlx_maria/dev/dev/prelude/index.html index c6acbeda..c7fd9d89 100644 --- a/db_sqlx_maria/dev/dev/prelude/index.html +++ b/db_sqlx_maria/dev/dev/prelude/index.html @@ -1,3 +1,3 @@ -db_sqlx_maria::dev::dev::prelude - Rust

Module db_sqlx_maria::dev::dev::prelude

Expand description

useful imports for users working with a supported database

-

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_maria::dev::dev::prelude - Rust

Module db_sqlx_maria::dev::dev::prelude

Expand description

useful imports for users working with a supported database

+

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/sidebar-items.js b/db_sqlx_maria/dev/dev/prelude/sidebar-items.js index 0cfa29d1..6b953527 100644 --- a/db_sqlx_maria/dev/dev/prelude/sidebar-items.js +++ b/db_sqlx_maria/dev/dev/prelude/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError","Login"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.AddNotification.html b/db_sqlx_maria/dev/dev/prelude/struct.AddNotification.html index e6e221a2..fb14bceb 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.AddNotification.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_maria::dev::dev::prelude - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_maria::dev::dev::prelude - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

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

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

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

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

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.Captcha.html b/db_sqlx_maria/dev/dev/prelude/struct.Captcha.html index 71832705..1b8dc288 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.Captcha.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

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

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

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

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

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.CreateCaptcha.html b/db_sqlx_maria/dev/dev/prelude/struct.CreateCaptcha.html index 6925fbd0..4eebe2e5 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_maria::dev::dev::prelude - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_maria::dev::dev::prelude - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

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

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

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

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

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.Level.html b/db_sqlx_maria/dev/dev/prelude/struct.Level.html index 363966ec..c161fd6a 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.Level.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.NameHash.html b/db_sqlx_maria/dev/dev/prelude/struct.NameHash.html index 78e3d486..6a215827 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.NameHash.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_maria::dev::dev::prelude - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_maria::dev::dev::prelude - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

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

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

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.Notification.html b/db_sqlx_maria/dev/dev/prelude/struct.Notification.html index a9fe5ecb..122a26d9 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.Notification.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

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

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

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

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

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.Register.html b/db_sqlx_maria/dev/dev/prelude/struct.Register.html index 4941cb9e..ef1bb620 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.Register.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

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

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

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.Secret.html b/db_sqlx_maria/dev/dev/prelude/struct.Secret.html index e9875cb2..fad30944 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.Secret.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_maria::dev::dev::prelude - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

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

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

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

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

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_maria/dev/dev/prelude/struct.StatsUnixTimestamp.html index 26f6b548..1b344d1a 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_maria::dev::dev::prelude - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_maria::dev::dev::prelude - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

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

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

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

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

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.TrafficPattern.html b/db_sqlx_maria/dev/dev/prelude/struct.TrafficPattern.html index 53417cf9..ac499090 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.TrafficPattern.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_maria::dev::dev::prelude - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_maria::dev::dev::prelude - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

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

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

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

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

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/struct.UpdateEmail.html b/db_sqlx_maria/dev/dev/prelude/struct.UpdateEmail.html index 02ece44b..e21069e5 100644 --- a/db_sqlx_maria/dev/dev/prelude/struct.UpdateEmail.html +++ b/db_sqlx_maria/dev/dev/prelude/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_maria::dev::dev::prelude - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_maria::dev::dev::prelude - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

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

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

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/trait.CloneSPDatabase.html b/db_sqlx_maria/dev/dev/prelude/trait.CloneSPDatabase.html index 9b3e09a8..670c7c6e 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_maria::dev::dev::prelude - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_maria::dev::dev::prelude - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/trait.Connect.html b/db_sqlx_maria/dev/dev/prelude/trait.Connect.html index 47caae9d..ef1b96f5 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.Connect.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::dev::dev::prelude - Rust
pub trait Connect {
+Connect in db_sqlx_maria::dev::dev::prelude - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/trait.DBOps.html b/db_sqlx_maria/dev/dev/prelude/trait.DBOps.html index 5342f694..2838300c 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.DBOps.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::dev::dev::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::dev::dev::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/trait.GetConnection.html b/db_sqlx_maria/dev/dev/prelude/trait.GetConnection.html index bbe0bcb1..3008ca55 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.GetConnection.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::dev::dev::prelude - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::dev::prelude - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/trait.MCDatabase.html b/db_sqlx_maria/dev/dev/prelude/trait.MCDatabase.html index a63ce1af..26ec9ef7 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_maria::dev::dev::prelude - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_maria::dev::dev::prelude - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/trait.Migrate.html b/db_sqlx_maria/dev/dev/prelude/trait.Migrate.html index 31dc904a..c4eeb154 100644 --- a/db_sqlx_maria/dev/dev/prelude/trait.Migrate.html +++ b/db_sqlx_maria/dev/dev/prelude/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::dev::dev::prelude - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::dev::dev::prelude - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/type.BoxDynError.html b/db_sqlx_maria/dev/dev/prelude/type.BoxDynError.html index 4716ca65..130e8483 100644 --- a/db_sqlx_maria/dev/dev/prelude/type.BoxDynError.html +++ b/db_sqlx_maria/dev/dev/prelude/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_maria::dev::dev::prelude - Rust

Type Definition db_sqlx_maria::dev::dev::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_maria::dev::dev::prelude - Rust

Type Definition db_sqlx_maria::dev::dev::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/prelude/type.DBResult.html b/db_sqlx_maria/dev/dev/prelude/type.DBResult.html index e4e743b1..216c8b4b 100644 --- a/db_sqlx_maria/dev/dev/prelude/type.DBResult.html +++ b/db_sqlx_maria/dev/dev/prelude/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_maria::dev::dev::prelude - Rust

Type Definition db_sqlx_maria::dev::dev::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_maria::dev::dev::prelude - Rust

Type Definition db_sqlx_maria::dev::dev::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/sidebar-items.js b/db_sqlx_maria/dev/dev/sidebar-items.js index b05590f6..0d7e55fe 100644 --- a/db_sqlx_maria/dev/dev/sidebar-items.js +++ b/db_sqlx_maria/dev/dev/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"attr":["async_trait"],"enum":["DBError","Login"],"mod":["errors","ops","prelude","tests"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.AddNotification.html b/db_sqlx_maria/dev/dev/struct.AddNotification.html index 70c4a706..19a6ece0 100644 --- a/db_sqlx_maria/dev/dev/struct.AddNotification.html +++ b/db_sqlx_maria/dev/dev/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_maria::dev::dev - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_maria::dev::dev - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

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

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

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

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

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.Captcha.html b/db_sqlx_maria/dev/dev/struct.Captcha.html index ad7fecae..16a9bd9b 100644 --- a/db_sqlx_maria/dev/dev/struct.Captcha.html +++ b/db_sqlx_maria/dev/dev/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::Captcha

pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::Captcha

pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

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

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

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

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

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.CreateCaptcha.html b/db_sqlx_maria/dev/dev/struct.CreateCaptcha.html index 4b3a2d99..bda2752f 100644 --- a/db_sqlx_maria/dev/dev/struct.CreateCaptcha.html +++ b/db_sqlx_maria/dev/dev/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_maria::dev::dev - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_maria::dev::dev - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

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

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

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

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

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.Level.html b/db_sqlx_maria/dev/dev/struct.Level.html index 95c2a3a6..962b428b 100644 --- a/db_sqlx_maria/dev/dev/struct.Level.html +++ b/db_sqlx_maria/dev/dev/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::Level

pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::Level

pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.NameHash.html b/db_sqlx_maria/dev/dev/struct.NameHash.html index 5c6d8b49..66c7fca8 100644 --- a/db_sqlx_maria/dev/dev/struct.NameHash.html +++ b/db_sqlx_maria/dev/dev/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::NameHash

pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::NameHash

pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

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

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

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.Notification.html b/db_sqlx_maria/dev/dev/struct.Notification.html index c9fc80cc..2a17a2c5 100644 --- a/db_sqlx_maria/dev/dev/struct.Notification.html +++ b/db_sqlx_maria/dev/dev/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_maria::dev::dev - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_maria::dev::dev - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

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

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

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

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

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.Register.html b/db_sqlx_maria/dev/dev/struct.Register.html index f3488f91..65c140aa 100644 --- a/db_sqlx_maria/dev/dev/struct.Register.html +++ b/db_sqlx_maria/dev/dev/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::Register

pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::Register

pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

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

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

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.Secret.html b/db_sqlx_maria/dev/dev/struct.Secret.html index 3065fd0f..c2191dba 100644 --- a/db_sqlx_maria/dev/dev/struct.Secret.html +++ b/db_sqlx_maria/dev/dev/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::Secret

pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_maria::dev::dev - Rust

Struct db_sqlx_maria::dev::dev::Secret

pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

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

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

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

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

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.StatsUnixTimestamp.html b/db_sqlx_maria/dev/dev/struct.StatsUnixTimestamp.html index 8741887b..c0fbb6a7 100644 --- a/db_sqlx_maria/dev/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_maria/dev/dev/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_maria::dev::dev - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_maria::dev::dev - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

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

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

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

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

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.TrafficPattern.html b/db_sqlx_maria/dev/dev/struct.TrafficPattern.html index 0542ab71..e038b99e 100644 --- a/db_sqlx_maria/dev/dev/struct.TrafficPattern.html +++ b/db_sqlx_maria/dev/dev/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_maria::dev::dev - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_maria::dev::dev - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

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

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

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

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

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/struct.UpdateEmail.html b/db_sqlx_maria/dev/dev/struct.UpdateEmail.html index 499a1a04..d763bd2a 100644 --- a/db_sqlx_maria/dev/dev/struct.UpdateEmail.html +++ b/db_sqlx_maria/dev/dev/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_maria::dev::dev - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_maria::dev::dev - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

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

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

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/tests/fn.database_works.html b/db_sqlx_maria/dev/dev/tests/fn.database_works.html index 9044eb68..a2f00c6f 100644 --- a/db_sqlx_maria/dev/dev/tests/fn.database_works.html +++ b/db_sqlx_maria/dev/dev/tests/fn.database_works.html @@ -1,2 +1,10 @@ -database_works in db_sqlx_maria::dev::dev::tests - Rust
pub async fn database_works<T, 'a>(
    db: &T,
    p: &Register<'a>,
    c: &CreateCaptcha<'a>,
    l: &[Level],
    tp: &TrafficPattern,
    an: &AddNotification<'a>
) -> impl Future<Output = ()>where
    T: MCDatabase,
Expand description

test all database functions

-
\ No newline at end of file +database_works in db_sqlx_maria::dev::dev::tests - Rust
pub async fn database_works<T, 'a>(
+    db: &T,
+    p: &Register<'a>,
+    c: &CreateCaptcha<'a>,
+    l: &[Level],
+    tp: &TrafficPattern,
+    an: &AddNotification<'a>
+) -> impl Future<Output = ()>where
+    T: MCDatabase,
Expand description

test all database functions

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/tests/index.html b/db_sqlx_maria/dev/dev/tests/index.html index d4f6d0c8..60bc9f93 100644 --- a/db_sqlx_maria/dev/dev/tests/index.html +++ b/db_sqlx_maria/dev/dev/tests/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::dev::dev::tests - Rust

Module db_sqlx_maria::dev::dev::tests

Expand description

Test utilities

-

Functions

test all database functions
\ No newline at end of file +db_sqlx_maria::dev::dev::tests - Rust

Module db_sqlx_maria::dev::dev::tests

Expand description

Test utilities

+

Functions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/tests/sidebar-items.js b/db_sqlx_maria/dev/dev/tests/sidebar-items.js index 4939af2f..b8901262 100644 --- a/db_sqlx_maria/dev/dev/tests/sidebar-items.js +++ b/db_sqlx_maria/dev/dev/tests/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["database_works","test all database functions"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["database_works"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/trait.CloneSPDatabase.html b/db_sqlx_maria/dev/dev/trait.CloneSPDatabase.html index 5a80f190..65dba8a2 100644 --- a/db_sqlx_maria/dev/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_maria/dev/dev/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_maria::dev::dev - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_maria::dev::dev - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/trait.Connect.html b/db_sqlx_maria/dev/dev/trait.Connect.html index 56a94297..98546ed1 100644 --- a/db_sqlx_maria/dev/dev/trait.Connect.html +++ b/db_sqlx_maria/dev/dev/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::dev::dev - Rust
pub trait Connect {
+Connect in db_sqlx_maria::dev::dev - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/trait.DBOps.html b/db_sqlx_maria/dev/dev/trait.DBOps.html index 32511b8f..142af21f 100644 --- a/db_sqlx_maria/dev/dev/trait.DBOps.html +++ b/db_sqlx_maria/dev/dev/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::dev::dev - Rust

Trait db_sqlx_maria::dev::dev::DBOps

pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::dev::dev - Rust

Trait db_sqlx_maria::dev::dev::DBOps

pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/trait.GetConnection.html b/db_sqlx_maria/dev/dev/trait.GetConnection.html index 7266eeb8..2a91a072 100644 --- a/db_sqlx_maria/dev/dev/trait.GetConnection.html +++ b/db_sqlx_maria/dev/dev/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::dev::dev - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::dev - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/trait.MCDatabase.html b/db_sqlx_maria/dev/dev/trait.MCDatabase.html index 81fb9831..1aef37eb 100644 --- a/db_sqlx_maria/dev/dev/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/dev/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_maria::dev::dev - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_maria::dev::dev - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/trait.Migrate.html b/db_sqlx_maria/dev/dev/trait.Migrate.html index d4698eb8..adeaf1e9 100644 --- a/db_sqlx_maria/dev/dev/trait.Migrate.html +++ b/db_sqlx_maria/dev/dev/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::dev::dev - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::dev::dev - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/type.BoxDynError.html b/db_sqlx_maria/dev/dev/type.BoxDynError.html index 5e5fde72..c734e997 100644 --- a/db_sqlx_maria/dev/dev/type.BoxDynError.html +++ b/db_sqlx_maria/dev/dev/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_maria::dev::dev - Rust

Type Definition db_sqlx_maria::dev::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_maria::dev::dev - Rust

Type Definition db_sqlx_maria::dev::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/dev/type.DBResult.html b/db_sqlx_maria/dev/dev/type.DBResult.html index df505b67..cdb4ce63 100644 --- a/db_sqlx_maria/dev/dev/type.DBResult.html +++ b/db_sqlx_maria/dev/dev/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_maria::dev::dev - Rust

Type Definition db_sqlx_maria::dev::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_maria::dev::dev - Rust

Type Definition db_sqlx_maria::dev::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/enum.DBError.html b/db_sqlx_maria/dev/enum.DBError.html index e8c1273c..50a27efa 100644 --- a/db_sqlx_maria/dev/enum.DBError.html +++ b/db_sqlx_maria/dev/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_maria::dev - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_maria::dev - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/dev/enum.Error.html b/db_sqlx_maria/dev/enum.Error.html index 18315abc..468a4fdf 100644 --- a/db_sqlx_maria/dev/enum.Error.html +++ b/db_sqlx_maria/dev/enum.Error.html @@ -1,53 +1,66 @@ -Error in db_sqlx_maria::dev - Rust

Enum db_sqlx_maria::dev::Error

#[non_exhaustive]
+Error in db_sqlx_maria::dev - Rust

Enum db_sqlx_maria::dev::Error

#[non_exhaustive]
 pub enum Error {
-
Show 15 variants Configuration(Box<dyn Error + Sync + Send + 'static, Global>), - Database(Box<dyn DatabaseError + 'static, Global>), - Io(Error), - Tls(Box<dyn Error + Sync + Send + 'static, Global>), - Protocol(String), +
Show 15 variants Configuration(Box<dyn Error + Send + Sync + 'static, Global>), + Database(Box<dyn DatabaseError + 'static, Global>), + Io(Error), + Tls(Box<dyn Error + Send + Sync + 'static, Global>), + Protocol(String), RowNotFound, TypeNotFound { - type_name: String, + type_name: String, }, ColumnIndexOutOfBounds { - index: usize, - len: usize, + index: usize, + len: usize, }, - ColumnNotFound(String), + ColumnNotFound(String), ColumnDecode { - index: String, - source: Box<dyn Error + Sync + Send + 'static, Global>, + index: String, + source: Box<dyn Error + Send + Sync + 'static, Global>, }, - Decode(Box<dyn Error + Sync + Send + 'static, Global>), + Decode(Box<dyn Error + Send + Sync + 'static, Global>), PoolTimedOut, PoolClosed, WorkerCrashed, - Migrate(Box<MigrateError, Global>), -
}
Expand description

Represents all the ways a method can fail within SQLx.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Configuration(Box<dyn Error + Sync + Send + 'static, Global>)

Error occurred while parsing a connection string.

-
§

Database(Box<dyn DatabaseError + 'static, Global>)

Error returned from the database.

-
§

Io(Error)

Error communicating with the database backend.

-
§

Tls(Box<dyn Error + Sync + Send + 'static, Global>)

Error occurred while attempting to establish a TLS connection.

-
§

Protocol(String)

Unexpected or invalid data encountered while communicating with the database.

+ Migrate(Box<MigrateError, Global>), +}
Expand description

Represents all the ways a method can fail within SQLx.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Configuration(Box<dyn Error + Send + Sync + 'static, Global>)

Error occurred while parsing a connection string.

+
§

Database(Box<dyn DatabaseError + 'static, Global>)

Error returned from the database.

+
§

Io(Error)

Error communicating with the database backend.

+
§

Tls(Box<dyn Error + Send + Sync + 'static, Global>)

Error occurred while attempting to establish a TLS connection.

+
§

Protocol(String)

Unexpected or invalid data encountered while communicating with the database.

This should indicate there is a programming error in a SQLx driver or there is something corrupted with the connection to the database itself.

§

RowNotFound

No rows returned by a query that expected to return at least one row.

-
§

TypeNotFound

Fields

§type_name: String

Type in query doesn’t exist. Likely due to typo or missing user type.

-
§

ColumnIndexOutOfBounds

Fields

§index: usize
§len: usize

Column index was out of bounds.

-
§

ColumnNotFound(String)

No column found for the given name.

-
§

ColumnDecode

Fields

§index: String
§source: Box<dyn Error + Sync + Send + 'static, Global>

Error occurred while decoding a value from a specific column.

-
§

Decode(Box<dyn Error + Sync + Send + 'static, Global>)

Error occurred while decoding a value.

+
§

TypeNotFound

Fields

§type_name: String

Type in query doesn’t exist. Likely due to typo or missing user type.

+
§

ColumnIndexOutOfBounds

Fields

§index: usize
§len: usize

Column index was out of bounds.

+
§

ColumnNotFound(String)

No column found for the given name.

+
§

ColumnDecode

Fields

§index: String
§source: Box<dyn Error + Send + Sync + 'static, Global>

Error occurred while decoding a value from a specific column.

+
§

Decode(Box<dyn Error + Send + Sync + 'static, Global>)

Error occurred while decoding a value.

§

PoolTimedOut

A Pool::acquire timed out due to connections not becoming available or because another task encountered too many errors while trying to open a new connection.

§

PoolClosed

Pool::close was called while we were waiting in Pool::acquire.

§

WorkerCrashed

A background worker has crashed.

-
§

Migrate(Box<MigrateError, Global>)

Implementations§

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.

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).

+
§

Migrate(Box<MigrateError, Global>)

Implementations§

§

impl Error

pub fn into_database_error( + self +) -> Option<Box<dyn DatabaseError + 'static, Global>>

pub fn as_database_error(&self) -> Option<&(dyn DatabaseError + 'static)>

Trait Implementations§

§

impl Debug for Error

§

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

Formats the value using the given formatter. Read more
§

impl Display for Error

§

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

Formats the value using the given formatter. Read more
§

impl Error for Error

§

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, demand: &mut Demand<'a>)

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

impl<E> From<E> for Errorwhere + E: DatabaseError,

§

fn from(error: E) -> Error

Converts to this type from the input type.
§

impl From<Error> for Error

§

fn from(source: Error) -> Error

Converts to this type from the input type.
§

impl From<InvalidDNSNameError> for Error

§

fn from(error: InvalidDNSNameError) -> Error

Converts to this type from the input type.
§

impl From<MigrateError> for Error

§

fn from(error: MigrateError) -> Error

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/dev/enum.Login.html b/db_sqlx_maria/dev/enum.Login.html index cf18d10c..0696772a 100644 --- a/db_sqlx_maria/dev/enum.Login.html +++ b/db_sqlx_maria/dev/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_maria::dev - Rust

Enum db_sqlx_maria::dev::Login

pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_maria::dev - Rust

Enum db_sqlx_maria::dev::Login

pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/errors/enum.DBError.html b/db_sqlx_maria/dev/errors/enum.DBError.html index 62ddf06d..a7a95c46 100644 --- a/db_sqlx_maria/dev/errors/enum.DBError.html +++ b/db_sqlx_maria/dev/errors/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_maria::dev::errors - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_maria::dev::errors - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/dev/errors/index.html b/db_sqlx_maria/dev/errors/index.html index b7629503..df36bc6e 100644 --- a/db_sqlx_maria/dev/errors/index.html +++ b/db_sqlx_maria/dev/errors/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::dev::errors - Rust

Module db_sqlx_maria::dev::errors

Expand description

represents all the ways a trait can fail using this crate

-

Enums

Error data structure grouping various error subtypes

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_maria::dev::errors - Rust

Module db_sqlx_maria::dev::errors

Expand description

represents all the ways a trait can fail using this crate

+

Enums

  • Error data structure grouping various error subtypes

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_maria/dev/errors/sidebar-items.js b/db_sqlx_maria/dev/errors/sidebar-items.js index 48f114ec..f42d6190 100644 --- a/db_sqlx_maria/dev/errors/sidebar-items.js +++ b/db_sqlx_maria/dev/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/errors/type.BoxDynError.html b/db_sqlx_maria/dev/errors/type.BoxDynError.html index 0f371bf3..96d8c807 100644 --- a/db_sqlx_maria/dev/errors/type.BoxDynError.html +++ b/db_sqlx_maria/dev/errors/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_maria::dev::errors - Rust

Type Definition db_sqlx_maria::dev::errors::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_maria::dev::errors - Rust

Type Definition db_sqlx_maria::dev::errors::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/errors/type.DBResult.html b/db_sqlx_maria/dev/errors/type.DBResult.html index 9de11dac..88d93148 100644 --- a/db_sqlx_maria/dev/errors/type.DBResult.html +++ b/db_sqlx_maria/dev/errors/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_maria::dev::errors - Rust

Type Definition db_sqlx_maria::dev::errors::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_maria::dev::errors - Rust

Type Definition db_sqlx_maria::dev::errors::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/index.html b/db_sqlx_maria/dev/index.html index a3bf5060..e8566f06 100644 --- a/db_sqlx_maria/dev/index.html +++ b/db_sqlx_maria/dev/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::dev - Rust

Module db_sqlx_maria::dev

source ·

Re-exports

pub use super::Database;
pub use super::errors::*;

Modules

useful imports for supporting a new database
represents all the ways a trait can fail using this crate
meta operations like migration and connecting to a database
useful imports for users working with a supported database
Test utilities

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
Represents all the ways a method can fail within SQLx.
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure

Attribute Macros

\ No newline at end of file +db_sqlx_maria::dev - Rust

Module db_sqlx_maria::dev

source ·

Re-exports

Modules

  • useful imports for supporting a new database
  • represents all the ways a trait can fail using this crate
  • meta operations like migration and connecting to a database
  • useful imports for users working with a supported database
  • Test utilities

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • Represents all the ways a method can fail within SQLx.
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure

Attribute Macros

\ No newline at end of file diff --git a/db_sqlx_maria/dev/ops/index.html b/db_sqlx_maria/dev/ops/index.html index 4a5411a5..4230dfb7 100644 --- a/db_sqlx_maria/dev/ops/index.html +++ b/db_sqlx_maria/dev/ops/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::dev::ops - Rust

Module db_sqlx_maria::dev::ops

Expand description

meta operations like migration and connecting to a database

-

Traits

Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
database migrations
\ No newline at end of file +db_sqlx_maria::dev::ops - Rust

Module db_sqlx_maria::dev::ops

Expand description

meta operations like migration and connecting to a database

+

Traits

  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • database migrations
\ No newline at end of file diff --git a/db_sqlx_maria/dev/ops/sidebar-items.js b/db_sqlx_maria/dev/ops/sidebar-items.js index 765f2b9c..de460e00 100644 --- a/db_sqlx_maria/dev/ops/sidebar-items.js +++ b/db_sqlx_maria/dev/ops/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"trait":["Connect","DBOps","GetConnection","Migrate"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/ops/trait.Connect.html b/db_sqlx_maria/dev/ops/trait.Connect.html index 8b636dd9..ccd89f34 100644 --- a/db_sqlx_maria/dev/ops/trait.Connect.html +++ b/db_sqlx_maria/dev/ops/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::dev::ops - Rust
pub trait Connect {
+Connect in db_sqlx_maria::dev::ops - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/ops/trait.DBOps.html b/db_sqlx_maria/dev/ops/trait.DBOps.html index 5785fba0..c2e40781 100644 --- a/db_sqlx_maria/dev/ops/trait.DBOps.html +++ b/db_sqlx_maria/dev/ops/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::dev::ops - Rust

Trait db_sqlx_maria::dev::ops::DBOps

pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::dev::ops - Rust

Trait db_sqlx_maria::dev::ops::DBOps

pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/ops/trait.GetConnection.html b/db_sqlx_maria/dev/ops/trait.GetConnection.html index 602df39e..0613b541 100644 --- a/db_sqlx_maria/dev/ops/trait.GetConnection.html +++ b/db_sqlx_maria/dev/ops/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::dev::ops - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::ops - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/ops/trait.Migrate.html b/db_sqlx_maria/dev/ops/trait.Migrate.html index 8f3a7393..40c1d86f 100644 --- a/db_sqlx_maria/dev/ops/trait.Migrate.html +++ b/db_sqlx_maria/dev/ops/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::dev::ops - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::dev::ops - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/attr.async_trait.html b/db_sqlx_maria/dev/prelude/dev/attr.async_trait.html index a5740c3b..c11f3efb 100644 --- a/db_sqlx_maria/dev/prelude/dev/attr.async_trait.html +++ b/db_sqlx_maria/dev/prelude/dev/attr.async_trait.html @@ -1 +1 @@ -async_trait in db_sqlx_maria::dev::prelude::dev - Rust

Attribute Macro db_sqlx_maria::dev::prelude::dev::async_trait

#[async_trait]
\ No newline at end of file +async_trait in db_sqlx_maria::dev::prelude::dev - Rust

Attribute Macro db_sqlx_maria::dev::prelude::dev::async_trait

#[async_trait]
\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/enum.DBError.html b/db_sqlx_maria/dev/prelude/dev/enum.DBError.html index aadcafbe..098407df 100644 --- a/db_sqlx_maria/dev/prelude/dev/enum.DBError.html +++ b/db_sqlx_maria/dev/prelude/dev/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_maria::dev::prelude::dev - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_maria::dev::prelude::dev - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/enum.Login.html b/db_sqlx_maria/dev/prelude/dev/enum.Login.html index 492e1d5b..c1f0e83c 100644 --- a/db_sqlx_maria/dev/prelude/dev/enum.Login.html +++ b/db_sqlx_maria/dev/prelude/dev/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_maria::dev::prelude::dev - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_maria::dev::prelude::dev - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/index.html b/db_sqlx_maria/dev/prelude/dev/index.html index e9b9802e..373747cb 100644 --- a/db_sqlx_maria/dev/prelude/dev/index.html +++ b/db_sqlx_maria/dev/prelude/dev/index.html @@ -1,3 +1,3 @@ -db_sqlx_maria::dev::prelude::dev - Rust

Module db_sqlx_maria::dev::prelude::dev

Expand description

useful imports for supporting a new database

-

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure

Attribute Macros

\ No newline at end of file +db_sqlx_maria::dev::prelude::dev - Rust

Module db_sqlx_maria::dev::prelude::dev

Expand description

useful imports for supporting a new database

+

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure

Attribute Macros

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/sidebar-items.js b/db_sqlx_maria/dev/prelude/dev/sidebar-items.js index b985d78d..1ac3f957 100644 --- a/db_sqlx_maria/dev/prelude/dev/sidebar-items.js +++ b/db_sqlx_maria/dev/prelude/dev/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"attr":["async_trait"],"enum":["DBError","Login"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.AddNotification.html b/db_sqlx_maria/dev/prelude/dev/struct.AddNotification.html index 573f6225..52fd4911 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.AddNotification.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_maria::dev::prelude::dev - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_maria::dev::prelude::dev - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

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

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

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

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

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.Captcha.html b/db_sqlx_maria/dev/prelude/dev/struct.Captcha.html index 4f1737df..a973122d 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.Captcha.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

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

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

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

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

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.CreateCaptcha.html b/db_sqlx_maria/dev/prelude/dev/struct.CreateCaptcha.html index acd4c066..5966001c 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.CreateCaptcha.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_maria::dev::prelude::dev - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_maria::dev::prelude::dev - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

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

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

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

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

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.Level.html b/db_sqlx_maria/dev/prelude/dev/struct.Level.html index 3230f25b..0c0ef102 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.Level.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.NameHash.html b/db_sqlx_maria/dev/prelude/dev/struct.NameHash.html index d64eb7ef..5e90afc7 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.NameHash.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_maria::dev::prelude::dev - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_maria::dev::prelude::dev - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

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

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

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.Notification.html b/db_sqlx_maria/dev/prelude/dev/struct.Notification.html index 57138038..fce79bc9 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.Notification.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

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

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

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

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

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.Register.html b/db_sqlx_maria/dev/prelude/dev/struct.Register.html index 000df49c..8f45771a 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.Register.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

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

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

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.Secret.html b/db_sqlx_maria/dev/prelude/dev/struct.Secret.html index 31447048..9bc121a3 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.Secret.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_maria::dev::prelude::dev - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

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

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

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

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

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.StatsUnixTimestamp.html b/db_sqlx_maria/dev/prelude/dev/struct.StatsUnixTimestamp.html index de45325f..b9c5178c 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_maria::dev::prelude::dev - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_maria::dev::prelude::dev - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

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

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

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

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

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.TrafficPattern.html b/db_sqlx_maria/dev/prelude/dev/struct.TrafficPattern.html index f16f6d61..688185d2 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.TrafficPattern.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_maria::dev::prelude::dev - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_maria::dev::prelude::dev - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

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

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

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

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

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/struct.UpdateEmail.html b/db_sqlx_maria/dev/prelude/dev/struct.UpdateEmail.html index c8c0d51d..cbdc0bf1 100644 --- a/db_sqlx_maria/dev/prelude/dev/struct.UpdateEmail.html +++ b/db_sqlx_maria/dev/prelude/dev/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_maria::dev::prelude::dev - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_maria::dev::prelude::dev - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

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

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

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/trait.CloneSPDatabase.html b/db_sqlx_maria/dev/prelude/dev/trait.CloneSPDatabase.html index ebd9df32..3c30f68a 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_maria::dev::prelude::dev - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_maria::dev::prelude::dev - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/trait.Connect.html b/db_sqlx_maria/dev/prelude/dev/trait.Connect.html index fd919b69..f5f5ecd7 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.Connect.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::dev::prelude::dev - Rust
pub trait Connect {
+Connect in db_sqlx_maria::dev::prelude::dev - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/trait.DBOps.html b/db_sqlx_maria/dev/prelude/dev/trait.DBOps.html index 7b6786e8..0ebf6922 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.DBOps.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::dev::prelude::dev - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::dev::prelude::dev - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/trait.GetConnection.html b/db_sqlx_maria/dev/prelude/dev/trait.GetConnection.html index e1d0b5b3..8dd5e68c 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.GetConnection.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::dev::prelude::dev - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::prelude::dev - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html b/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html index b53d7ede..bcac21f9 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_maria::dev::prelude::dev - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_maria::dev::prelude::dev - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/trait.Migrate.html b/db_sqlx_maria/dev/prelude/dev/trait.Migrate.html index 89af9183..a9c65e65 100644 --- a/db_sqlx_maria/dev/prelude/dev/trait.Migrate.html +++ b/db_sqlx_maria/dev/prelude/dev/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::dev::prelude::dev - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::dev::prelude::dev - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/type.BoxDynError.html b/db_sqlx_maria/dev/prelude/dev/type.BoxDynError.html index 7ae20b09..6f978aa9 100644 --- a/db_sqlx_maria/dev/prelude/dev/type.BoxDynError.html +++ b/db_sqlx_maria/dev/prelude/dev/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_maria::dev::prelude::dev - Rust

Type Definition db_sqlx_maria::dev::prelude::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_maria::dev::prelude::dev - Rust

Type Definition db_sqlx_maria::dev::prelude::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/dev/type.DBResult.html b/db_sqlx_maria/dev/prelude/dev/type.DBResult.html index 26ad9742..768ae1e7 100644 --- a/db_sqlx_maria/dev/prelude/dev/type.DBResult.html +++ b/db_sqlx_maria/dev/prelude/dev/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_maria::dev::prelude::dev - Rust

Type Definition db_sqlx_maria::dev::prelude::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_maria::dev::prelude::dev - Rust

Type Definition db_sqlx_maria::dev::prelude::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/enum.DBError.html b/db_sqlx_maria/dev/prelude/enum.DBError.html index a6790061..0322fb29 100644 --- a/db_sqlx_maria/dev/prelude/enum.DBError.html +++ b/db_sqlx_maria/dev/prelude/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_maria::dev::prelude - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_maria::dev::prelude - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/enum.Login.html b/db_sqlx_maria/dev/prelude/enum.Login.html index 3bde0128..6d7b5df0 100644 --- a/db_sqlx_maria/dev/prelude/enum.Login.html +++ b/db_sqlx_maria/dev/prelude/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_maria::dev::prelude - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_maria::dev::prelude - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/index.html b/db_sqlx_maria/dev/prelude/index.html index f0980cc3..cff779fc 100644 --- a/db_sqlx_maria/dev/prelude/index.html +++ b/db_sqlx_maria/dev/prelude/index.html @@ -1,3 +1,3 @@ -db_sqlx_maria::dev::prelude - Rust

Module db_sqlx_maria::dev::prelude

Expand description

useful imports for users working with a supported database

-

Modules

useful imports for supporting a new database

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_maria::dev::prelude - Rust

Module db_sqlx_maria::dev::prelude

Expand description

useful imports for users working with a supported database

+

Modules

  • useful imports for supporting a new database

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/sidebar-items.js b/db_sqlx_maria/dev/prelude/sidebar-items.js index 65f35589..76a3072f 100644 --- a/db_sqlx_maria/dev/prelude/sidebar-items.js +++ b/db_sqlx_maria/dev/prelude/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError","Login"],"mod":["dev"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.AddNotification.html b/db_sqlx_maria/dev/prelude/struct.AddNotification.html index 2d07aa33..c8cccb82 100644 --- a/db_sqlx_maria/dev/prelude/struct.AddNotification.html +++ b/db_sqlx_maria/dev/prelude/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_maria::dev::prelude - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_maria::dev::prelude - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

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

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

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

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

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.Captcha.html b/db_sqlx_maria/dev/prelude/struct.Captcha.html index 2e333ec3..e8628765 100644 --- a/db_sqlx_maria/dev/prelude/struct.Captcha.html +++ b/db_sqlx_maria/dev/prelude/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_maria::dev::prelude - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_maria::dev::prelude - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

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

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

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

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

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.CreateCaptcha.html b/db_sqlx_maria/dev/prelude/struct.CreateCaptcha.html index f3d12c32..33bd2b08 100644 --- a/db_sqlx_maria/dev/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_maria/dev/prelude/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_maria::dev::prelude - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_maria::dev::prelude - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

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

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

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

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

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.Level.html b/db_sqlx_maria/dev/prelude/struct.Level.html index da50d6f7..cdf6cd61 100644 --- a/db_sqlx_maria/dev/prelude/struct.Level.html +++ b/db_sqlx_maria/dev/prelude/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_maria::dev::prelude - Rust
pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_maria::dev::prelude - Rust
pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.NameHash.html b/db_sqlx_maria/dev/prelude/struct.NameHash.html index 78436c47..4188c3f2 100644 --- a/db_sqlx_maria/dev/prelude/struct.NameHash.html +++ b/db_sqlx_maria/dev/prelude/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_maria::dev::prelude - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_maria::dev::prelude - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

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

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

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.Notification.html b/db_sqlx_maria/dev/prelude/struct.Notification.html index c68dbb34..fcf525b8 100644 --- a/db_sqlx_maria/dev/prelude/struct.Notification.html +++ b/db_sqlx_maria/dev/prelude/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_maria::dev::prelude - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_maria::dev::prelude - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

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

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

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

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

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.Register.html b/db_sqlx_maria/dev/prelude/struct.Register.html index 6ac491bc..870ed20a 100644 --- a/db_sqlx_maria/dev/prelude/struct.Register.html +++ b/db_sqlx_maria/dev/prelude/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_maria::dev::prelude - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_maria::dev::prelude - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

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

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

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.Secret.html b/db_sqlx_maria/dev/prelude/struct.Secret.html index 83493613..6da3cc93 100644 --- a/db_sqlx_maria/dev/prelude/struct.Secret.html +++ b/db_sqlx_maria/dev/prelude/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_maria::dev::prelude - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_maria::dev::prelude - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

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

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

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

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

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_maria/dev/prelude/struct.StatsUnixTimestamp.html index ac6682f3..19be445e 100644 --- a/db_sqlx_maria/dev/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_maria/dev/prelude/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_maria::dev::prelude - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_maria::dev::prelude - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

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

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

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

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

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.TrafficPattern.html b/db_sqlx_maria/dev/prelude/struct.TrafficPattern.html index 8e3d4bbc..3f9c0cb1 100644 --- a/db_sqlx_maria/dev/prelude/struct.TrafficPattern.html +++ b/db_sqlx_maria/dev/prelude/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_maria::dev::prelude - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_maria::dev::prelude - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

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

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

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

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

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/struct.UpdateEmail.html b/db_sqlx_maria/dev/prelude/struct.UpdateEmail.html index 75876654..da169738 100644 --- a/db_sqlx_maria/dev/prelude/struct.UpdateEmail.html +++ b/db_sqlx_maria/dev/prelude/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_maria::dev::prelude - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_maria::dev::prelude - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

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

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

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/trait.CloneSPDatabase.html b/db_sqlx_maria/dev/prelude/trait.CloneSPDatabase.html index 43e2626a..3690890b 100644 --- a/db_sqlx_maria/dev/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_maria/dev/prelude/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_maria::dev::prelude - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_maria::dev::prelude - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/trait.Connect.html b/db_sqlx_maria/dev/prelude/trait.Connect.html index 8bca16a9..525a1d0a 100644 --- a/db_sqlx_maria/dev/prelude/trait.Connect.html +++ b/db_sqlx_maria/dev/prelude/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::dev::prelude - Rust
pub trait Connect {
+Connect in db_sqlx_maria::dev::prelude - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/trait.DBOps.html b/db_sqlx_maria/dev/prelude/trait.DBOps.html index 9948a444..9beeb0ae 100644 --- a/db_sqlx_maria/dev/prelude/trait.DBOps.html +++ b/db_sqlx_maria/dev/prelude/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::dev::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::dev::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/trait.GetConnection.html b/db_sqlx_maria/dev/prelude/trait.GetConnection.html index cf3f12e7..35153741 100644 --- a/db_sqlx_maria/dev/prelude/trait.GetConnection.html +++ b/db_sqlx_maria/dev/prelude/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::dev::prelude - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev::prelude - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/trait.MCDatabase.html b/db_sqlx_maria/dev/prelude/trait.MCDatabase.html index fbd6e580..abb23d24 100644 --- a/db_sqlx_maria/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/prelude/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_maria::dev::prelude - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_maria::dev::prelude - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/trait.Migrate.html b/db_sqlx_maria/dev/prelude/trait.Migrate.html index a11ea4ec..5b17df74 100644 --- a/db_sqlx_maria/dev/prelude/trait.Migrate.html +++ b/db_sqlx_maria/dev/prelude/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::dev::prelude - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::dev::prelude - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/type.BoxDynError.html b/db_sqlx_maria/dev/prelude/type.BoxDynError.html index a009126d..e111249d 100644 --- a/db_sqlx_maria/dev/prelude/type.BoxDynError.html +++ b/db_sqlx_maria/dev/prelude/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_maria::dev::prelude - Rust

Type Definition db_sqlx_maria::dev::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_maria::dev::prelude - Rust

Type Definition db_sqlx_maria::dev::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/prelude/type.DBResult.html b/db_sqlx_maria/dev/prelude/type.DBResult.html index 02ef9c15..97fa5d7e 100644 --- a/db_sqlx_maria/dev/prelude/type.DBResult.html +++ b/db_sqlx_maria/dev/prelude/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_maria::dev::prelude - Rust

Type Definition db_sqlx_maria::dev::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_maria::dev::prelude - Rust

Type Definition db_sqlx_maria::dev::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/sidebar-items.js b/db_sqlx_maria/dev/sidebar-items.js index 4b939316..f764cda3 100644 --- a/db_sqlx_maria/dev/sidebar-items.js +++ b/db_sqlx_maria/dev/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Error","Represents all the ways a method can fail within SQLx."],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"attr":["async_trait"],"enum":["DBError","Error","Login"],"mod":["dev","errors","ops","prelude","tests"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.AddNotification.html b/db_sqlx_maria/dev/struct.AddNotification.html index 2efb6941..529624c4 100644 --- a/db_sqlx_maria/dev/struct.AddNotification.html +++ b/db_sqlx_maria/dev/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_maria::dev - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_maria::dev - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

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

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

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

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

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.Captcha.html b/db_sqlx_maria/dev/struct.Captcha.html index 2007055e..e53db2db 100644 --- a/db_sqlx_maria/dev/struct.Captcha.html +++ b/db_sqlx_maria/dev/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::Captcha

pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::Captcha

pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

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

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

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

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

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.CreateCaptcha.html b/db_sqlx_maria/dev/struct.CreateCaptcha.html index 7571abfe..256f039d 100644 --- a/db_sqlx_maria/dev/struct.CreateCaptcha.html +++ b/db_sqlx_maria/dev/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_maria::dev - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_maria::dev - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

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

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

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

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

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.Level.html b/db_sqlx_maria/dev/struct.Level.html index 56f84a67..56f5eea8 100644 --- a/db_sqlx_maria/dev/struct.Level.html +++ b/db_sqlx_maria/dev/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::Level

pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::Level

pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.NameHash.html b/db_sqlx_maria/dev/struct.NameHash.html index 2cfd0788..f93d36b0 100644 --- a/db_sqlx_maria/dev/struct.NameHash.html +++ b/db_sqlx_maria/dev/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::NameHash

pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::NameHash

pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

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

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

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.Notification.html b/db_sqlx_maria/dev/struct.Notification.html index 2e04f9e9..c70e78bd 100644 --- a/db_sqlx_maria/dev/struct.Notification.html +++ b/db_sqlx_maria/dev/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_maria::dev - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_maria::dev - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

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

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

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

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

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.Register.html b/db_sqlx_maria/dev/struct.Register.html index fd366462..e0df4a50 100644 --- a/db_sqlx_maria/dev/struct.Register.html +++ b/db_sqlx_maria/dev/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::Register

pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::Register

pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

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

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

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.Secret.html b/db_sqlx_maria/dev/struct.Secret.html index 782e3ab0..55e10fd0 100644 --- a/db_sqlx_maria/dev/struct.Secret.html +++ b/db_sqlx_maria/dev/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::Secret

pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_maria::dev - Rust

Struct db_sqlx_maria::dev::Secret

pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

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

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

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

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

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.StatsUnixTimestamp.html b/db_sqlx_maria/dev/struct.StatsUnixTimestamp.html index c7420138..f487b9e8 100644 --- a/db_sqlx_maria/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_maria/dev/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_maria::dev - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_maria::dev - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

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

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

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

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

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.TrafficPattern.html b/db_sqlx_maria/dev/struct.TrafficPattern.html index 737ffc5c..4739aa2a 100644 --- a/db_sqlx_maria/dev/struct.TrafficPattern.html +++ b/db_sqlx_maria/dev/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_maria::dev - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_maria::dev - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

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

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

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

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

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/struct.UpdateEmail.html b/db_sqlx_maria/dev/struct.UpdateEmail.html index 4798fe3a..d9093c88 100644 --- a/db_sqlx_maria/dev/struct.UpdateEmail.html +++ b/db_sqlx_maria/dev/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_maria::dev - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_maria::dev - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

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

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

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/tests/fn.database_works.html b/db_sqlx_maria/dev/tests/fn.database_works.html index 744b46f6..b6c5aedd 100644 --- a/db_sqlx_maria/dev/tests/fn.database_works.html +++ b/db_sqlx_maria/dev/tests/fn.database_works.html @@ -1,2 +1,10 @@ -database_works in db_sqlx_maria::dev::tests - Rust
pub async fn database_works<T, 'a>(
    db: &T,
    p: &Register<'a>,
    c: &CreateCaptcha<'a>,
    l: &[Level],
    tp: &TrafficPattern,
    an: &AddNotification<'a>
) -> impl Future<Output = ()>where
    T: MCDatabase,
Expand description

test all database functions

-
\ No newline at end of file +database_works in db_sqlx_maria::dev::tests - Rust
pub async fn database_works<T, 'a>(
+    db: &T,
+    p: &Register<'a>,
+    c: &CreateCaptcha<'a>,
+    l: &[Level],
+    tp: &TrafficPattern,
+    an: &AddNotification<'a>
+) -> impl Future<Output = ()>where
+    T: MCDatabase,
Expand description

test all database functions

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/tests/index.html b/db_sqlx_maria/dev/tests/index.html index 9e39b33d..8da59085 100644 --- a/db_sqlx_maria/dev/tests/index.html +++ b/db_sqlx_maria/dev/tests/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::dev::tests - Rust

Module db_sqlx_maria::dev::tests

Expand description

Test utilities

-

Functions

test all database functions
\ No newline at end of file +db_sqlx_maria::dev::tests - Rust

Module db_sqlx_maria::dev::tests

Expand description

Test utilities

+

Functions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/tests/sidebar-items.js b/db_sqlx_maria/dev/tests/sidebar-items.js index 4939af2f..b8901262 100644 --- a/db_sqlx_maria/dev/tests/sidebar-items.js +++ b/db_sqlx_maria/dev/tests/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["database_works","test all database functions"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["database_works"]}; \ No newline at end of file diff --git a/db_sqlx_maria/dev/trait.CloneSPDatabase.html b/db_sqlx_maria/dev/trait.CloneSPDatabase.html index 5705bb7d..3d1cc24b 100644 --- a/db_sqlx_maria/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_maria/dev/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_maria::dev - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_maria::dev - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_maria/dev/trait.Connect.html b/db_sqlx_maria/dev/trait.Connect.html index 6030bf02..b06d0bda 100644 --- a/db_sqlx_maria/dev/trait.Connect.html +++ b/db_sqlx_maria/dev/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::dev - Rust
pub trait Connect {
+Connect in db_sqlx_maria::dev - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/dev/trait.DBOps.html b/db_sqlx_maria/dev/trait.DBOps.html index cfea1dd4..0c825c98 100644 --- a/db_sqlx_maria/dev/trait.DBOps.html +++ b/db_sqlx_maria/dev/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::dev - Rust

Trait db_sqlx_maria::dev::DBOps

pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::dev - Rust

Trait db_sqlx_maria::dev::DBOps

pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/trait.GetConnection.html b/db_sqlx_maria/dev/trait.GetConnection.html index d15daccc..0a86d85d 100644 --- a/db_sqlx_maria/dev/trait.GetConnection.html +++ b/db_sqlx_maria/dev/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::dev - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::dev - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/trait.MCDatabase.html b/db_sqlx_maria/dev/trait.MCDatabase.html index a2f5a038..a9d05d36 100644 --- a/db_sqlx_maria/dev/trait.MCDatabase.html +++ b/db_sqlx_maria/dev/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_maria::dev - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_maria::dev - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/trait.Migrate.html b/db_sqlx_maria/dev/trait.Migrate.html index d1c79c1b..4a30462a 100644 --- a/db_sqlx_maria/dev/trait.Migrate.html +++ b/db_sqlx_maria/dev/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::dev - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::dev - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/dev/type.BoxDynError.html b/db_sqlx_maria/dev/type.BoxDynError.html index 6cb22406..e46e98f4 100644 --- a/db_sqlx_maria/dev/type.BoxDynError.html +++ b/db_sqlx_maria/dev/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_maria::dev - Rust

Type Definition db_sqlx_maria::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_maria::dev - Rust

Type Definition db_sqlx_maria::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_maria/dev/type.DBResult.html b/db_sqlx_maria/dev/type.DBResult.html index 098542d0..aa3999ef 100644 --- a/db_sqlx_maria/dev/type.DBResult.html +++ b/db_sqlx_maria/dev/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_maria::dev - Rust

Type Definition db_sqlx_maria::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_maria::dev - Rust

Type Definition db_sqlx_maria::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_maria/enum.ConnectionOptions.html b/db_sqlx_maria/enum.ConnectionOptions.html index 0e7c93aa..0aacc81b 100644 --- a/db_sqlx_maria/enum.ConnectionOptions.html +++ b/db_sqlx_maria/enum.ConnectionOptions.html @@ -1,16 +1,27 @@ -ConnectionOptions in db_sqlx_maria - Rust
pub enum ConnectionOptions {
+ConnectionOptions in db_sqlx_maria - Rust
pub enum ConnectionOptions {
     Fresh(Fresh),
     Existing(Conn),
-}
Expand description

Connect to database

+}
Expand description

Connect to database

Variants§

§

Fresh(Fresh)

fresh connection

§

Existing(Conn)

existing connection

-

Trait Implementations§

database specific pool-type
database specific error-type -create connection pool

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).

+

Trait Implementations§

source§

impl Connect for ConnectionOptions

§

type Pool = Database

database specific pool-type
source§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>where + Self: 'async_trait,

database specific error-type +create connection pool

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/errors/fn.map_register_err.html b/db_sqlx_maria/errors/fn.map_register_err.html index 38e518b6..9946b374 100644 --- a/db_sqlx_maria/errors/fn.map_register_err.html +++ b/db_sqlx_maria/errors/fn.map_register_err.html @@ -1,2 +1,2 @@ -map_register_err in db_sqlx_maria::errors - Rust
pub fn map_register_err(e: Error) -> DBError
Expand description

map postgres errors to DBError types

-
\ No newline at end of file +map_register_err in db_sqlx_maria::errors - Rust
pub fn map_register_err(e: Error) -> DBError
Expand description

map postgres errors to DBError types

+
\ No newline at end of file diff --git a/db_sqlx_maria/errors/fn.map_row_not_found_err.html b/db_sqlx_maria/errors/fn.map_row_not_found_err.html index f4f81e2d..374b9a01 100644 --- a/db_sqlx_maria/errors/fn.map_row_not_found_err.html +++ b/db_sqlx_maria/errors/fn.map_row_not_found_err.html @@ -1,2 +1,2 @@ -map_row_not_found_err in db_sqlx_maria::errors - Rust
pub fn map_row_not_found_err(e: Error, row_not_found: DBError) -> DBError
Expand description

map custom row not found error to DB error

-
\ No newline at end of file +map_row_not_found_err in db_sqlx_maria::errors - Rust
pub fn map_row_not_found_err(e: Error, row_not_found: DBError) -> DBError
Expand description

map custom row not found error to DB error

+
\ No newline at end of file diff --git a/db_sqlx_maria/errors/index.html b/db_sqlx_maria/errors/index.html index f69ff68b..303364a6 100644 --- a/db_sqlx_maria/errors/index.html +++ b/db_sqlx_maria/errors/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::errors - Rust

Module db_sqlx_maria::errors

source ·
Expand description

Error-handling utilities

-

Functions

map postgres errors to DBError types
map custom row not found error to DB error
\ No newline at end of file +db_sqlx_maria::errors - Rust

Module db_sqlx_maria::errors

source ·
Expand description

Error-handling utilities

+

Functions

\ No newline at end of file diff --git a/db_sqlx_maria/errors/sidebar-items.js b/db_sqlx_maria/errors/sidebar-items.js index 21f20eeb..76e22aaf 100644 --- a/db_sqlx_maria/errors/sidebar-items.js +++ b/db_sqlx_maria/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["map_register_err","map postgres errors to DBError types"],["map_row_not_found_err","map custom row not found error to DB error"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["map_register_err","map_row_not_found_err"]}; \ No newline at end of file diff --git a/db_sqlx_maria/index.html b/db_sqlx_maria/index.html index 175575ff..28044751 100644 --- a/db_sqlx_maria/index.html +++ b/db_sqlx_maria/index.html @@ -1 +1 @@ -db_sqlx_maria - Rust

Crate db_sqlx_maria

source ·

Modules

Error-handling utilities

Structs

Use an existing database pool
Represents notification

Enums

Connect to database
\ No newline at end of file +db_sqlx_maria - Rust

Crate db_sqlx_maria

source ·

Modules

Structs

Enums

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/enum.DBError.html b/db_sqlx_maria/prelude/enum.DBError.html index bba6d5d8..fee8eafc 100644 --- a/db_sqlx_maria/prelude/enum.DBError.html +++ b/db_sqlx_maria/prelude/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_maria::prelude - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_maria::prelude - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/prelude/enum.Login.html b/db_sqlx_maria/prelude/enum.Login.html index e42bef6e..0d2a5c41 100644 --- a/db_sqlx_maria/prelude/enum.Login.html +++ b/db_sqlx_maria/prelude/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_maria::prelude - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_maria::prelude - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/index.html b/db_sqlx_maria/prelude/index.html index 1e6ef6c9..f008958d 100644 --- a/db_sqlx_maria/prelude/index.html +++ b/db_sqlx_maria/prelude/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::prelude - Rust

Module db_sqlx_maria::prelude

source ·

Re-exports

pub use super::*;

Modules

meta operations like migration and connecting to a database
Test utilities

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_maria::prelude - Rust

Module db_sqlx_maria::prelude

source ·

Re-exports

Modules

  • meta operations like migration and connecting to a database
  • Test utilities

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_maria/prelude/ops/index.html b/db_sqlx_maria/prelude/ops/index.html index be81a424..589d3201 100644 --- a/db_sqlx_maria/prelude/ops/index.html +++ b/db_sqlx_maria/prelude/ops/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::prelude::ops - Rust

Module db_sqlx_maria::prelude::ops

Expand description

meta operations like migration and connecting to a database

-

Traits

Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
database migrations
\ No newline at end of file +db_sqlx_maria::prelude::ops - Rust

Module db_sqlx_maria::prelude::ops

Expand description

meta operations like migration and connecting to a database

+

Traits

  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • database migrations
\ No newline at end of file diff --git a/db_sqlx_maria/prelude/ops/sidebar-items.js b/db_sqlx_maria/prelude/ops/sidebar-items.js index 765f2b9c..de460e00 100644 --- a/db_sqlx_maria/prelude/ops/sidebar-items.js +++ b/db_sqlx_maria/prelude/ops/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"trait":["Connect","DBOps","GetConnection","Migrate"]}; \ No newline at end of file diff --git a/db_sqlx_maria/prelude/ops/trait.Connect.html b/db_sqlx_maria/prelude/ops/trait.Connect.html index 64a9a300..74f36ec0 100644 --- a/db_sqlx_maria/prelude/ops/trait.Connect.html +++ b/db_sqlx_maria/prelude/ops/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::prelude::ops - Rust
pub trait Connect {
+Connect in db_sqlx_maria::prelude::ops - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/ops/trait.DBOps.html b/db_sqlx_maria/prelude/ops/trait.DBOps.html index 40b5778c..91b7ba91 100644 --- a/db_sqlx_maria/prelude/ops/trait.DBOps.html +++ b/db_sqlx_maria/prelude/ops/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::prelude::ops - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::prelude::ops - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/ops/trait.GetConnection.html b/db_sqlx_maria/prelude/ops/trait.GetConnection.html index 8ba897fd..fd07591f 100644 --- a/db_sqlx_maria/prelude/ops/trait.GetConnection.html +++ b/db_sqlx_maria/prelude/ops/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::prelude::ops - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::prelude::ops - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/ops/trait.Migrate.html b/db_sqlx_maria/prelude/ops/trait.Migrate.html index 6e172d5a..8d1ecb8c 100644 --- a/db_sqlx_maria/prelude/ops/trait.Migrate.html +++ b/db_sqlx_maria/prelude/ops/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::prelude::ops - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::prelude::ops - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/sidebar-items.js b/db_sqlx_maria/prelude/sidebar-items.js index e7ca825e..98baebce 100644 --- a/db_sqlx_maria/prelude/sidebar-items.js +++ b/db_sqlx_maria/prelude/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["ops","meta operations like migration and connecting to a database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError","Login"],"mod":["ops","tests"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.AddNotification.html b/db_sqlx_maria/prelude/struct.AddNotification.html index 0213158c..2590f3c4 100644 --- a/db_sqlx_maria/prelude/struct.AddNotification.html +++ b/db_sqlx_maria/prelude/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_maria::prelude - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_maria::prelude - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

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

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

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

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

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.Captcha.html b/db_sqlx_maria/prelude/struct.Captcha.html index 25e2df65..0fa23e35 100644 --- a/db_sqlx_maria/prelude/struct.Captcha.html +++ b/db_sqlx_maria/prelude/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_maria::prelude - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_maria::prelude - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

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

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

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

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

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.CreateCaptcha.html b/db_sqlx_maria/prelude/struct.CreateCaptcha.html index 3527fffe..7b7bb1c4 100644 --- a/db_sqlx_maria/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_maria/prelude/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_maria::prelude - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_maria::prelude - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

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

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

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

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

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.Level.html b/db_sqlx_maria/prelude/struct.Level.html index 7754dd09..e4020ef5 100644 --- a/db_sqlx_maria/prelude/struct.Level.html +++ b/db_sqlx_maria/prelude/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_maria::prelude - Rust
pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_maria::prelude - Rust
pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.NameHash.html b/db_sqlx_maria/prelude/struct.NameHash.html index 95d9c11b..88684920 100644 --- a/db_sqlx_maria/prelude/struct.NameHash.html +++ b/db_sqlx_maria/prelude/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_maria::prelude - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_maria::prelude - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

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

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

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.Notification.html b/db_sqlx_maria/prelude/struct.Notification.html index a6904faf..fc943fc9 100644 --- a/db_sqlx_maria/prelude/struct.Notification.html +++ b/db_sqlx_maria/prelude/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_maria::prelude - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_maria::prelude - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

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

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

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

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

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.Register.html b/db_sqlx_maria/prelude/struct.Register.html index df928de7..21456394 100644 --- a/db_sqlx_maria/prelude/struct.Register.html +++ b/db_sqlx_maria/prelude/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_maria::prelude - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_maria::prelude - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

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

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

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.Secret.html b/db_sqlx_maria/prelude/struct.Secret.html index ea6c5381..d31b71df 100644 --- a/db_sqlx_maria/prelude/struct.Secret.html +++ b/db_sqlx_maria/prelude/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_maria::prelude - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_maria::prelude - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

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

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

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

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

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_maria/prelude/struct.StatsUnixTimestamp.html index 08676e56..90566962 100644 --- a/db_sqlx_maria/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_maria/prelude/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_maria::prelude - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_maria::prelude - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

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

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

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

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

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.TrafficPattern.html b/db_sqlx_maria/prelude/struct.TrafficPattern.html index c16f8415..dc9c5526 100644 --- a/db_sqlx_maria/prelude/struct.TrafficPattern.html +++ b/db_sqlx_maria/prelude/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_maria::prelude - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_maria::prelude - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

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

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

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

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

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/struct.UpdateEmail.html b/db_sqlx_maria/prelude/struct.UpdateEmail.html index 09efda93..bca73df1 100644 --- a/db_sqlx_maria/prelude/struct.UpdateEmail.html +++ b/db_sqlx_maria/prelude/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_maria::prelude - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_maria::prelude - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

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

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

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/tests/fn.database_works.html b/db_sqlx_maria/prelude/tests/fn.database_works.html index d740d134..4b9cfa62 100644 --- a/db_sqlx_maria/prelude/tests/fn.database_works.html +++ b/db_sqlx_maria/prelude/tests/fn.database_works.html @@ -1,2 +1,10 @@ -database_works in db_sqlx_maria::prelude::tests - Rust
pub async fn database_works<T, 'a>(
    db: &T,
    p: &Register<'a>,
    c: &CreateCaptcha<'a>,
    l: &[Level],
    tp: &TrafficPattern,
    an: &AddNotification<'a>
) -> impl Future<Output = ()>where
    T: MCDatabase,
Expand description

test all database functions

-
\ No newline at end of file +database_works in db_sqlx_maria::prelude::tests - Rust
pub async fn database_works<T, 'a>(
+    db: &T,
+    p: &Register<'a>,
+    c: &CreateCaptcha<'a>,
+    l: &[Level],
+    tp: &TrafficPattern,
+    an: &AddNotification<'a>
+) -> impl Future<Output = ()>where
+    T: MCDatabase,
Expand description

test all database functions

+
\ No newline at end of file diff --git a/db_sqlx_maria/prelude/tests/index.html b/db_sqlx_maria/prelude/tests/index.html index 84c9a308..a0c64070 100644 --- a/db_sqlx_maria/prelude/tests/index.html +++ b/db_sqlx_maria/prelude/tests/index.html @@ -1,2 +1,2 @@ -db_sqlx_maria::prelude::tests - Rust
Expand description

Test utilities

-

Functions

test all database functions
\ No newline at end of file +db_sqlx_maria::prelude::tests - Rust
Expand description

Test utilities

+

Functions

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/tests/sidebar-items.js b/db_sqlx_maria/prelude/tests/sidebar-items.js index 4939af2f..b8901262 100644 --- a/db_sqlx_maria/prelude/tests/sidebar-items.js +++ b/db_sqlx_maria/prelude/tests/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["database_works","test all database functions"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["database_works"]}; \ No newline at end of file diff --git a/db_sqlx_maria/prelude/trait.CloneSPDatabase.html b/db_sqlx_maria/prelude/trait.CloneSPDatabase.html index 219a607e..cc961c66 100644 --- a/db_sqlx_maria/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_maria/prelude/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_maria::prelude - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_maria::prelude - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/trait.Connect.html b/db_sqlx_maria/prelude/trait.Connect.html index 28b93ff2..c1b2ecda 100644 --- a/db_sqlx_maria/prelude/trait.Connect.html +++ b/db_sqlx_maria/prelude/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_maria::prelude - Rust
pub trait Connect {
+Connect in db_sqlx_maria::prelude - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/trait.DBOps.html b/db_sqlx_maria/prelude/trait.DBOps.html index 0b7724be..e5b2d14a 100644 --- a/db_sqlx_maria/prelude/trait.DBOps.html +++ b/db_sqlx_maria/prelude/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_maria::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_maria::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/trait.GetConnection.html b/db_sqlx_maria/prelude/trait.GetConnection.html index 7417a526..be110a85 100644 --- a/db_sqlx_maria/prelude/trait.GetConnection.html +++ b/db_sqlx_maria/prelude/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_maria::prelude - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_maria::prelude - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/trait.MCDatabase.html b/db_sqlx_maria/prelude/trait.MCDatabase.html index df6b2196..73baaefe 100644 --- a/db_sqlx_maria/prelude/trait.MCDatabase.html +++ b/db_sqlx_maria/prelude/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_maria::prelude - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_maria::prelude - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/trait.Migrate.html b/db_sqlx_maria/prelude/trait.Migrate.html index 765f4e02..37ffe79e 100644 --- a/db_sqlx_maria/prelude/trait.Migrate.html +++ b/db_sqlx_maria/prelude/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_maria::prelude - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_maria::prelude - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_maria/prelude/type.BoxDynError.html b/db_sqlx_maria/prelude/type.BoxDynError.html index 53508bee..e26e2820 100644 --- a/db_sqlx_maria/prelude/type.BoxDynError.html +++ b/db_sqlx_maria/prelude/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_maria::prelude - Rust

Type Definition db_sqlx_maria::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_maria::prelude - Rust

Type Definition db_sqlx_maria::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_maria/prelude/type.DBResult.html b/db_sqlx_maria/prelude/type.DBResult.html index bcbb7d14..5aa5dfe6 100644 --- a/db_sqlx_maria/prelude/type.DBResult.html +++ b/db_sqlx_maria/prelude/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_maria::prelude - Rust

Type Definition db_sqlx_maria::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_maria::prelude - Rust

Type Definition db_sqlx_maria::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_maria/sidebar-items.js b/db_sqlx_maria/sidebar-items.js index 9dd85c80..e12270b4 100644 --- a/db_sqlx_maria/sidebar-items.js +++ b/db_sqlx_maria/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["ConnectionOptions","Connect to database"]],"mod":[["dev",""],["errors","Error-handling utilities"],["prelude",""]],"struct":[["Conn","Use an existing database pool"],["Database",""],["Fresh",""],["InnerNotification","Represents notification"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["ConnectionOptions"],"mod":["dev","errors","prelude"],"struct":["Conn","Database","Fresh","InnerNotification"]}; \ No newline at end of file diff --git a/db_sqlx_maria/struct.Conn.html b/db_sqlx_maria/struct.Conn.html index 0ff040c3..e19d4015 100644 --- a/db_sqlx_maria/struct.Conn.html +++ b/db_sqlx_maria/struct.Conn.html @@ -1,10 +1,18 @@ -Conn in db_sqlx_maria - Rust

Struct db_sqlx_maria::Conn

source ·
pub struct Conn(pub MySqlPool);
Expand description

Use an existing database pool

-

Tuple Fields§

§0: MySqlPool

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).

+Conn in db_sqlx_maria - Rust

Struct db_sqlx_maria::Conn

source ·
pub struct Conn(pub MySqlPool);
Expand description

Use an existing database pool

+

Tuple Fields§

§0: MySqlPool

Auto Trait Implementations§

§

impl !RefUnwindSafe for Conn

§

impl Send for Conn

§

impl Sync for Conn

§

impl Unpin for Conn

§

impl !UnwindSafe for Conn

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/struct.Database.html b/db_sqlx_maria/struct.Database.html index a9bdca35..7a771330 100644 --- a/db_sqlx_maria/struct.Database.html +++ b/db_sqlx_maria/struct.Database.html @@ -1,48 +1,317 @@ -Database in db_sqlx_maria - Rust

Struct db_sqlx_maria::Database

source ·
pub struct Database {
+Database in db_sqlx_maria - Rust

Struct db_sqlx_maria::Database

source ·
pub struct Database {
     pub pool: MySqlPool,
-}

Fields§

§pool: MySqlPool

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-
database specific error-type -run migrations

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
clone DB

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).

+}

Fields§

§pool: MySqlPool

Trait Implementations§

source§

impl Clone for Database

source§

fn clone(&self) -> Database

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 MCDatabase for Database

source§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait,

ping DB

+
source§

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

register a new user

+
source§

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

delete a user

+
source§

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

check if username exists

+
source§

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get user email

+
source§

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

check if email exists

+
source§

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

update a user’s email

+
source§

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s password

+
source§

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

update user’s password

+
source§

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update username

+
source§

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s secret

+
source§

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s secret from a captcha key

+
source§

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update a user’s secret

+
source§

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

create new captcha

+
source§

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get captcha config

+
source§

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

Get all captchas belonging to user

+
source§

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update captcha metadata; doesn’t change captcha key

+
source§

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

update captcha key; doesn’t change metadata

+
source§

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

Add levels to captcha

+
source§

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

check if captcha exists

+
source§

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete all levels of a captcha

+
source§

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete captcha

+
source§

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get captcha levels

+
source§

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

Get captcha’s cooldown period

+
source§

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

Add traffic configuration

+
source§

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get traffic configuration

+
source§

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete traffic configuration

+
source§

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

create new notification

+
source§

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get all unread notifications

+
source§

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

mark a notification read

+
source§

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig fetches

+
source§

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig solves

+
source§

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig confirms

+
source§

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig fetches

+
source§

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig solves

+
source§

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig confirms

+
source§

impl Migrate for Database

source§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait,

database specific error-type +run migrations

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/struct.Fresh.html b/db_sqlx_maria/struct.Fresh.html index b6abadac..5e571214 100644 --- a/db_sqlx_maria/struct.Fresh.html +++ b/db_sqlx_maria/struct.Fresh.html @@ -1,13 +1,21 @@ -Fresh in db_sqlx_maria - Rust

Struct db_sqlx_maria::Fresh

source ·
pub struct Fresh {
+Fresh in db_sqlx_maria - Rust

Struct db_sqlx_maria::Fresh

source ·
pub struct Fresh {
     pub pool_options: MySqlPoolOptions,
-    pub disable_logging: bool,
-    pub url: String,
-}

Fields§

§pool_options: MySqlPoolOptions§disable_logging: bool§url: String

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).

+ pub disable_logging: bool, + pub url: String, +}

Fields§

§pool_options: MySqlPoolOptions§disable_logging: bool§url: String

Auto Trait Implementations§

§

impl !RefUnwindSafe for Fresh

§

impl Send for Fresh

§

impl Sync for Fresh

§

impl Unpin for Fresh

§

impl !UnwindSafe for Fresh

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_maria/struct.InnerNotification.html b/db_sqlx_maria/struct.InnerNotification.html index 6d02a79b..295dfbbb 100644 --- a/db_sqlx_maria/struct.InnerNotification.html +++ b/db_sqlx_maria/struct.InnerNotification.html @@ -1,23 +1,32 @@ -InnerNotification in db_sqlx_maria - Rust
pub struct InnerNotification {
-    pub name: String,
-    pub heading: String,
-    pub message: String,
+InnerNotification in db_sqlx_maria - Rust
pub struct InnerNotification {
+    pub name: String,
+    pub heading: String,
+    pub message: String,
     pub received: OffsetDateTime,
-    pub id: i32,
-}
Expand description

Represents notification

-

Fields§

§name: String

receiver name of the notification

-
§heading: String

heading of the notification

-
§message: String

message of the notification

+ pub id: i32, +}
Expand description

Represents notification

+

Fields§

§name: String

receiver name of the notification

+
§heading: String

heading of the notification

+
§message: String

message of the notification

§received: OffsetDateTime

when notification was received

-
§id: i32

db assigned ID of the notification

-

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
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used -by ==.
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§

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).

+
§id: i32

db assigned ID of the notification

+

Trait Implementations§

source§

impl Clone for InnerNotification

source§

fn clone(&self) -> InnerNotification

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 InnerNotification

source§

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

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
source§

impl PartialEq<InnerNotification> for InnerNotification

source§

fn eq(&self, other: &InnerNotification) -> 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 StructuralPartialEq for InnerNotification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/all.html b/db_sqlx_postgres/all.html index 6e12ac97..0b408e0c 100644 --- a/db_sqlx_postgres/all.html +++ b/db_sqlx_postgres/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Attribute Macros

Functions

Type Definitions

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Attribute Macros

Functions

Type Definitions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/attr.async_trait.html b/db_sqlx_postgres/dev/attr.async_trait.html index 612c6246..30ccc0fc 100644 --- a/db_sqlx_postgres/dev/attr.async_trait.html +++ b/db_sqlx_postgres/dev/attr.async_trait.html @@ -1 +1 @@ -async_trait in db_sqlx_postgres::dev - Rust

Attribute Macro db_sqlx_postgres::dev::async_trait

#[async_trait]
\ No newline at end of file +async_trait in db_sqlx_postgres::dev - Rust

Attribute Macro db_sqlx_postgres::dev::async_trait

#[async_trait]
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/attr.async_trait.html b/db_sqlx_postgres/dev/dev/attr.async_trait.html index ad7918c3..f7311876 100644 --- a/db_sqlx_postgres/dev/dev/attr.async_trait.html +++ b/db_sqlx_postgres/dev/dev/attr.async_trait.html @@ -1 +1 @@ -async_trait in db_sqlx_postgres::dev::dev - Rust

Attribute Macro db_sqlx_postgres::dev::dev::async_trait

#[async_trait]
\ No newline at end of file +async_trait in db_sqlx_postgres::dev::dev - Rust

Attribute Macro db_sqlx_postgres::dev::dev::async_trait

#[async_trait]
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/enum.DBError.html b/db_sqlx_postgres/dev/dev/enum.DBError.html index b04152c1..587df6e3 100644 --- a/db_sqlx_postgres/dev/dev/enum.DBError.html +++ b/db_sqlx_postgres/dev/dev/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_postgres::dev::dev - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_postgres::dev::dev - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/enum.Login.html b/db_sqlx_postgres/dev/dev/enum.Login.html index 70bf8930..7d11300d 100644 --- a/db_sqlx_postgres/dev/dev/enum.Login.html +++ b/db_sqlx_postgres/dev/dev/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_postgres::dev::dev - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_postgres::dev::dev - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/errors/enum.DBError.html b/db_sqlx_postgres/dev/dev/errors/enum.DBError.html index 39f3d19e..6e7b6e25 100644 --- a/db_sqlx_postgres/dev/dev/errors/enum.DBError.html +++ b/db_sqlx_postgres/dev/dev/errors/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_postgres::dev::dev::errors - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_postgres::dev::dev::errors - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/errors/index.html b/db_sqlx_postgres/dev/dev/errors/index.html index 35475abd..ec697e25 100644 --- a/db_sqlx_postgres/dev/dev/errors/index.html +++ b/db_sqlx_postgres/dev/dev/errors/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::dev::dev::errors - Rust
Expand description

represents all the ways a trait can fail using this crate

-

Enums

Error data structure grouping various error subtypes

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_postgres::dev::dev::errors - Rust
Expand description

represents all the ways a trait can fail using this crate

+

Enums

  • Error data structure grouping various error subtypes

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/errors/sidebar-items.js b/db_sqlx_postgres/dev/dev/errors/sidebar-items.js index 48f114ec..f42d6190 100644 --- a/db_sqlx_postgres/dev/dev/errors/sidebar-items.js +++ b/db_sqlx_postgres/dev/dev/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/errors/type.BoxDynError.html b/db_sqlx_postgres/dev/dev/errors/type.BoxDynError.html index 3d2ce2da..1ba1cd63 100644 --- a/db_sqlx_postgres/dev/dev/errors/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/dev/errors/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_postgres::dev::dev::errors - Rust

Type Definition db_sqlx_postgres::dev::dev::errors::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_postgres::dev::dev::errors - Rust

Type Definition db_sqlx_postgres::dev::dev::errors::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/errors/type.DBResult.html b/db_sqlx_postgres/dev/dev/errors/type.DBResult.html index cc48d7bf..96314cb7 100644 --- a/db_sqlx_postgres/dev/dev/errors/type.DBResult.html +++ b/db_sqlx_postgres/dev/dev/errors/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_postgres::dev::dev::errors - Rust

Type Definition db_sqlx_postgres::dev::dev::errors::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_postgres::dev::dev::errors - Rust

Type Definition db_sqlx_postgres::dev::dev::errors::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/index.html b/db_sqlx_postgres/dev/dev/index.html index c510d63a..8c3b87ec 100644 --- a/db_sqlx_postgres/dev/dev/index.html +++ b/db_sqlx_postgres/dev/dev/index.html @@ -1,3 +1,3 @@ -db_sqlx_postgres::dev::dev - Rust

Module db_sqlx_postgres::dev::dev

Expand description

useful imports for supporting a new database

-

Modules

represents all the ways a trait can fail using this crate
meta operations like migration and connecting to a database
useful imports for users working with a supported database
Test utilities

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure

Attribute Macros

\ No newline at end of file +db_sqlx_postgres::dev::dev - Rust

Module db_sqlx_postgres::dev::dev

Expand description

useful imports for supporting a new database

+

Modules

  • represents all the ways a trait can fail using this crate
  • meta operations like migration and connecting to a database
  • useful imports for users working with a supported database
  • Test utilities

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure

Attribute Macros

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/ops/index.html b/db_sqlx_postgres/dev/dev/ops/index.html index 3602fb7d..88d25498 100644 --- a/db_sqlx_postgres/dev/dev/ops/index.html +++ b/db_sqlx_postgres/dev/dev/ops/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::dev::dev::ops - Rust

Module db_sqlx_postgres::dev::dev::ops

Expand description

meta operations like migration and connecting to a database

-

Traits

Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
database migrations
\ No newline at end of file +db_sqlx_postgres::dev::dev::ops - Rust

Module db_sqlx_postgres::dev::dev::ops

Expand description

meta operations like migration and connecting to a database

+

Traits

  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • database migrations
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/ops/sidebar-items.js b/db_sqlx_postgres/dev/dev/ops/sidebar-items.js index 765f2b9c..de460e00 100644 --- a/db_sqlx_postgres/dev/dev/ops/sidebar-items.js +++ b/db_sqlx_postgres/dev/dev/ops/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"trait":["Connect","DBOps","GetConnection","Migrate"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/ops/trait.Connect.html b/db_sqlx_postgres/dev/dev/ops/trait.Connect.html index 109b5b9c..0ddace9e 100644 --- a/db_sqlx_postgres/dev/dev/ops/trait.Connect.html +++ b/db_sqlx_postgres/dev/dev/ops/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::dev::dev::ops - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::dev::dev::ops - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/ops/trait.DBOps.html b/db_sqlx_postgres/dev/dev/ops/trait.DBOps.html index 4b08fa59..d6e257c4 100644 --- a/db_sqlx_postgres/dev/dev/ops/trait.DBOps.html +++ b/db_sqlx_postgres/dev/dev/ops/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::dev::dev::ops - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::dev::dev::ops - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/ops/trait.GetConnection.html b/db_sqlx_postgres/dev/dev/ops/trait.GetConnection.html index e82d8199..f2cc4523 100644 --- a/db_sqlx_postgres/dev/dev/ops/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/dev/ops/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::dev::dev::ops - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::dev::dev::ops - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/ops/trait.Migrate.html b/db_sqlx_postgres/dev/dev/ops/trait.Migrate.html index a1a01245..7e0f78d7 100644 --- a/db_sqlx_postgres/dev/dev/ops/trait.Migrate.html +++ b/db_sqlx_postgres/dev/dev/ops/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::dev::dev::ops - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::dev::dev::ops - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/enum.DBError.html b/db_sqlx_postgres/dev/dev/prelude/enum.DBError.html index 78f1be06..3d2418f9 100644 --- a/db_sqlx_postgres/dev/dev/prelude/enum.DBError.html +++ b/db_sqlx_postgres/dev/dev/prelude/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_postgres::dev::dev::prelude - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_postgres::dev::dev::prelude - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/enum.Login.html b/db_sqlx_postgres/dev/dev/prelude/enum.Login.html index d0c289d5..2cc73d11 100644 --- a/db_sqlx_postgres/dev/dev/prelude/enum.Login.html +++ b/db_sqlx_postgres/dev/dev/prelude/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_postgres::dev::dev::prelude - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_postgres::dev::dev::prelude - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/index.html b/db_sqlx_postgres/dev/dev/prelude/index.html index 3529ea6a..bf75f037 100644 --- a/db_sqlx_postgres/dev/dev/prelude/index.html +++ b/db_sqlx_postgres/dev/dev/prelude/index.html @@ -1,3 +1,3 @@ -db_sqlx_postgres::dev::dev::prelude - Rust
Expand description

useful imports for users working with a supported database

-

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_postgres::dev::dev::prelude - Rust
Expand description

useful imports for users working with a supported database

+

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/sidebar-items.js b/db_sqlx_postgres/dev/dev/prelude/sidebar-items.js index 0cfa29d1..6b953527 100644 --- a/db_sqlx_postgres/dev/dev/prelude/sidebar-items.js +++ b/db_sqlx_postgres/dev/dev/prelude/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError","Login"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.AddNotification.html b/db_sqlx_postgres/dev/dev/prelude/struct.AddNotification.html index 26d4719b..5091582a 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

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

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

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

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

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.Captcha.html b/db_sqlx_postgres/dev/dev/prelude/struct.Captcha.html index dc64e23d..fe680682 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Captcha.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

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

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

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

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

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/dev/prelude/struct.CreateCaptcha.html index 51986048..956eb390 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

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

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

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

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

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.Level.html b/db_sqlx_postgres/dev/dev/prelude/struct.Level.html index 8c2bf1ad..a342989e 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Level.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.NameHash.html b/db_sqlx_postgres/dev/dev/prelude/struct.NameHash.html index 569e5534..cb400e66 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.NameHash.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

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

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

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html b/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html index 0970e970..eec9190a 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

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

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

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

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

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.Register.html b/db_sqlx_postgres/dev/dev/prelude/struct.Register.html index 4cf70db4..80b4c1ba 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Register.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

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

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

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.Secret.html b/db_sqlx_postgres/dev/dev/prelude/struct.Secret.html index 53aaceeb..79f18cda 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.Secret.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

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

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

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

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

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/dev/prelude/struct.StatsUnixTimestamp.html index 50050182..220c6433 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

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

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

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

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

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.TrafficPattern.html b/db_sqlx_postgres/dev/dev/prelude/struct.TrafficPattern.html index 29f91027..814e9a07 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

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

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

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

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

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/struct.UpdateEmail.html b/db_sqlx_postgres/dev/dev/prelude/struct.UpdateEmail.html index 8853dcab..0417418b 100644 --- a/db_sqlx_postgres/dev/dev/prelude/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/dev/prelude/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_postgres::dev::dev::prelude - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

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

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

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/dev/prelude/trait.CloneSPDatabase.html index 25852d42..f7d60bf8 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html b/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html index f7804770..7ded8640 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.DBOps.html b/db_sqlx_postgres/dev/dev/prelude/trait.DBOps.html index 2dc9165c..11ad8211 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.DBOps.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.GetConnection.html b/db_sqlx_postgres/dev/dev/prelude/trait.GetConnection.html index 7f4a038f..2c48c17e 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html b/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html index eacad522..2fe13eea 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_postgres::dev::dev::prelude - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html b/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html index b51b01e7..813b7347 100644 --- a/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/dev/dev/prelude/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::dev::dev::prelude - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::dev::dev::prelude - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/type.BoxDynError.html b/db_sqlx_postgres/dev/dev/prelude/type.BoxDynError.html index 28dffbdc..7512c9aa 100644 --- a/db_sqlx_postgres/dev/dev/prelude/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/dev/prelude/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_postgres::dev::dev::prelude - Rust

Type Definition db_sqlx_postgres::dev::dev::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_postgres::dev::dev::prelude - Rust

Type Definition db_sqlx_postgres::dev::dev::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/prelude/type.DBResult.html b/db_sqlx_postgres/dev/dev/prelude/type.DBResult.html index d6e03ed7..1a559e99 100644 --- a/db_sqlx_postgres/dev/dev/prelude/type.DBResult.html +++ b/db_sqlx_postgres/dev/dev/prelude/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_postgres::dev::dev::prelude - Rust

Type Definition db_sqlx_postgres::dev::dev::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_postgres::dev::dev::prelude - Rust

Type Definition db_sqlx_postgres::dev::dev::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/sidebar-items.js b/db_sqlx_postgres/dev/dev/sidebar-items.js index b05590f6..0d7e55fe 100644 --- a/db_sqlx_postgres/dev/dev/sidebar-items.js +++ b/db_sqlx_postgres/dev/dev/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"attr":["async_trait"],"enum":["DBError","Login"],"mod":["errors","ops","prelude","tests"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.AddNotification.html b/db_sqlx_postgres/dev/dev/struct.AddNotification.html index 6473f9c7..c4c1dc25 100644 --- a/db_sqlx_postgres/dev/dev/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/dev/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_postgres::dev::dev - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_postgres::dev::dev - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

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

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

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

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

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.Captcha.html b/db_sqlx_postgres/dev/dev/struct.Captcha.html index 3c8db3e0..1cd3c564 100644 --- a/db_sqlx_postgres/dev/dev/struct.Captcha.html +++ b/db_sqlx_postgres/dev/dev/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_postgres::dev::dev - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_postgres::dev::dev - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

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

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

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

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

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

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

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/dev/struct.CreateCaptcha.html index 84d26d9c..218a2a6d 100644 --- a/db_sqlx_postgres/dev/dev/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/dev/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_postgres::dev::dev - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_postgres::dev::dev - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

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

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

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

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

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.Level.html b/db_sqlx_postgres/dev/dev/struct.Level.html index f1d34a37..03b6a93e 100644 --- a/db_sqlx_postgres/dev/dev/struct.Level.html +++ b/db_sqlx_postgres/dev/dev/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_postgres::dev::dev - Rust

Struct db_sqlx_postgres::dev::dev::Level

pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_postgres::dev::dev - Rust

Struct db_sqlx_postgres::dev::dev::Level

pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

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

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

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.NameHash.html b/db_sqlx_postgres/dev/dev/struct.NameHash.html index ddd62d87..d6f8f752 100644 --- a/db_sqlx_postgres/dev/dev/struct.NameHash.html +++ b/db_sqlx_postgres/dev/dev/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_postgres::dev::dev - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_postgres::dev::dev - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

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

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

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.Notification.html b/db_sqlx_postgres/dev/dev/struct.Notification.html index e40c3ef8..f035450b 100644 --- a/db_sqlx_postgres/dev/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/dev/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_postgres::dev::dev - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_postgres::dev::dev - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

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

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

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

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

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

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

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.Register.html b/db_sqlx_postgres/dev/dev/struct.Register.html index 7a2c6db7..b3fd5774 100644 --- a/db_sqlx_postgres/dev/dev/struct.Register.html +++ b/db_sqlx_postgres/dev/dev/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_postgres::dev::dev - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_postgres::dev::dev - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

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

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

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.Secret.html b/db_sqlx_postgres/dev/dev/struct.Secret.html index 794c4325..85ca1724 100644 --- a/db_sqlx_postgres/dev/dev/struct.Secret.html +++ b/db_sqlx_postgres/dev/dev/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_postgres::dev::dev - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_postgres::dev::dev - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

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

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

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

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

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

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

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/dev/struct.StatsUnixTimestamp.html index 01709064..4559f278 100644 --- a/db_sqlx_postgres/dev/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/dev/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_postgres::dev::dev - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_postgres::dev::dev - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

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

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

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

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

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

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

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.TrafficPattern.html b/db_sqlx_postgres/dev/dev/struct.TrafficPattern.html index b3e02c86..fdccb0b5 100644 --- a/db_sqlx_postgres/dev/dev/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/dev/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_postgres::dev::dev - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_postgres::dev::dev - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

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

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

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

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

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

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

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/struct.UpdateEmail.html b/db_sqlx_postgres/dev/dev/struct.UpdateEmail.html index 12a00c87..c0f3bac2 100644 --- a/db_sqlx_postgres/dev/dev/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/dev/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_postgres::dev::dev - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_postgres::dev::dev - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

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

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

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/tests/fn.database_works.html b/db_sqlx_postgres/dev/dev/tests/fn.database_works.html index 6ad63b8e..69ddb770 100644 --- a/db_sqlx_postgres/dev/dev/tests/fn.database_works.html +++ b/db_sqlx_postgres/dev/dev/tests/fn.database_works.html @@ -1,2 +1,10 @@ -database_works in db_sqlx_postgres::dev::dev::tests - Rust
pub async fn database_works<T, 'a>(
    db: &T,
    p: &Register<'a>,
    c: &CreateCaptcha<'a>,
    l: &[Level],
    tp: &TrafficPattern,
    an: &AddNotification<'a>
) -> impl Future<Output = ()>where
    T: MCDatabase,
Expand description

test all database functions

-
\ No newline at end of file +database_works in db_sqlx_postgres::dev::dev::tests - Rust
pub async fn database_works<T, 'a>(
+    db: &T,
+    p: &Register<'a>,
+    c: &CreateCaptcha<'a>,
+    l: &[Level],
+    tp: &TrafficPattern,
+    an: &AddNotification<'a>
+) -> impl Future<Output = ()>where
+    T: MCDatabase,
Expand description

test all database functions

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/tests/index.html b/db_sqlx_postgres/dev/dev/tests/index.html index d30a5428..05e0cd85 100644 --- a/db_sqlx_postgres/dev/dev/tests/index.html +++ b/db_sqlx_postgres/dev/dev/tests/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::dev::dev::tests - Rust

Module db_sqlx_postgres::dev::dev::tests

Expand description

Test utilities

-

Functions

test all database functions
\ No newline at end of file +db_sqlx_postgres::dev::dev::tests - Rust

Module db_sqlx_postgres::dev::dev::tests

Expand description

Test utilities

+

Functions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/tests/sidebar-items.js b/db_sqlx_postgres/dev/dev/tests/sidebar-items.js index 4939af2f..b8901262 100644 --- a/db_sqlx_postgres/dev/dev/tests/sidebar-items.js +++ b/db_sqlx_postgres/dev/dev/tests/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["database_works","test all database functions"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["database_works"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/dev/trait.CloneSPDatabase.html index b24de082..09a43eb5 100644 --- a/db_sqlx_postgres/dev/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/dev/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_postgres::dev::dev - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_postgres::dev::dev - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.Connect.html b/db_sqlx_postgres/dev/dev/trait.Connect.html index 2384fd1c..36ff41f9 100644 --- a/db_sqlx_postgres/dev/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/dev/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::dev::dev - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::dev::dev - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.DBOps.html b/db_sqlx_postgres/dev/dev/trait.DBOps.html index f8912d74..c3f2eca0 100644 --- a/db_sqlx_postgres/dev/dev/trait.DBOps.html +++ b/db_sqlx_postgres/dev/dev/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::dev::dev - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::dev::dev - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.GetConnection.html b/db_sqlx_postgres/dev/dev/trait.GetConnection.html index ca6d18a3..4ceef033 100644 --- a/db_sqlx_postgres/dev/dev/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/dev/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::dev::dev - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::dev::dev - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.MCDatabase.html b/db_sqlx_postgres/dev/dev/trait.MCDatabase.html index 8ec03552..ef0b9ef0 100644 --- a/db_sqlx_postgres/dev/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/dev/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_postgres::dev::dev - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_postgres::dev::dev - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/trait.Migrate.html b/db_sqlx_postgres/dev/dev/trait.Migrate.html index 9a4bfd9d..843b65cb 100644 --- a/db_sqlx_postgres/dev/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/dev/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::dev::dev - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::dev::dev - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/type.BoxDynError.html b/db_sqlx_postgres/dev/dev/type.BoxDynError.html index 86fdfab0..e975debb 100644 --- a/db_sqlx_postgres/dev/dev/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/dev/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_postgres::dev::dev - Rust

Type Definition db_sqlx_postgres::dev::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_postgres::dev::dev - Rust

Type Definition db_sqlx_postgres::dev::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/dev/type.DBResult.html b/db_sqlx_postgres/dev/dev/type.DBResult.html index aaf834c6..11717452 100644 --- a/db_sqlx_postgres/dev/dev/type.DBResult.html +++ b/db_sqlx_postgres/dev/dev/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_postgres::dev::dev - Rust

Type Definition db_sqlx_postgres::dev::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_postgres::dev::dev - Rust

Type Definition db_sqlx_postgres::dev::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/enum.DBError.html b/db_sqlx_postgres/dev/enum.DBError.html index c8f5e23e..75fd89b2 100644 --- a/db_sqlx_postgres/dev/enum.DBError.html +++ b/db_sqlx_postgres/dev/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_postgres::dev - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_postgres::dev - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/enum.Error.html b/db_sqlx_postgres/dev/enum.Error.html index 2415d365..d33eaeee 100644 --- a/db_sqlx_postgres/dev/enum.Error.html +++ b/db_sqlx_postgres/dev/enum.Error.html @@ -1,53 +1,66 @@ -Error in db_sqlx_postgres::dev - Rust
#[non_exhaustive]
+Error in db_sqlx_postgres::dev - Rust
#[non_exhaustive]
 pub enum Error {
-
Show 15 variants Configuration(Box<dyn Error + Sync + Send + 'static, Global>), - Database(Box<dyn DatabaseError + 'static, Global>), - Io(Error), - Tls(Box<dyn Error + Sync + Send + 'static, Global>), - Protocol(String), +
Show 15 variants Configuration(Box<dyn Error + Send + Sync + 'static, Global>), + Database(Box<dyn DatabaseError + 'static, Global>), + Io(Error), + Tls(Box<dyn Error + Send + Sync + 'static, Global>), + Protocol(String), RowNotFound, TypeNotFound { - type_name: String, + type_name: String, }, ColumnIndexOutOfBounds { - index: usize, - len: usize, + index: usize, + len: usize, }, - ColumnNotFound(String), + ColumnNotFound(String), ColumnDecode { - index: String, - source: Box<dyn Error + Sync + Send + 'static, Global>, + index: String, + source: Box<dyn Error + Send + Sync + 'static, Global>, }, - Decode(Box<dyn Error + Sync + Send + 'static, Global>), + Decode(Box<dyn Error + Send + Sync + 'static, Global>), PoolTimedOut, PoolClosed, WorkerCrashed, - Migrate(Box<MigrateError, Global>), -
}
Expand description

Represents all the ways a method can fail within SQLx.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Configuration(Box<dyn Error + Sync + Send + 'static, Global>)

Error occurred while parsing a connection string.

-
§

Database(Box<dyn DatabaseError + 'static, Global>)

Error returned from the database.

-
§

Io(Error)

Error communicating with the database backend.

-
§

Tls(Box<dyn Error + Sync + Send + 'static, Global>)

Error occurred while attempting to establish a TLS connection.

-
§

Protocol(String)

Unexpected or invalid data encountered while communicating with the database.

+ Migrate(Box<MigrateError, Global>), +}
Expand description

Represents all the ways a method can fail within SQLx.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Configuration(Box<dyn Error + Send + Sync + 'static, Global>)

Error occurred while parsing a connection string.

+
§

Database(Box<dyn DatabaseError + 'static, Global>)

Error returned from the database.

+
§

Io(Error)

Error communicating with the database backend.

+
§

Tls(Box<dyn Error + Send + Sync + 'static, Global>)

Error occurred while attempting to establish a TLS connection.

+
§

Protocol(String)

Unexpected or invalid data encountered while communicating with the database.

This should indicate there is a programming error in a SQLx driver or there is something corrupted with the connection to the database itself.

§

RowNotFound

No rows returned by a query that expected to return at least one row.

-
§

TypeNotFound

Fields

§type_name: String

Type in query doesn’t exist. Likely due to typo or missing user type.

-
§

ColumnIndexOutOfBounds

Fields

§index: usize
§len: usize

Column index was out of bounds.

-
§

ColumnNotFound(String)

No column found for the given name.

-
§

ColumnDecode

Fields

§index: String
§source: Box<dyn Error + Sync + Send + 'static, Global>

Error occurred while decoding a value from a specific column.

-
§

Decode(Box<dyn Error + Sync + Send + 'static, Global>)

Error occurred while decoding a value.

+
§

TypeNotFound

Fields

§type_name: String

Type in query doesn’t exist. Likely due to typo or missing user type.

+
§

ColumnIndexOutOfBounds

Fields

§index: usize
§len: usize

Column index was out of bounds.

+
§

ColumnNotFound(String)

No column found for the given name.

+
§

ColumnDecode

Fields

§index: String
§source: Box<dyn Error + Send + Sync + 'static, Global>

Error occurred while decoding a value from a specific column.

+
§

Decode(Box<dyn Error + Send + Sync + 'static, Global>)

Error occurred while decoding a value.

§

PoolTimedOut

A Pool::acquire timed out due to connections not becoming available or because another task encountered too many errors while trying to open a new connection.

§

PoolClosed

Pool::close was called while we were waiting in Pool::acquire.

§

WorkerCrashed

A background worker has crashed.

-
§

Migrate(Box<MigrateError, Global>)

Implementations§

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.

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).

+
§

Migrate(Box<MigrateError, Global>)

Implementations§

§

impl Error

pub fn into_database_error( + self +) -> Option<Box<dyn DatabaseError + 'static, Global>>

pub fn as_database_error(&self) -> Option<&(dyn DatabaseError + 'static)>

Trait Implementations§

§

impl Debug for Error

§

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

Formats the value using the given formatter. Read more
§

impl Display for Error

§

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

Formats the value using the given formatter. Read more
§

impl Error for Error

§

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, demand: &mut Demand<'a>)

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

impl<E> From<E> for Errorwhere + E: DatabaseError,

§

fn from(error: E) -> Error

Converts to this type from the input type.
§

impl From<Error> for Error

§

fn from(source: Error) -> Error

Converts to this type from the input type.
§

impl From<InvalidDNSNameError> for Error

§

fn from(error: InvalidDNSNameError) -> Error

Converts to this type from the input type.
§

impl From<MigrateError> for Error

§

fn from(error: MigrateError) -> Error

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/enum.Login.html b/db_sqlx_postgres/dev/enum.Login.html index 1a717a67..f20319c9 100644 --- a/db_sqlx_postgres/dev/enum.Login.html +++ b/db_sqlx_postgres/dev/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_postgres::dev - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_postgres::dev - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/errors/enum.DBError.html b/db_sqlx_postgres/dev/errors/enum.DBError.html index 78519520..f31d9bc8 100644 --- a/db_sqlx_postgres/dev/errors/enum.DBError.html +++ b/db_sqlx_postgres/dev/errors/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_postgres::dev::errors - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_postgres::dev::errors - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/errors/index.html b/db_sqlx_postgres/dev/errors/index.html index 4edfad8d..e80ab95d 100644 --- a/db_sqlx_postgres/dev/errors/index.html +++ b/db_sqlx_postgres/dev/errors/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::dev::errors - Rust
Expand description

represents all the ways a trait can fail using this crate

-

Enums

Error data structure grouping various error subtypes

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_postgres::dev::errors - Rust
Expand description

represents all the ways a trait can fail using this crate

+

Enums

  • Error data structure grouping various error subtypes

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/errors/sidebar-items.js b/db_sqlx_postgres/dev/errors/sidebar-items.js index 48f114ec..f42d6190 100644 --- a/db_sqlx_postgres/dev/errors/sidebar-items.js +++ b/db_sqlx_postgres/dev/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/errors/type.BoxDynError.html b/db_sqlx_postgres/dev/errors/type.BoxDynError.html index 6a21f2d9..898f79cd 100644 --- a/db_sqlx_postgres/dev/errors/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/errors/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_postgres::dev::errors - Rust

Type Definition db_sqlx_postgres::dev::errors::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_postgres::dev::errors - Rust

Type Definition db_sqlx_postgres::dev::errors::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/errors/type.DBResult.html b/db_sqlx_postgres/dev/errors/type.DBResult.html index 09ebca3f..bf23c233 100644 --- a/db_sqlx_postgres/dev/errors/type.DBResult.html +++ b/db_sqlx_postgres/dev/errors/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_postgres::dev::errors - Rust

Type Definition db_sqlx_postgres::dev::errors::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_postgres::dev::errors - Rust

Type Definition db_sqlx_postgres::dev::errors::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/index.html b/db_sqlx_postgres/dev/index.html index 33419a4a..b4bea21e 100644 --- a/db_sqlx_postgres/dev/index.html +++ b/db_sqlx_postgres/dev/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::dev - Rust

Module db_sqlx_postgres::dev

source ·

Re-exports

pub use super::Database;
pub use super::errors::*;

Modules

useful imports for supporting a new database
represents all the ways a trait can fail using this crate
meta operations like migration and connecting to a database
useful imports for users working with a supported database
Test utilities

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
Represents all the ways a method can fail within SQLx.
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure

Attribute Macros

\ No newline at end of file +db_sqlx_postgres::dev - Rust

Module db_sqlx_postgres::dev

source ·

Re-exports

Modules

  • useful imports for supporting a new database
  • represents all the ways a trait can fail using this crate
  • meta operations like migration and connecting to a database
  • useful imports for users working with a supported database
  • Test utilities

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • Represents all the ways a method can fail within SQLx.
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure

Attribute Macros

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/index.html b/db_sqlx_postgres/dev/ops/index.html index 59af36c2..b25bee21 100644 --- a/db_sqlx_postgres/dev/ops/index.html +++ b/db_sqlx_postgres/dev/ops/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::dev::ops - Rust

Module db_sqlx_postgres::dev::ops

Expand description

meta operations like migration and connecting to a database

-

Traits

Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
database migrations
\ No newline at end of file +db_sqlx_postgres::dev::ops - Rust

Module db_sqlx_postgres::dev::ops

Expand description

meta operations like migration and connecting to a database

+

Traits

  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • database migrations
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/sidebar-items.js b/db_sqlx_postgres/dev/ops/sidebar-items.js index 765f2b9c..de460e00 100644 --- a/db_sqlx_postgres/dev/ops/sidebar-items.js +++ b/db_sqlx_postgres/dev/ops/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"trait":["Connect","DBOps","GetConnection","Migrate"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/trait.Connect.html b/db_sqlx_postgres/dev/ops/trait.Connect.html index 2cfcf24a..68b08326 100644 --- a/db_sqlx_postgres/dev/ops/trait.Connect.html +++ b/db_sqlx_postgres/dev/ops/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::dev::ops - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::dev::ops - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/trait.DBOps.html b/db_sqlx_postgres/dev/ops/trait.DBOps.html index dbd1b762..e047703c 100644 --- a/db_sqlx_postgres/dev/ops/trait.DBOps.html +++ b/db_sqlx_postgres/dev/ops/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::dev::ops - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::dev::ops - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/trait.GetConnection.html b/db_sqlx_postgres/dev/ops/trait.GetConnection.html index bcc438a4..dcb909b0 100644 --- a/db_sqlx_postgres/dev/ops/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/ops/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::dev::ops - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::dev::ops - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/ops/trait.Migrate.html b/db_sqlx_postgres/dev/ops/trait.Migrate.html index bb20c80b..7bd9a2fa 100644 --- a/db_sqlx_postgres/dev/ops/trait.Migrate.html +++ b/db_sqlx_postgres/dev/ops/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::dev::ops - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::dev::ops - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/attr.async_trait.html b/db_sqlx_postgres/dev/prelude/dev/attr.async_trait.html index 902b4238..ed382ede 100644 --- a/db_sqlx_postgres/dev/prelude/dev/attr.async_trait.html +++ b/db_sqlx_postgres/dev/prelude/dev/attr.async_trait.html @@ -1 +1 @@ -async_trait in db_sqlx_postgres::dev::prelude::dev - Rust

Attribute Macro db_sqlx_postgres::dev::prelude::dev::async_trait

#[async_trait]
\ No newline at end of file +async_trait in db_sqlx_postgres::dev::prelude::dev - Rust

Attribute Macro db_sqlx_postgres::dev::prelude::dev::async_trait

#[async_trait]
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/enum.DBError.html b/db_sqlx_postgres/dev/prelude/dev/enum.DBError.html index 9c39ea91..b1461676 100644 --- a/db_sqlx_postgres/dev/prelude/dev/enum.DBError.html +++ b/db_sqlx_postgres/dev/prelude/dev/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_postgres::dev::prelude::dev - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_postgres::dev::prelude::dev - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

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

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/enum.Login.html b/db_sqlx_postgres/dev/prelude/dev/enum.Login.html index 74e1f921..dc02a602 100644 --- a/db_sqlx_postgres/dev/prelude/dev/enum.Login.html +++ b/db_sqlx_postgres/dev/prelude/dev/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_postgres::dev::prelude::dev - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_postgres::dev::prelude::dev - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

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

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

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

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

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/index.html b/db_sqlx_postgres/dev/prelude/dev/index.html index bccf2315..54998d09 100644 --- a/db_sqlx_postgres/dev/prelude/dev/index.html +++ b/db_sqlx_postgres/dev/prelude/dev/index.html @@ -1,3 +1,3 @@ -db_sqlx_postgres::dev::prelude::dev - Rust
Expand description

useful imports for supporting a new database

-

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure

Attribute Macros

\ No newline at end of file +db_sqlx_postgres::dev::prelude::dev - Rust
Expand description

useful imports for supporting a new database

+

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure

Attribute Macros

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/sidebar-items.js b/db_sqlx_postgres/dev/prelude/dev/sidebar-items.js index b985d78d..1ac3f957 100644 --- a/db_sqlx_postgres/dev/prelude/dev/sidebar-items.js +++ b/db_sqlx_postgres/dev/prelude/dev/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"attr":["async_trait"],"enum":["DBError","Login"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.AddNotification.html b/db_sqlx_postgres/dev/prelude/dev/struct.AddNotification.html index f3e06b42..c249f95e 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

Returns the “default value” for a type. Read more
§

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.Captcha.html b/db_sqlx_postgres/dev/prelude/dev/struct.Captcha.html index 8fd848a9..72fc05d7 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Captcha.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/prelude/dev/struct.CreateCaptcha.html index 0fd52039..981ab5f4 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

Returns the “default value” for a type. Read more
§

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.Level.html b/db_sqlx_postgres/dev/prelude/dev/struct.Level.html index 974b1033..2899f77b 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Level.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.NameHash.html b/db_sqlx_postgres/dev/prelude/dev/struct.NameHash.html index 01c92d49..0b7a45d5 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.NameHash.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html b/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html index 2f81a1c6..bd48a225 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.Register.html b/db_sqlx_postgres/dev/prelude/dev/struct.Register.html index a376d51f..9ff96dc1 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Register.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.Secret.html b/db_sqlx_postgres/dev/prelude/dev/struct.Secret.html index ab7e3196..c6b23ffc 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.Secret.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/prelude/dev/struct.StatsUnixTimestamp.html index 20a9ec19..6572c75f 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.TrafficPattern.html b/db_sqlx_postgres/dev/prelude/dev/struct.TrafficPattern.html index 388796bf..aa5c88ed 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/struct.UpdateEmail.html b/db_sqlx_postgres/dev/prelude/dev/struct.UpdateEmail.html index fa0ee46e..8bb5dec1 100644 --- a/db_sqlx_postgres/dev/prelude/dev/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/prelude/dev/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_postgres::dev::prelude::dev - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/prelude/dev/trait.CloneSPDatabase.html index 7e8d4965..0e79e0ea 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html b/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html index dfee755f..9cefa976 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.DBOps.html b/db_sqlx_postgres/dev/prelude/dev/trait.DBOps.html index d2a8a498..ee080032 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.DBOps.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.GetConnection.html b/db_sqlx_postgres/dev/prelude/dev/trait.GetConnection.html index 2f5d1a6e..c1c493fd 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html b/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html index c3cfb8ea..62d03028 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_postgres::dev::prelude::dev - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html b/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html index 6c8bd51c..b7277134 100644 --- a/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/prelude/dev/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::dev::prelude::dev - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::dev::prelude::dev - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/type.BoxDynError.html b/db_sqlx_postgres/dev/prelude/dev/type.BoxDynError.html index 5e58543f..15eee581 100644 --- a/db_sqlx_postgres/dev/prelude/dev/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/prelude/dev/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_postgres::dev::prelude::dev - Rust

Type Definition db_sqlx_postgres::dev::prelude::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_postgres::dev::prelude::dev - Rust

Type Definition db_sqlx_postgres::dev::prelude::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/dev/type.DBResult.html b/db_sqlx_postgres/dev/prelude/dev/type.DBResult.html index 2218755e..e9d4bafc 100644 --- a/db_sqlx_postgres/dev/prelude/dev/type.DBResult.html +++ b/db_sqlx_postgres/dev/prelude/dev/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_postgres::dev::prelude::dev - Rust

Type Definition db_sqlx_postgres::dev::prelude::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_postgres::dev::prelude::dev - Rust

Type Definition db_sqlx_postgres::dev::prelude::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/enum.DBError.html b/db_sqlx_postgres/dev/prelude/enum.DBError.html index 08574d10..950358c1 100644 --- a/db_sqlx_postgres/dev/prelude/enum.DBError.html +++ b/db_sqlx_postgres/dev/prelude/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_postgres::dev::prelude - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_postgres::dev::prelude - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/enum.Login.html b/db_sqlx_postgres/dev/prelude/enum.Login.html index 6b2a1ffa..6c6b666a 100644 --- a/db_sqlx_postgres/dev/prelude/enum.Login.html +++ b/db_sqlx_postgres/dev/prelude/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_postgres::dev::prelude - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_postgres::dev::prelude - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/index.html b/db_sqlx_postgres/dev/prelude/index.html index 6e8b13c2..232f5a02 100644 --- a/db_sqlx_postgres/dev/prelude/index.html +++ b/db_sqlx_postgres/dev/prelude/index.html @@ -1,3 +1,3 @@ -db_sqlx_postgres::dev::prelude - Rust
Expand description

useful imports for users working with a supported database

-

Modules

useful imports for supporting a new database

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_postgres::dev::prelude - Rust
Expand description

useful imports for users working with a supported database

+

Modules

  • useful imports for supporting a new database

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/sidebar-items.js b/db_sqlx_postgres/dev/prelude/sidebar-items.js index 65f35589..76a3072f 100644 --- a/db_sqlx_postgres/dev/prelude/sidebar-items.js +++ b/db_sqlx_postgres/dev/prelude/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError","Login"],"mod":["dev"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.AddNotification.html b/db_sqlx_postgres/dev/prelude/struct.AddNotification.html index d2001c48..c71f7a56 100644 --- a/db_sqlx_postgres/dev/prelude/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/prelude/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_postgres::dev::prelude - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_postgres::dev::prelude - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

Returns the “default value” for a type. Read more
§

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.Captcha.html b/db_sqlx_postgres/dev/prelude/struct.Captcha.html index ec76e0a4..b59ec027 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Captcha.html +++ b/db_sqlx_postgres/dev/prelude/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_postgres::dev::prelude - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_postgres::dev::prelude - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/prelude/struct.CreateCaptcha.html index b356a19e..707db543 100644 --- a/db_sqlx_postgres/dev/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/prelude/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_postgres::dev::prelude - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_postgres::dev::prelude - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

Returns the “default value” for a type. Read more
§

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.Level.html b/db_sqlx_postgres/dev/prelude/struct.Level.html index b1d599d3..4234755e 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Level.html +++ b/db_sqlx_postgres/dev/prelude/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_postgres::dev::prelude - Rust
pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_postgres::dev::prelude - Rust
pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.NameHash.html b/db_sqlx_postgres/dev/prelude/struct.NameHash.html index 7bce8908..54e01cc5 100644 --- a/db_sqlx_postgres/dev/prelude/struct.NameHash.html +++ b/db_sqlx_postgres/dev/prelude/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_postgres::dev::prelude - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_postgres::dev::prelude - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.Notification.html b/db_sqlx_postgres/dev/prelude/struct.Notification.html index 81cef923..6763a59d 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Notification.html +++ b/db_sqlx_postgres/dev/prelude/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_postgres::dev::prelude - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_postgres::dev::prelude - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.Register.html b/db_sqlx_postgres/dev/prelude/struct.Register.html index 66112600..18384369 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Register.html +++ b/db_sqlx_postgres/dev/prelude/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_postgres::dev::prelude - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_postgres::dev::prelude - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.Secret.html b/db_sqlx_postgres/dev/prelude/struct.Secret.html index d249f451..4e71d2d6 100644 --- a/db_sqlx_postgres/dev/prelude/struct.Secret.html +++ b/db_sqlx_postgres/dev/prelude/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_postgres::dev::prelude - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_postgres::dev::prelude - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/prelude/struct.StatsUnixTimestamp.html index f83c0172..823abafe 100644 --- a/db_sqlx_postgres/dev/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/prelude/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_postgres::dev::prelude - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_postgres::dev::prelude - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.TrafficPattern.html b/db_sqlx_postgres/dev/prelude/struct.TrafficPattern.html index ad57b129..d2615977 100644 --- a/db_sqlx_postgres/dev/prelude/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/prelude/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_postgres::dev::prelude - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_postgres::dev::prelude - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/struct.UpdateEmail.html b/db_sqlx_postgres/dev/prelude/struct.UpdateEmail.html index cff19711..065b994f 100644 --- a/db_sqlx_postgres/dev/prelude/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/prelude/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_postgres::dev::prelude - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_postgres::dev::prelude - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/prelude/trait.CloneSPDatabase.html index 7b887513..2b1fb10a 100644 --- a/db_sqlx_postgres/dev/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/prelude/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_postgres::dev::prelude - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_postgres::dev::prelude - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.Connect.html b/db_sqlx_postgres/dev/prelude/trait.Connect.html index 9bdb5f73..5682da3a 100644 --- a/db_sqlx_postgres/dev/prelude/trait.Connect.html +++ b/db_sqlx_postgres/dev/prelude/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::dev::prelude - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::dev::prelude - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.DBOps.html b/db_sqlx_postgres/dev/prelude/trait.DBOps.html index 45a5f002..a0e51c93 100644 --- a/db_sqlx_postgres/dev/prelude/trait.DBOps.html +++ b/db_sqlx_postgres/dev/prelude/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::dev::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::dev::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.GetConnection.html b/db_sqlx_postgres/dev/prelude/trait.GetConnection.html index abfc416e..caf9f816 100644 --- a/db_sqlx_postgres/dev/prelude/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/prelude/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::dev::prelude - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::dev::prelude - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html b/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html index 80988ea0..289909f0 100644 --- a/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/prelude/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_postgres::dev::prelude - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_postgres::dev::prelude - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/trait.Migrate.html b/db_sqlx_postgres/dev/prelude/trait.Migrate.html index a0a93363..ce43c0a7 100644 --- a/db_sqlx_postgres/dev/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/dev/prelude/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::dev::prelude - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::dev::prelude - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/type.BoxDynError.html b/db_sqlx_postgres/dev/prelude/type.BoxDynError.html index 861c04b2..d03aaf63 100644 --- a/db_sqlx_postgres/dev/prelude/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/prelude/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_postgres::dev::prelude - Rust

Type Definition db_sqlx_postgres::dev::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_postgres::dev::prelude - Rust

Type Definition db_sqlx_postgres::dev::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/prelude/type.DBResult.html b/db_sqlx_postgres/dev/prelude/type.DBResult.html index 8ce911d3..58a041dc 100644 --- a/db_sqlx_postgres/dev/prelude/type.DBResult.html +++ b/db_sqlx_postgres/dev/prelude/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_postgres::dev::prelude - Rust

Type Definition db_sqlx_postgres::dev::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_postgres::dev::prelude - Rust

Type Definition db_sqlx_postgres::dev::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/sidebar-items.js b/db_sqlx_postgres/dev/sidebar-items.js index 4b939316..f764cda3 100644 --- a/db_sqlx_postgres/dev/sidebar-items.js +++ b/db_sqlx_postgres/dev/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Error","Represents all the ways a method can fail within SQLx."],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"attr":["async_trait"],"enum":["DBError","Error","Login"],"mod":["dev","errors","ops","prelude","tests"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.AddNotification.html b/db_sqlx_postgres/dev/struct.AddNotification.html index 10cfcc9b..7b62b2e9 100644 --- a/db_sqlx_postgres/dev/struct.AddNotification.html +++ b/db_sqlx_postgres/dev/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_postgres::dev - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_postgres::dev - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

Returns the “default value” for a type. Read more
§

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.Captcha.html b/db_sqlx_postgres/dev/struct.Captcha.html index d201de06..5f962ff5 100644 --- a/db_sqlx_postgres/dev/struct.Captcha.html +++ b/db_sqlx_postgres/dev/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_postgres::dev - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_postgres::dev - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.CreateCaptcha.html b/db_sqlx_postgres/dev/struct.CreateCaptcha.html index 5421fe29..dc0a5899 100644 --- a/db_sqlx_postgres/dev/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/dev/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_postgres::dev - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_postgres::dev - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

Returns the “default value” for a type. Read more
§

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.Level.html b/db_sqlx_postgres/dev/struct.Level.html index bf2d3c1a..7caf5e03 100644 --- a/db_sqlx_postgres/dev/struct.Level.html +++ b/db_sqlx_postgres/dev/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_postgres::dev - Rust

Struct db_sqlx_postgres::dev::Level

pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_postgres::dev - Rust

Struct db_sqlx_postgres::dev::Level

pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.NameHash.html b/db_sqlx_postgres/dev/struct.NameHash.html index 5c763648..38540f00 100644 --- a/db_sqlx_postgres/dev/struct.NameHash.html +++ b/db_sqlx_postgres/dev/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_postgres::dev - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_postgres::dev - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.Notification.html b/db_sqlx_postgres/dev/struct.Notification.html index dc32279d..7f6e6f47 100644 --- a/db_sqlx_postgres/dev/struct.Notification.html +++ b/db_sqlx_postgres/dev/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_postgres::dev - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_postgres::dev - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.Register.html b/db_sqlx_postgres/dev/struct.Register.html index b5d8ea50..906e07fd 100644 --- a/db_sqlx_postgres/dev/struct.Register.html +++ b/db_sqlx_postgres/dev/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_postgres::dev - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_postgres::dev - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.Secret.html b/db_sqlx_postgres/dev/struct.Secret.html index 6d90c1be..53e9daa1 100644 --- a/db_sqlx_postgres/dev/struct.Secret.html +++ b/db_sqlx_postgres/dev/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_postgres::dev - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_postgres::dev - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/dev/struct.StatsUnixTimestamp.html index caccf5ec..71c85985 100644 --- a/db_sqlx_postgres/dev/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/dev/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_postgres::dev - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_postgres::dev - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.TrafficPattern.html b/db_sqlx_postgres/dev/struct.TrafficPattern.html index 69bc113c..79b10011 100644 --- a/db_sqlx_postgres/dev/struct.TrafficPattern.html +++ b/db_sqlx_postgres/dev/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_postgres::dev - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_postgres::dev - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/struct.UpdateEmail.html b/db_sqlx_postgres/dev/struct.UpdateEmail.html index 46bdfa64..e4ce431c 100644 --- a/db_sqlx_postgres/dev/struct.UpdateEmail.html +++ b/db_sqlx_postgres/dev/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_postgres::dev - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_postgres::dev - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/tests/fn.database_works.html b/db_sqlx_postgres/dev/tests/fn.database_works.html index d1af2bba..2ac3e909 100644 --- a/db_sqlx_postgres/dev/tests/fn.database_works.html +++ b/db_sqlx_postgres/dev/tests/fn.database_works.html @@ -1,2 +1,10 @@ -database_works in db_sqlx_postgres::dev::tests - Rust
pub async fn database_works<T, 'a>(
    db: &T,
    p: &Register<'a>,
    c: &CreateCaptcha<'a>,
    l: &[Level],
    tp: &TrafficPattern,
    an: &AddNotification<'a>
) -> impl Future<Output = ()>where
    T: MCDatabase,
Expand description

test all database functions

-
\ No newline at end of file +database_works in db_sqlx_postgres::dev::tests - Rust
pub async fn database_works<T, 'a>(
+    db: &T,
+    p: &Register<'a>,
+    c: &CreateCaptcha<'a>,
+    l: &[Level],
+    tp: &TrafficPattern,
+    an: &AddNotification<'a>
+) -> impl Future<Output = ()>where
+    T: MCDatabase,
Expand description

test all database functions

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/tests/index.html b/db_sqlx_postgres/dev/tests/index.html index 251a2181..7a10f4c8 100644 --- a/db_sqlx_postgres/dev/tests/index.html +++ b/db_sqlx_postgres/dev/tests/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::dev::tests - Rust

Module db_sqlx_postgres::dev::tests

Expand description

Test utilities

-

Functions

test all database functions
\ No newline at end of file +db_sqlx_postgres::dev::tests - Rust

Module db_sqlx_postgres::dev::tests

Expand description

Test utilities

+

Functions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/tests/sidebar-items.js b/db_sqlx_postgres/dev/tests/sidebar-items.js index 4939af2f..b8901262 100644 --- a/db_sqlx_postgres/dev/tests/sidebar-items.js +++ b/db_sqlx_postgres/dev/tests/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["database_works","test all database functions"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["database_works"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.CloneSPDatabase.html b/db_sqlx_postgres/dev/trait.CloneSPDatabase.html index 06bbeabe..f83694c6 100644 --- a/db_sqlx_postgres/dev/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/dev/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_postgres::dev - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_postgres::dev - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.Connect.html b/db_sqlx_postgres/dev/trait.Connect.html index 8765dcc8..b7f3414b 100644 --- a/db_sqlx_postgres/dev/trait.Connect.html +++ b/db_sqlx_postgres/dev/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::dev - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::dev - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.DBOps.html b/db_sqlx_postgres/dev/trait.DBOps.html index ccfac50d..43f6daf9 100644 --- a/db_sqlx_postgres/dev/trait.DBOps.html +++ b/db_sqlx_postgres/dev/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::dev - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::dev - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.GetConnection.html b/db_sqlx_postgres/dev/trait.GetConnection.html index d943b91b..415e5739 100644 --- a/db_sqlx_postgres/dev/trait.GetConnection.html +++ b/db_sqlx_postgres/dev/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::dev - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::dev - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.MCDatabase.html b/db_sqlx_postgres/dev/trait.MCDatabase.html index ee44ced9..e75cf22f 100644 --- a/db_sqlx_postgres/dev/trait.MCDatabase.html +++ b/db_sqlx_postgres/dev/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_postgres::dev - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_postgres::dev - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/trait.Migrate.html b/db_sqlx_postgres/dev/trait.Migrate.html index 9623c349..39a4a225 100644 --- a/db_sqlx_postgres/dev/trait.Migrate.html +++ b/db_sqlx_postgres/dev/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::dev - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::dev - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/dev/type.BoxDynError.html b/db_sqlx_postgres/dev/type.BoxDynError.html index 54070f04..1bfe741e 100644 --- a/db_sqlx_postgres/dev/type.BoxDynError.html +++ b/db_sqlx_postgres/dev/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_postgres::dev - Rust

Type Definition db_sqlx_postgres::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_postgres::dev - Rust

Type Definition db_sqlx_postgres::dev::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_postgres/dev/type.DBResult.html b/db_sqlx_postgres/dev/type.DBResult.html index 555bf3ab..87a7e038 100644 --- a/db_sqlx_postgres/dev/type.DBResult.html +++ b/db_sqlx_postgres/dev/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_postgres::dev - Rust

Type Definition db_sqlx_postgres::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_postgres::dev - Rust

Type Definition db_sqlx_postgres::dev::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_postgres/enum.ConnectionOptions.html b/db_sqlx_postgres/enum.ConnectionOptions.html index 2b65903b..1398558a 100644 --- a/db_sqlx_postgres/enum.ConnectionOptions.html +++ b/db_sqlx_postgres/enum.ConnectionOptions.html @@ -1,16 +1,27 @@ -ConnectionOptions in db_sqlx_postgres - Rust
pub enum ConnectionOptions {
+ConnectionOptions in db_sqlx_postgres - Rust
pub enum ConnectionOptions {
     Fresh(Fresh),
     Existing(Conn),
-}
Expand description

Connect to database

+}
Expand description

Connect to database

Variants§

§

Fresh(Fresh)

fresh connection

§

Existing(Conn)

existing connection

-

Trait Implementations§

database specific pool-type
database specific error-type -create connection pool

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).

+

Trait Implementations§

source§

impl Connect for ConnectionOptions

§

type Pool = Database

database specific pool-type
source§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = DBResult<Self::Pool>> + Send + 'async_trait>>where + Self: 'async_trait,

database specific error-type +create connection pool

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/errors/fn.map_register_err.html b/db_sqlx_postgres/errors/fn.map_register_err.html index 6f79fa3a..8a4eefb2 100644 --- a/db_sqlx_postgres/errors/fn.map_register_err.html +++ b/db_sqlx_postgres/errors/fn.map_register_err.html @@ -1,2 +1,2 @@ -map_register_err in db_sqlx_postgres::errors - Rust
pub fn map_register_err(e: Error) -> DBError
Expand description

map postgres errors to DBError types

-
\ No newline at end of file +map_register_err in db_sqlx_postgres::errors - Rust
pub fn map_register_err(e: Error) -> DBError
Expand description

map postgres errors to DBError types

+
\ No newline at end of file diff --git a/db_sqlx_postgres/errors/fn.map_row_not_found_err.html b/db_sqlx_postgres/errors/fn.map_row_not_found_err.html index fb967e0b..e303fe5c 100644 --- a/db_sqlx_postgres/errors/fn.map_row_not_found_err.html +++ b/db_sqlx_postgres/errors/fn.map_row_not_found_err.html @@ -1,2 +1,2 @@ -map_row_not_found_err in db_sqlx_postgres::errors - Rust
pub fn map_row_not_found_err(e: Error, row_not_found: DBError) -> DBError
Expand description

map custom row not found error to DB error

-
\ No newline at end of file +map_row_not_found_err in db_sqlx_postgres::errors - Rust
pub fn map_row_not_found_err(e: Error, row_not_found: DBError) -> DBError
Expand description

map custom row not found error to DB error

+
\ No newline at end of file diff --git a/db_sqlx_postgres/errors/index.html b/db_sqlx_postgres/errors/index.html index d9a8d0cd..87665a92 100644 --- a/db_sqlx_postgres/errors/index.html +++ b/db_sqlx_postgres/errors/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::errors - Rust
Expand description

Error-handling utilities

-

Functions

map postgres errors to DBError types
map custom row not found error to DB error
\ No newline at end of file +db_sqlx_postgres::errors - Rust
Expand description

Error-handling utilities

+

Functions

\ No newline at end of file diff --git a/db_sqlx_postgres/errors/sidebar-items.js b/db_sqlx_postgres/errors/sidebar-items.js index 21f20eeb..76e22aaf 100644 --- a/db_sqlx_postgres/errors/sidebar-items.js +++ b/db_sqlx_postgres/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["map_register_err","map postgres errors to DBError types"],["map_row_not_found_err","map custom row not found error to DB error"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["map_register_err","map_row_not_found_err"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/index.html b/db_sqlx_postgres/index.html index 7dfa10d1..52043853 100644 --- a/db_sqlx_postgres/index.html +++ b/db_sqlx_postgres/index.html @@ -1 +1 @@ -db_sqlx_postgres - Rust

Crate db_sqlx_postgres

source ·

Modules

Error-handling utilities

Structs

Use an existing database pool
Represents notification

Enums

Connect to database
\ No newline at end of file +db_sqlx_postgres - Rust

Crate db_sqlx_postgres

source ·

Modules

Structs

Enums

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/enum.DBError.html b/db_sqlx_postgres/prelude/enum.DBError.html index 89f1a771..7a2aecf2 100644 --- a/db_sqlx_postgres/prelude/enum.DBError.html +++ b/db_sqlx_postgres/prelude/enum.DBError.html @@ -1,5 +1,5 @@ -DBError in db_sqlx_postgres::prelude - Rust
pub enum DBError {
-    DBError(Box<dyn Error + Sync + Send + 'static, Global>),
+DBError in db_sqlx_postgres::prelude - Rust
pub enum DBError {
+    DBError(Box<dyn Error + Send + Sync + 'static, Global>),
     UsernameTaken,
     EmailTaken,
     SecretTaken,
@@ -8,8 +8,8 @@
     CaptchaNotFound,
     TrafficPatternNotFound,
     NotificationNotFound,
-}
Expand description

Error data structure grouping various error subtypes

-

Variants§

§

DBError(Box<dyn Error + Sync + Send + 'static, Global>)

errors that are specific to a database implementation

+}
Expand description

Error data structure grouping various error subtypes

+

Variants§

§

DBError(Box<dyn Error + Send + Sync + 'static, Global>)

errors that are specific to a database implementation

§

UsernameTaken

Username is taken

§

EmailTaken

Email is taken

§

SecretTaken

Secret is taken

@@ -18,13 +18,23 @@
§

CaptchaNotFound

Captcha not found

§

TrafficPatternNotFound

Traffic pattern not found

§

NotificationNotFound

Notification 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

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).

+

Trait Implementations§

§

impl Debug for DBError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DBError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DBError

§

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, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/enum.Login.html b/db_sqlx_postgres/prelude/enum.Login.html index 7551c5c2..9ad4e74b 100644 --- a/db_sqlx_postgres/prelude/enum.Login.html +++ b/db_sqlx_postgres/prelude/enum.Login.html @@ -1,17 +1,35 @@ -Login in db_sqlx_postgres::prelude - Rust
pub enum Login<'a> {
-    Username(&'a str),
-    Email(&'a str),
-}
Expand description

types of credentials used as identifiers during login

-

Variants§

§

Username(&'a str)

username as login

-
§

Email(&'a str)

email as login

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Login in db_sqlx_postgres::prelude - Rust
pub enum Login<'a> {
+    Username(&'a str),
+    Email(&'a str),
+}
Expand description

types of credentials used as identifiers during login

+

Variants§

§

Username(&'a str)

username as login

+
§

Email(&'a str)

email as login

+

Trait Implementations§

§

impl<'a> Clone for Login<'a>

§

fn clone(&self) -> Login<'a>

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
§

impl<'a> Debug for Login<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Login<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Login<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<Login<'a>> for Login<'a>

§

fn eq(&self, other: &Login<'a>) -> 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.
§

impl<'a> Serialize for Login<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for Login<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Login<'a>

§

impl<'a> Send for Login<'a>

§

impl<'a> Sync for Login<'a>

§

impl<'a> Unpin for Login<'a>

§

impl<'a> UnwindSafe for Login<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/index.html b/db_sqlx_postgres/prelude/index.html index 84d03638..0601e6d7 100644 --- a/db_sqlx_postgres/prelude/index.html +++ b/db_sqlx_postgres/prelude/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::prelude - Rust

Re-exports

pub use super::*;

Modules

meta operations like migration and connecting to a database
Test utilities

Structs

Data required to add notification
Data representing a captcha
data required to create new captcha
Level struct that describes threshold-difficulty factor mapping
type encapsulating username and hashed password of a user
Represents notification
Data required to register a new user
datastructure representing a user’s secret
Captcha statistics with time recorded in UNIX epoch formats
User’s traffic pattern; used in generating a captcha configuration
data required to update them email of a user

Enums

Error data structure grouping various error subtypes
types of credentials used as identifiers during login

Traits

Trait to clone MCDatabase
Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
mCaptcha’s database requirements. To implement support for $Database, kindly implement this -trait.
database migrations

Type Definitions

Convenience type alias for grouping driver-specific errors
Generic result data structure
\ No newline at end of file +db_sqlx_postgres::prelude - Rust

Re-exports

Modules

  • meta operations like migration and connecting to a database
  • Test utilities

Structs

  • Data required to add notification
  • Data representing a captcha
  • data required to create new captcha
  • Level struct that describes threshold-difficulty factor mapping
  • type encapsulating username and hashed password of a user
  • Represents notification
  • Data required to register a new user
  • datastructure representing a user’s secret
  • Captcha statistics with time recorded in UNIX epoch formats
  • User’s traffic pattern; used in generating a captcha configuration
  • data required to update them email of a user

Enums

  • Error data structure grouping various error subtypes
  • types of credentials used as identifiers during login

Traits

  • Trait to clone MCDatabase
  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • mCaptcha’s database requirements. To implement support for $Database, kindly implement this +trait.
  • database migrations

Type Definitions

  • Convenience type alias for grouping driver-specific errors
  • Generic result data structure
\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/index.html b/db_sqlx_postgres/prelude/ops/index.html index 2dde62f6..8265159a 100644 --- a/db_sqlx_postgres/prelude/ops/index.html +++ b/db_sqlx_postgres/prelude/ops/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::prelude::ops - Rust
Expand description

meta operations like migration and connecting to a database

-

Traits

Create database connection
Database operations trait(migrations, pool creation and fetching connection from pool)
Get database connection
database migrations
\ No newline at end of file +db_sqlx_postgres::prelude::ops - Rust
Expand description

meta operations like migration and connecting to a database

+

Traits

  • Create database connection
  • Database operations trait(migrations, pool creation and fetching connection from pool)
  • Get database connection
  • database migrations
\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/sidebar-items.js b/db_sqlx_postgres/prelude/ops/sidebar-items.js index 765f2b9c..de460e00 100644 --- a/db_sqlx_postgres/prelude/ops/sidebar-items.js +++ b/db_sqlx_postgres/prelude/ops/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"trait":["Connect","DBOps","GetConnection","Migrate"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/trait.Connect.html b/db_sqlx_postgres/prelude/ops/trait.Connect.html index 51549dc0..ea8cbb2b 100644 --- a/db_sqlx_postgres/prelude/ops/trait.Connect.html +++ b/db_sqlx_postgres/prelude/ops/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::prelude::ops - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::prelude::ops - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/trait.DBOps.html b/db_sqlx_postgres/prelude/ops/trait.DBOps.html index 527133a7..3421cd24 100644 --- a/db_sqlx_postgres/prelude/ops/trait.DBOps.html +++ b/db_sqlx_postgres/prelude/ops/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::prelude::ops - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::prelude::ops - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/trait.GetConnection.html b/db_sqlx_postgres/prelude/ops/trait.GetConnection.html index 58ab270b..b5011422 100644 --- a/db_sqlx_postgres/prelude/ops/trait.GetConnection.html +++ b/db_sqlx_postgres/prelude/ops/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::prelude::ops - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::prelude::ops - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/ops/trait.Migrate.html b/db_sqlx_postgres/prelude/ops/trait.Migrate.html index b9985367..7baaa68d 100644 --- a/db_sqlx_postgres/prelude/ops/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/ops/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::prelude::ops - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::prelude::ops - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/sidebar-items.js b/db_sqlx_postgres/prelude/sidebar-items.js index e7ca825e..98baebce 100644 --- a/db_sqlx_postgres/prelude/sidebar-items.js +++ b/db_sqlx_postgres/prelude/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["ops","meta operations like migration and connecting to a database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a user’s secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","User’s traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["DBError","Login"],"mod":["ops","tests"],"struct":["AddNotification","Captcha","CreateCaptcha","Level","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail"],"trait":["CloneSPDatabase","Connect","DBOps","GetConnection","MCDatabase","Migrate"],"type":["BoxDynError","DBResult"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.AddNotification.html b/db_sqlx_postgres/prelude/struct.AddNotification.html index 32aa1e5c..1b78b800 100644 --- a/db_sqlx_postgres/prelude/struct.AddNotification.html +++ b/db_sqlx_postgres/prelude/struct.AddNotification.html @@ -1,21 +1,39 @@ -AddNotification in db_sqlx_postgres::prelude - Rust
pub struct AddNotification<'a> {
-    pub to: &'a str,
-    pub from: &'a str,
-    pub heading: &'a str,
-    pub message: &'a str,
-}
Expand description

Data required to add notification

-

Fields§

§to: &'a str

who is the notification addressed to?

-
§from: &'a str

notification sender

-
§heading: &'a str

heading of the notification

-
§message: &'a str

message of the notification

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotification in db_sqlx_postgres::prelude - Rust
pub struct AddNotification<'a> {
+    pub to: &'a str,
+    pub from: &'a str,
+    pub heading: &'a str,
+    pub message: &'a str,
+}
Expand description

Data required to add notification

+

Fields§

§to: &'a str

who is the notification addressed to?

+
§from: &'a str

notification sender

+
§heading: &'a str

heading of the notification

+
§message: &'a str

message of the notification

+

Trait Implementations§

§

impl<'a> Clone for AddNotification<'a>

§

fn clone(&self) -> AddNotification<'a>

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
§

impl<'a> Debug for AddNotification<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for AddNotification<'a>

§

fn default() -> AddNotification<'a>

Returns the “default value” for a type. Read more
§

impl<'de, 'a> Deserialize<'de> for AddNotification<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<AddNotification<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>

§

fn eq(&self, other: &AddNotification<'a>) -> 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.
§

impl<'a> Serialize for AddNotification<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for AddNotification<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AddNotification<'a>

§

impl<'a> Send for AddNotification<'a>

§

impl<'a> Sync for AddNotification<'a>

§

impl<'a> Unpin for AddNotification<'a>

§

impl<'a> UnwindSafe for AddNotification<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.Captcha.html b/db_sqlx_postgres/prelude/struct.Captcha.html index ff90924c..91585a08 100644 --- a/db_sqlx_postgres/prelude/struct.Captcha.html +++ b/db_sqlx_postgres/prelude/struct.Captcha.html @@ -1,21 +1,38 @@ -Captcha in db_sqlx_postgres::prelude - Rust
pub struct Captcha {
-    pub config_id: i32,
-    pub duration: i32,
-    pub description: String,
-    pub key: String,
-}
Expand description

Data representing a captcha

-

Fields§

§config_id: i32

Database assigned ID

-
§duration: i32

cool down duration

-
§description: String

description of the captcha

-
§key: String

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Captcha in db_sqlx_postgres::prelude - Rust
pub struct Captcha {
+    pub config_id: i32,
+    pub duration: i32,
+    pub description: String,
+    pub key: String,
+}
Expand description

Data representing a captcha

+

Fields§

§config_id: i32

Database assigned ID

+
§duration: i32

cool down duration

+
§description: String

description of the captcha

+
§key: String

secret key of the captcha

+

Trait Implementations§

§

impl Clone for Captcha

§

fn clone(&self) -> Captcha

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
§

impl Debug for Captcha

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Captcha

§

fn default() -> Captcha

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Captcha

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Captcha, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Captcha> for Captcha

§

fn eq(&self, other: &Captcha) -> 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.
§

impl Serialize for Captcha

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Captcha

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.CreateCaptcha.html b/db_sqlx_postgres/prelude/struct.CreateCaptcha.html index 32747dd9..937c18bf 100644 --- a/db_sqlx_postgres/prelude/struct.CreateCaptcha.html +++ b/db_sqlx_postgres/prelude/struct.CreateCaptcha.html @@ -1,19 +1,37 @@ -CreateCaptcha in db_sqlx_postgres::prelude - Rust
pub struct CreateCaptcha<'a> {
-    pub duration: i32,
-    pub description: &'a str,
-    pub key: &'a str,
-}
Expand description

data required to create new captcha

-

Fields§

§duration: i32

cool down duration

-
§description: &'a str

description of the captcha

-
§key: &'a str

secret key of the captcha

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+CreateCaptcha in db_sqlx_postgres::prelude - Rust
pub struct CreateCaptcha<'a> {
+    pub duration: i32,
+    pub description: &'a str,
+    pub key: &'a str,
+}
Expand description

data required to create new captcha

+

Fields§

§duration: i32

cool down duration

+
§description: &'a str

description of the captcha

+
§key: &'a str

secret key of the captcha

+

Trait Implementations§

§

impl<'a> Clone for CreateCaptcha<'a>

§

fn clone(&self) -> CreateCaptcha<'a>

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
§

impl<'a> Debug for CreateCaptcha<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for CreateCaptcha<'a>

§

fn default() -> CreateCaptcha<'a>

Returns the “default value” for a type. Read more
§

impl<'de, 'a> Deserialize<'de> for CreateCaptcha<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<CreateCaptcha<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>

§

fn eq(&self, other: &CreateCaptcha<'a>) -> 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.
§

impl<'a> Serialize for CreateCaptcha<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for CreateCaptcha<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for CreateCaptcha<'a>

§

impl<'a> Send for CreateCaptcha<'a>

§

impl<'a> Sync for CreateCaptcha<'a>

§

impl<'a> Unpin for CreateCaptcha<'a>

§

impl<'a> UnwindSafe for CreateCaptcha<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.Level.html b/db_sqlx_postgres/prelude/struct.Level.html index acad714f..85afe9ef 100644 --- a/db_sqlx_postgres/prelude/struct.Level.html +++ b/db_sqlx_postgres/prelude/struct.Level.html @@ -1,15 +1,32 @@ -Level in db_sqlx_postgres::prelude - Rust
pub struct Level {
-    pub visitor_threshold: u32,
-    pub difficulty_factor: u32,
-}
Expand description

Level struct that describes threshold-difficulty factor mapping

-

Fields§

§visitor_threshold: u32§difficulty_factor: u32

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Level in db_sqlx_postgres::prelude - Rust
pub struct Level {
+    pub visitor_threshold: u32,
+    pub difficulty_factor: u32,
+}
Expand description

Level struct that describes threshold-difficulty factor mapping

+

Fields§

§visitor_threshold: u32§difficulty_factor: u32

Trait Implementations§

§

impl Clone for Level

§

fn clone(&self) -> Level

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
§

impl Debug for Level

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Level

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Level, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Level> for Level

§

fn eq(&self, other: &Level) -> 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.
§

impl Serialize for Level

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for Level

§

impl StructuralPartialEq for Level

Auto Trait Implementations§

§

impl RefUnwindSafe for Level

§

impl Send for Level

§

impl Sync for Level

§

impl Unpin for Level

§

impl UnwindSafe for Level

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.NameHash.html b/db_sqlx_postgres/prelude/struct.NameHash.html index 3f0902a3..6ae85d87 100644 --- a/db_sqlx_postgres/prelude/struct.NameHash.html +++ b/db_sqlx_postgres/prelude/struct.NameHash.html @@ -1,17 +1,34 @@ -NameHash in db_sqlx_postgres::prelude - Rust
pub struct NameHash {
-    pub username: String,
-    pub hash: String,
-}
Expand description

type encapsulating username and hashed password of a user

-

Fields§

§username: String

username

-
§hash: String

hashed password

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NameHash in db_sqlx_postgres::prelude - Rust
pub struct NameHash {
+    pub username: String,
+    pub hash: String,
+}
Expand description

type encapsulating username and hashed password of a user

+

Fields§

§username: String

username

+
§hash: String

hashed password

+

Trait Implementations§

§

impl Clone for NameHash

§

fn clone(&self) -> NameHash

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
§

impl Debug for NameHash

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NameHash

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<NameHash, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<NameHash> for NameHash

§

fn eq(&self, other: &NameHash) -> 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.
§

impl Serialize for NameHash

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for NameHash

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.Notification.html b/db_sqlx_postgres/prelude/struct.Notification.html index 43c3b7ec..4e03d63f 100644 --- a/db_sqlx_postgres/prelude/struct.Notification.html +++ b/db_sqlx_postgres/prelude/struct.Notification.html @@ -1,23 +1,40 @@ -Notification in db_sqlx_postgres::prelude - Rust
pub struct Notification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<i64>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<i64>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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.
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Notification in db_sqlx_postgres::prelude - Rust
pub struct Notification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<i64>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<i64>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

§

impl Clone for Notification

§

fn clone(&self) -> Notification

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
§

impl Debug for Notification

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Notification

§

fn default() -> Notification

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Notification

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Notification, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
§

impl PartialEq<Notification> for Notification

§

fn eq(&self, other: &Notification) -> 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.
§

impl Serialize for Notification

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Notification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.Register.html b/db_sqlx_postgres/prelude/struct.Register.html index dd3eabec..b2698536 100644 --- a/db_sqlx_postgres/prelude/struct.Register.html +++ b/db_sqlx_postgres/prelude/struct.Register.html @@ -1,21 +1,39 @@ -Register in db_sqlx_postgres::prelude - Rust
pub struct Register<'a> {
-    pub username: &'a str,
-    pub secret: &'a str,
-    pub hash: &'a str,
-    pub email: Option<&'a str>,
-}
Expand description

Data required to register a new user

-

Fields§

§username: &'a str

username of new user

-
§secret: &'a str

secret of new user

-
§hash: &'a str

hashed password of new use

-
§email: Option<&'a str>

Optionally, email of new use

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Register in db_sqlx_postgres::prelude - Rust
pub struct Register<'a> {
+    pub username: &'a str,
+    pub secret: &'a str,
+    pub hash: &'a str,
+    pub email: Option<&'a str>,
+}
Expand description

Data required to register a new user

+

Fields§

§username: &'a str

username of new user

+
§secret: &'a str

secret of new user

+
§hash: &'a str

hashed password of new use

+
§email: Option<&'a str>

Optionally, email of new use

+

Trait Implementations§

§

impl<'a> Clone for Register<'a>

§

fn clone(&self) -> Register<'a>

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
§

impl<'a> Debug for Register<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for Register<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Register<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<Register<'a>> for Register<'a>

§

fn eq(&self, other: &Register<'a>) -> 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.
§

impl<'a> Serialize for Register<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for Register<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Register<'a>

§

impl<'a> Send for Register<'a>

§

impl<'a> Sync for Register<'a>

§

impl<'a> Unpin for Register<'a>

§

impl<'a> UnwindSafe for Register<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.Secret.html b/db_sqlx_postgres/prelude/struct.Secret.html index b738e34d..46e9df75 100644 --- a/db_sqlx_postgres/prelude/struct.Secret.html +++ b/db_sqlx_postgres/prelude/struct.Secret.html @@ -1,15 +1,32 @@ -Secret in db_sqlx_postgres::prelude - Rust
pub struct Secret {
-    pub secret: String,
-}
Expand description

datastructure representing a user’s secret

-

Fields§

§secret: String

user’s secret

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+Secret in db_sqlx_postgres::prelude - Rust
pub struct Secret {
+    pub secret: String,
+}
Expand description

datastructure representing a user’s secret

+

Fields§

§secret: String

user’s secret

+

Trait Implementations§

§

impl Clone for Secret

§

fn clone(&self) -> Secret

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
§

impl Debug for Secret

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Secret

§

fn default() -> Secret

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Secret

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<Secret, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<Secret> for Secret

§

fn eq(&self, other: &Secret) -> 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.
§

impl Serialize for Secret

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for Secret

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.StatsUnixTimestamp.html b/db_sqlx_postgres/prelude/struct.StatsUnixTimestamp.html index 82f2b87c..6bc66a47 100644 --- a/db_sqlx_postgres/prelude/struct.StatsUnixTimestamp.html +++ b/db_sqlx_postgres/prelude/struct.StatsUnixTimestamp.html @@ -1,19 +1,36 @@ -StatsUnixTimestamp in db_sqlx_postgres::prelude - Rust
pub struct StatsUnixTimestamp {
-    pub config_fetches: Vec<i64, Global>,
-    pub solves: Vec<i64, Global>,
-    pub confirms: Vec<i64, Global>,
-}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

-

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

-
§solves: Vec<i64, Global>

times at which the PoW was solved

-
§confirms: Vec<i64, Global>

times at which the PoW token was verified

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+StatsUnixTimestamp in db_sqlx_postgres::prelude - Rust
pub struct StatsUnixTimestamp {
+    pub config_fetches: Vec<i64, Global>,
+    pub solves: Vec<i64, Global>,
+    pub confirms: Vec<i64, Global>,
+}
Expand description

Captcha statistics with time recorded in UNIX epoch formats

+

Fields§

§config_fetches: Vec<i64, Global>

times at which the configuration were fetched

+
§solves: Vec<i64, Global>

times at which the PoW was solved

+
§confirms: Vec<i64, Global>

times at which the PoW token was verified

+

Trait Implementations§

§

impl Clone for StatsUnixTimestamp

§

fn clone(&self) -> StatsUnixTimestamp

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
§

impl Debug for StatsUnixTimestamp

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for StatsUnixTimestamp

§

fn default() -> StatsUnixTimestamp

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for StatsUnixTimestamp

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<StatsUnixTimestamp, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp

§

fn eq(&self, other: &StatsUnixTimestamp) -> 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.
§

impl Serialize for StatsUnixTimestamp

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for StatsUnixTimestamp

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.TrafficPattern.html b/db_sqlx_postgres/prelude/struct.TrafficPattern.html index 3a4539ee..9103c903 100644 --- a/db_sqlx_postgres/prelude/struct.TrafficPattern.html +++ b/db_sqlx_postgres/prelude/struct.TrafficPattern.html @@ -1,19 +1,36 @@ -TrafficPattern in db_sqlx_postgres::prelude - Rust
pub struct TrafficPattern {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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

-

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+TrafficPattern in db_sqlx_postgres::prelude - Rust
pub struct TrafficPattern {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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

+

Trait Implementations§

§

impl Clone for TrafficPattern

§

fn clone(&self) -> TrafficPattern

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
§

impl Debug for TrafficPattern

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for TrafficPattern

§

fn default() -> TrafficPattern

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for TrafficPattern

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<TrafficPattern, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq<TrafficPattern> for TrafficPattern

§

fn eq(&self, other: &TrafficPattern) -> 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.
§

impl Serialize for TrafficPattern

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for TrafficPattern

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/struct.UpdateEmail.html b/db_sqlx_postgres/prelude/struct.UpdateEmail.html index 179cd5ae..8e7c787c 100644 --- a/db_sqlx_postgres/prelude/struct.UpdateEmail.html +++ b/db_sqlx_postgres/prelude/struct.UpdateEmail.html @@ -1,17 +1,35 @@ -UpdateEmail in db_sqlx_postgres::prelude - Rust
pub struct UpdateEmail<'a> {
-    pub username: &'a str,
-    pub new_email: &'a str,
-}
Expand description

data required to update them email of a user

-

Fields§

§username: &'a str

username of the user

-
§new_email: &'a str

new email address of the user

-

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
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+UpdateEmail in db_sqlx_postgres::prelude - Rust
pub struct UpdateEmail<'a> {
+    pub username: &'a str,
+    pub new_email: &'a str,
+}
Expand description

data required to update them email of a user

+

Fields§

§username: &'a str

username of the user

+
§new_email: &'a str

new email address of the user

+

Trait Implementations§

§

impl<'a> Clone for UpdateEmail<'a>

§

fn clone(&self) -> UpdateEmail<'a>

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
§

impl<'a> Debug for UpdateEmail<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, 'a> Deserialize<'de> for UpdateEmail<'a>where + 'de: 'a,

§

fn deserialize<__D>( + __deserializer: __D +) -> Result<UpdateEmail<'a>, <__D as Deserializer<'de>>::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>

§

fn eq(&self, other: &UpdateEmail<'a>) -> 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.
§

impl<'a> Serialize for UpdateEmail<'a>

§

fn serialize<__S>( + &self, + __serializer: __S +) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> StructuralPartialEq for UpdateEmail<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for UpdateEmail<'a>

§

impl<'a> Send for UpdateEmail<'a>

§

impl<'a> Sync for UpdateEmail<'a>

§

impl<'a> Unpin for UpdateEmail<'a>

§

impl<'a> UnwindSafe for UpdateEmail<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/tests/fn.database_works.html b/db_sqlx_postgres/prelude/tests/fn.database_works.html index a11d1a72..49a4eba1 100644 --- a/db_sqlx_postgres/prelude/tests/fn.database_works.html +++ b/db_sqlx_postgres/prelude/tests/fn.database_works.html @@ -1,2 +1,10 @@ -database_works in db_sqlx_postgres::prelude::tests - Rust
pub async fn database_works<T, 'a>(
    db: &T,
    p: &Register<'a>,
    c: &CreateCaptcha<'a>,
    l: &[Level],
    tp: &TrafficPattern,
    an: &AddNotification<'a>
) -> impl Future<Output = ()>where
    T: MCDatabase,
Expand description

test all database functions

-
\ No newline at end of file +database_works in db_sqlx_postgres::prelude::tests - Rust
pub async fn database_works<T, 'a>(
+    db: &T,
+    p: &Register<'a>,
+    c: &CreateCaptcha<'a>,
+    l: &[Level],
+    tp: &TrafficPattern,
+    an: &AddNotification<'a>
+) -> impl Future<Output = ()>where
+    T: MCDatabase,
Expand description

test all database functions

+
\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/tests/index.html b/db_sqlx_postgres/prelude/tests/index.html index 0aed622f..9a605fe5 100644 --- a/db_sqlx_postgres/prelude/tests/index.html +++ b/db_sqlx_postgres/prelude/tests/index.html @@ -1,2 +1,2 @@ -db_sqlx_postgres::prelude::tests - Rust
Expand description

Test utilities

-

Functions

test all database functions
\ No newline at end of file +db_sqlx_postgres::prelude::tests - Rust
Expand description

Test utilities

+

Functions

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/tests/sidebar-items.js b/db_sqlx_postgres/prelude/tests/sidebar-items.js index 4939af2f..b8901262 100644 --- a/db_sqlx_postgres/prelude/tests/sidebar-items.js +++ b/db_sqlx_postgres/prelude/tests/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["database_works","test all database functions"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["database_works"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.CloneSPDatabase.html b/db_sqlx_postgres/prelude/trait.CloneSPDatabase.html index f7b66663..856ca2b4 100644 --- a/db_sqlx_postgres/prelude/trait.CloneSPDatabase.html +++ b/db_sqlx_postgres/prelude/trait.CloneSPDatabase.html @@ -1,5 +1,7 @@ -CloneSPDatabase in db_sqlx_postgres::prelude - Rust
pub trait CloneSPDatabase {
-    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
-}
Expand description

Trait to clone MCDatabase

-

Required Methods§

clone DB

-

Implementors§

\ No newline at end of file +CloneSPDatabase in db_sqlx_postgres::prelude - Rust
pub trait CloneSPDatabase {
+    // Required method
+    fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>;
+}
Expand description

Trait to clone MCDatabase

+

Required Methods§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB

+

Implementors§

§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.Connect.html b/db_sqlx_postgres/prelude/trait.Connect.html index 7092affc..a5328286 100644 --- a/db_sqlx_postgres/prelude/trait.Connect.html +++ b/db_sqlx_postgres/prelude/trait.Connect.html @@ -1,9 +1,16 @@ -Connect in db_sqlx_postgres::prelude - Rust
pub trait Connect {
+Connect in db_sqlx_postgres::prelude - Rust
pub trait Connect {
     type Pool: MCDatabase;
 
-    fn connect<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>
    where
        Self: 'async_trait
; -}
Expand description

Create database connection

-

Required Associated Types§

database specific pool-type

-

Required Methods§

database specific error-type + // Required method + fn connect<'async_trait>( + self + ) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>> + where Self: 'async_trait; +}

Expand description

Create database connection

+

Required Associated Types§

type Pool: MCDatabase

database specific pool-type

+

Required Methods§

fn connect<'async_trait>( + self +) -> Pin<Box<dyn Future<Output = Result<Self::Pool, DBError>> + Send + 'async_trait, Global>>where + Self: 'async_trait,

database specific error-type create connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

source§

impl Connect for ConnectionOptions

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.DBOps.html b/db_sqlx_postgres/prelude/trait.DBOps.html index 2d47daf1..c75c5c00 100644 --- a/db_sqlx_postgres/prelude/trait.DBOps.html +++ b/db_sqlx_postgres/prelude/trait.DBOps.html @@ -1,2 +1,2 @@ -DBOps in db_sqlx_postgres::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

-

Implementors§

\ No newline at end of file +DBOps in db_sqlx_postgres::prelude - Rust
pub trait DBOps: GetConnection + Migrate { }
Expand description

Database operations trait(migrations, pool creation and fetching connection from pool)

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.GetConnection.html b/db_sqlx_postgres/prelude/trait.GetConnection.html index 2550ac14..8a3188b4 100644 --- a/db_sqlx_postgres/prelude/trait.GetConnection.html +++ b/db_sqlx_postgres/prelude/trait.GetConnection.html @@ -1,9 +1,18 @@ -GetConnection in db_sqlx_postgres::prelude - Rust
pub trait GetConnection {
+GetConnection in db_sqlx_postgres::prelude - Rust
pub trait GetConnection {
     type Conn;
 
-    fn get_conn<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

Get database connection

-

Required Associated Types§

database connection type

-

Required Methods§

database specific error-type + // Required method + fn get_conn<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; +}

Expand description

Get database connection

+

Required Associated Types§

type Conn

database connection type

+

Required Methods§

fn get_conn<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<Self::Conn, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type get connection from connection pool

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.MCDatabase.html b/db_sqlx_postgres/prelude/trait.MCDatabase.html index 6e19ce91..95771b1c 100644 --- a/db_sqlx_postgres/prelude/trait.MCDatabase.html +++ b/db_sqlx_postgres/prelude/trait.MCDatabase.html @@ -1,76 +1,587 @@ -MCDatabase in db_sqlx_postgres::prelude - Rust
pub trait MCDatabase: Send + Sync + CloneSPDatabase {
-
Show 36 methods fn ping<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; - fn register<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 Register<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn delete_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn username_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn email_exists<'life0, 'life1, 'async_trait>(
        &'life0 self,
        email: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_email<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 UpdateEmail<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        l: &'life1 Login<'_>
    ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_password<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 NameHash
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_username<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        current: &'life1 str,
        new: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_secret<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_secret_from_captcha<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_secret<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        secret: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_all_user_captchas<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        p: &'life2 CreateCaptcha<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        old_key: &'life2 str,
        new_key: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        levels: &'life3 [Level]
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: Option<&'life1 str>,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn get_captcha_cooldown<'life0, 'life1, 'async_trait>(
        &'life0 self,
        captcha_key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str,
        pattern: &'life3 TrafficPattern
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; - fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        captcha_key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn create_notification<'life0, 'life1, 'async_trait>(
        &'life0 self,
        p: &'life1 AddNotification<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn get_all_unread_notifications<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn mark_notification_read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        username: &'life1 str,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_solve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn record_confirm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; - fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; - fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        user: &'life1 str,
        key: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; -
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this +MCDatabase in db_sqlx_postgres::prelude - Rust

pub trait MCDatabase: Send + Sync + CloneSPDatabase {
+
Show 36 methods // Required methods + fn ping<'life0, 'async_trait>( + &'life0 self + ) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + Self: 'async_trait; + fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> + ) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait; + fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str + ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait; + fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; + fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str + ) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>> + where 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait; +
}
Expand description

mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait.

-

Required Methods§

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-

Implementors§

\ No newline at end of file +

Required Methods§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

ping DB

+

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

register a new user

+

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

delete a user

+

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if username exists

+

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Option<String>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get user email

+

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

check if email exists

+

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update a user’s email

+

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = Result<NameHash, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s password

+

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

update user’s password

+

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update username

+

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret

+

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Secret, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get a user’s secret from a captcha key

+

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update a user’s secret

+

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

create new captcha

+

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Captcha, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha config

+

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Captcha, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get all captchas belonging to user

+

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

update captcha metadata; doesn’t change captcha key

+

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

update captcha key; doesn’t change metadata

+

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add levels to captcha

+

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<bool, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

check if captcha exists

+

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete all levels of a captcha

+

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete captcha

+

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Level, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get captcha levels

+

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<i32, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

Get captcha’s cooldown period

+

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait, + Self: 'async_trait,

Add traffic configuration

+

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<TrafficPattern, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Get traffic configuration

+

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

Delete traffic configuration

+

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

create new notification

+

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<Vec<Notification, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

get all unread notifications

+

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

mark a notification read

+

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig fetches

+

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig solves

+

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + Self: 'async_trait,

record PoWConfig confirms

+

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig fetches

+

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig solves

+

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = Result<Vec<i64, Global>, DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + Self: 'async_trait,

fetch PoWConfig confirms

+

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/trait.Migrate.html b/db_sqlx_postgres/prelude/trait.Migrate.html index d1008b31..2d19c1cb 100644 --- a/db_sqlx_postgres/prelude/trait.Migrate.html +++ b/db_sqlx_postgres/prelude/trait.Migrate.html @@ -1,6 +1,15 @@ -Migrate in db_sqlx_postgres::prelude - Rust
pub trait Migrate: MCDatabase {
-    fn migrate<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; -}
Expand description

database migrations

-

Required Methods§

database specific error-type +Migrate in db_sqlx_postgres::prelude - Rust

pub trait Migrate: MCDatabase {
+    // Required method
+    fn migrate<'life0, 'async_trait>(
+        &'life0 self
+    ) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>
+       where 'life0: 'async_trait,
+             Self: 'async_trait;
+}
Expand description

database migrations

+

Required Methods§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = Result<(), DBError>> + Send + 'async_trait, Global>>where + 'life0: 'async_trait, + Self: 'async_trait,

database specific error-type run migrations

-

Implementors§

\ No newline at end of file +

Implementors§

\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/type.BoxDynError.html b/db_sqlx_postgres/prelude/type.BoxDynError.html index e1c7b90f..19647981 100644 --- a/db_sqlx_postgres/prelude/type.BoxDynError.html +++ b/db_sqlx_postgres/prelude/type.BoxDynError.html @@ -1,2 +1,2 @@ -BoxDynError in db_sqlx_postgres::prelude - Rust

Type Definition db_sqlx_postgres::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Sync + Send + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

-
\ No newline at end of file +BoxDynError in db_sqlx_postgres::prelude - Rust

Type Definition db_sqlx_postgres::prelude::BoxDynError

pub type BoxDynError = Box<dyn Error + Send + Sync + 'static, Global>;
Expand description

Convenience type alias for grouping driver-specific errors

+
\ No newline at end of file diff --git a/db_sqlx_postgres/prelude/type.DBResult.html b/db_sqlx_postgres/prelude/type.DBResult.html index fffa2e64..d7551719 100644 --- a/db_sqlx_postgres/prelude/type.DBResult.html +++ b/db_sqlx_postgres/prelude/type.DBResult.html @@ -1,2 +1,2 @@ -DBResult in db_sqlx_postgres::prelude - Rust

Type Definition db_sqlx_postgres::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

-
\ No newline at end of file +DBResult in db_sqlx_postgres::prelude - Rust

Type Definition db_sqlx_postgres::prelude::DBResult

pub type DBResult<V> = Result<V, DBError>;
Expand description

Generic result data structure

+
\ No newline at end of file diff --git a/db_sqlx_postgres/sidebar-items.js b/db_sqlx_postgres/sidebar-items.js index 9dd85c80..e12270b4 100644 --- a/db_sqlx_postgres/sidebar-items.js +++ b/db_sqlx_postgres/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["ConnectionOptions","Connect to database"]],"mod":[["dev",""],["errors","Error-handling utilities"],["prelude",""]],"struct":[["Conn","Use an existing database pool"],["Database",""],["Fresh",""],["InnerNotification","Represents notification"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["ConnectionOptions"],"mod":["dev","errors","prelude"],"struct":["Conn","Database","Fresh","InnerNotification"]}; \ No newline at end of file diff --git a/db_sqlx_postgres/struct.Conn.html b/db_sqlx_postgres/struct.Conn.html index f69f35c8..59c15a18 100644 --- a/db_sqlx_postgres/struct.Conn.html +++ b/db_sqlx_postgres/struct.Conn.html @@ -1,10 +1,18 @@ -Conn in db_sqlx_postgres - Rust

Struct db_sqlx_postgres::Conn

source ·
pub struct Conn(pub PgPool);
Expand description

Use an existing database pool

-

Tuple Fields§

§0: PgPool

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).

+Conn in db_sqlx_postgres - Rust

Struct db_sqlx_postgres::Conn

source ·
pub struct Conn(pub PgPool);
Expand description

Use an existing database pool

+

Tuple Fields§

§0: PgPool

Auto Trait Implementations§

§

impl !RefUnwindSafe for Conn

§

impl Send for Conn

§

impl Sync for Conn

§

impl Unpin for Conn

§

impl !UnwindSafe for Conn

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/struct.Database.html b/db_sqlx_postgres/struct.Database.html index d93bcd90..465744b5 100644 --- a/db_sqlx_postgres/struct.Database.html +++ b/db_sqlx_postgres/struct.Database.html @@ -1,48 +1,317 @@ -Database in db_sqlx_postgres - Rust
pub struct Database {
+Database in db_sqlx_postgres - Rust
pub struct Database {
     pub pool: PgPool,
-}

Fields§

§pool: PgPool

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

ping DB

-

register a new user

-

delete a user

-

check if username exists

-

get user email

-

check if email exists

-

update a user’s email

-

get a user’s password

-

update user’s password

-

update username

-

get a user’s secret

-

get a user’s secret from a captcha key

-

update a user’s secret

-

create new captcha

-

Get captcha config

-

Get all captchas belonging to user

-

update captcha metadata; doesn’t change captcha key

-

update captcha key; doesn’t change metadata

-

Add levels to captcha

-

check if captcha exists

-

Delete all levels of a captcha

-

Delete captcha

-

Get captcha levels

-

Get captcha’s cooldown period

-

Add traffic configuration

-

Get traffic configuration

-

Delete traffic configuration

-

create new notification

-

get all unread notifications

-

mark a notification read

-

record PoWConfig fetches

-

record PoWConfig solves

-

record PoWConfig confirms

-

fetch PoWConfig fetches

-

fetch PoWConfig solves

-

fetch PoWConfig confirms

-
database specific error-type -run migrations

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
clone DB

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).

+}

Fields§

§pool: PgPool

Trait Implementations§

source§

impl Clone for Database

source§

fn clone(&self) -> Database

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 MCDatabase for Database

source§

fn ping<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait,

ping DB

+
source§

fn register<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 Register<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

register a new user

+
source§

fn delete_user<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

delete a user

+
source§

fn username_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

check if username exists

+
source§

fn get_email<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Option<String>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get user email

+
source§

fn email_exists<'life0, 'life1, 'async_trait>( + &'life0 self, + email: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

check if email exists

+
source§

fn update_email<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 UpdateEmail<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

update a user’s email

+
source§

fn get_password<'life0, 'life1, 'async_trait>( + &'life0 self, + l: &'life1 Login<'_> +) -> Pin<Box<dyn Future<Output = DBResult<NameHash>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s password

+
source§

fn update_password<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 NameHash +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

update user’s password

+
source§

fn update_username<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + current: &'life1 str, + new: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update username

+
source§

fn get_secret<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s secret

+
source§

fn get_secret_from_captcha<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Secret>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get a user’s secret from a captcha key

+
source§

fn update_secret<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + secret: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update a user’s secret

+
source§

fn create_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

create new captcha

+
source§

fn get_captcha_config<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Captcha>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get captcha config

+
source§

fn get_all_user_captchas<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Captcha>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

Get all captchas belonging to user

+
source§

fn update_captcha_metadata<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + p: &'life2 CreateCaptcha<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

update captcha metadata; doesn’t change captcha key

+
source§

fn update_captcha_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + old_key: &'life2 str, + new_key: &'life3 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

update captcha key; doesn’t change metadata

+
source§

fn add_captcha_levels<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + levels: &'life3 [Level] +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

Add levels to captcha

+
source§

fn captcha_exists<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<bool>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

check if captcha exists

+
source§

fn delete_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete all levels of a captcha

+
source§

fn delete_captcha<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete captcha

+
source§

fn get_captcha_levels<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: Option<&'life1 str>, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Level>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get captcha levels

+
source§

fn get_captcha_cooldown<'life0, 'life1, 'async_trait>( + &'life0 self, + captcha_key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<i32>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

Get captcha’s cooldown period

+
source§

fn add_traffic_pattern<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str, + pattern: &'life3 TrafficPattern +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

Add traffic configuration

+
source§

fn get_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<TrafficPattern>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Get traffic configuration

+
source§

fn delete_traffic_pattern<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + username: &'life1 str, + captcha_key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

Delete traffic configuration

+
source§

fn create_notification<'life0, 'life1, 'async_trait>( + &'life0 self, + p: &'life1 AddNotification<'_> +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

create new notification

+
source§

fn get_all_unread_notifications<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<Notification>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

get all unread notifications

+
source§

fn mark_notification_read<'life0, 'life1, 'async_trait>( + &'life0 self, + username: &'life1 str, + id: i32 +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

mark a notification read

+
source§

fn record_fetch<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig fetches

+
source§

fn record_solve<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig solves

+
source§

fn record_confirm<'life0, 'life1, 'async_trait>( + &'life0 self, + key: &'life1 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait,

record PoWConfig confirms

+
source§

fn fetch_config_fetched<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig fetches

+
source§

fn fetch_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig solves

+
source§

fn fetch_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + user: &'life1 str, + key: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<Vec<i64>>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

fetch PoWConfig confirms

+
source§

impl Migrate for Database

source§

fn migrate<'life0, 'async_trait>( + &'life0 self +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait,

database specific error-type +run migrations

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneSPDatabase for Twhere + T: MCDatabase + Clone + 'static,

§

fn clone_db(&self) -> Box<dyn MCDatabase + 'static, Global>

clone DB
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/struct.Fresh.html b/db_sqlx_postgres/struct.Fresh.html index 926ecb36..f37d1be5 100644 --- a/db_sqlx_postgres/struct.Fresh.html +++ b/db_sqlx_postgres/struct.Fresh.html @@ -1,13 +1,21 @@ -Fresh in db_sqlx_postgres - Rust

Struct db_sqlx_postgres::Fresh

source ·
pub struct Fresh {
+Fresh in db_sqlx_postgres - Rust

Struct db_sqlx_postgres::Fresh

source ·
pub struct Fresh {
     pub pool_options: PgPoolOptions,
-    pub disable_logging: bool,
-    pub url: String,
-}

Fields§

§pool_options: PgPoolOptions§disable_logging: bool§url: String

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).

+ pub disable_logging: bool, + pub url: String, +}

Fields§

§pool_options: PgPoolOptions§disable_logging: bool§url: String

Auto Trait Implementations§

§

impl !RefUnwindSafe for Fresh

§

impl Send for Fresh

§

impl Sync for Fresh

§

impl Unpin for Fresh

§

impl !UnwindSafe for Fresh

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/db_sqlx_postgres/struct.InnerNotification.html b/db_sqlx_postgres/struct.InnerNotification.html index e0b7c9c2..12d982a2 100644 --- a/db_sqlx_postgres/struct.InnerNotification.html +++ b/db_sqlx_postgres/struct.InnerNotification.html @@ -1,23 +1,32 @@ -InnerNotification in db_sqlx_postgres - Rust
pub struct InnerNotification {
-    pub name: Option<String>,
-    pub heading: Option<String>,
-    pub message: Option<String>,
-    pub received: Option<OffsetDateTime>,
-    pub id: Option<i32>,
-}
Expand description

Represents notification

-

Fields§

§name: Option<String>

receiver name of the notification

-
§heading: Option<String>

heading of the notification

-
§message: Option<String>

message of the notification

-
§received: Option<OffsetDateTime>

when notification was received

-
§id: Option<i32>

db assigned ID of the notification

-

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
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used -by ==.
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§

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).

+InnerNotification in db_sqlx_postgres - Rust
pub struct InnerNotification {
+    pub name: Option<String>,
+    pub heading: Option<String>,
+    pub message: Option<String>,
+    pub received: Option<OffsetDateTime>,
+    pub id: Option<i32>,
+}
Expand description

Represents notification

+

Fields§

§name: Option<String>

receiver name of the notification

+
§heading: Option<String>

heading of the notification

+
§message: Option<String>

message of the notification

+
§received: Option<OffsetDateTime>

when notification was received

+
§id: Option<i32>

db assigned ID of the notification

+

Trait Implementations§

source§

impl Clone for InnerNotification

source§

fn clone(&self) -> InnerNotification

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 InnerNotification

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for InnerNotification

source§

fn default() -> InnerNotification

Returns the “default value” for a type. Read more
source§

impl From<InnerNotification> for Notification

source§

fn from(n: InnerNotification) -> Self

Converts to this type from the input type.
source§

impl PartialEq<InnerNotification> for InnerNotification

source§

fn eq(&self, other: &InnerNotification) -> 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 StructuralPartialEq for InnerNotification

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/help.html b/help.html index 1f5620a2..a174e45a 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Rustdoc help

Rustdoc help

Back
\ No newline at end of file +Rustdoc help

Rustdoc help

Back
\ No newline at end of file diff --git a/implementors/actix_auth_middleware/trait.GetLoginRoute.js b/implementors/actix_auth_middleware/trait.GetLoginRoute.js index 67f0784a..db8a9f30 100644 --- a/implementors/actix_auth_middleware/trait.GetLoginRoute.js +++ b/implementors/actix_auth_middleware/trait.GetLoginRoute.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mcaptcha":[["impl GetLoginRoute for Auth"],["impl GetLoginRoute for Routes"],["impl GetLoginRoute for Auth"],["impl GetLoginRoute for Routes"]] +"mcaptcha":[["impl GetLoginRoute for Auth"],["impl GetLoginRoute for Routes"],["impl GetLoginRoute for Routes"],["impl GetLoginRoute for Auth"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/actix_web/error/response_error/trait.ResponseError.js b/implementors/actix_web/error/response_error/trait.ResponseError.js index 9a6c228e..2b0e3eb0 100644 --- a/implementors/actix_web/error/response_error/trait.ResponseError.js +++ b/implementors/actix_web/error/response_error/trait.ResponseError.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mcaptcha":[["impl ResponseError for ServiceError"],["impl ResponseError for PageError"]] +"mcaptcha":[["impl ResponseError for PageError"],["impl ResponseError for ServiceError"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/actix_web/service/trait.HttpServiceFactory.js b/implementors/actix_web/service/trait.HttpServiceFactory.js index d8749937..fadd77c3 100644 --- a/implementors/actix_web/service/trait.HttpServiceFactory.js +++ b/implementors/actix_web/service/trait.HttpServiceFactory.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mcaptcha":[["impl HttpServiceFactory for delete_account"],["impl HttpServiceFactory for email_exists"],["impl HttpServiceFactory for set_email"],["impl HttpServiceFactory for update_user_password"],["impl HttpServiceFactory for get_secret"],["impl HttpServiceFactory for update_user_secret"],["impl HttpServiceFactory for username_exists"],["impl HttpServiceFactory for set_username"],["impl HttpServiceFactory for register"],["impl HttpServiceFactory for login"],["impl HttpServiceFactory for signout"],["impl HttpServiceFactory for create"],["impl HttpServiceFactory for delete"],["impl HttpServiceFactory for create"],["impl HttpServiceFactory for update"],["impl HttpServiceFactory for get_captcha"],["impl HttpServiceFactory for get"],["impl HttpServiceFactory for update_key"],["impl HttpServiceFactory for update_captcha"],["impl HttpServiceFactory for build_details"],["impl HttpServiceFactory for health"],["impl HttpServiceFactory for add_notification"],["impl HttpServiceFactory for get_notification"],["impl HttpServiceFactory for mark_read"],["impl HttpServiceFactory for get_config"],["impl HttpServiceFactory for verify_pow"],["impl HttpServiceFactory for validate_captcha_token"],["impl HttpServiceFactory for dist"],["impl HttpServiceFactory for spec"],["impl HttpServiceFactory for index"],["impl HttpServiceFactory for login"],["impl HttpServiceFactory for join"],["impl HttpServiceFactory for error"],["impl HttpServiceFactory for notifications"],["impl HttpServiceFactory for settings"],["impl HttpServiceFactory for delete_account"],["impl HttpServiceFactory for update_secret"],["impl HttpServiceFactory for advance"],["impl HttpServiceFactory for easy"],["impl HttpServiceFactory for delete_sitekey"],["impl HttpServiceFactory for advance"],["impl HttpServiceFactory for easy"],["impl HttpServiceFactory for list_sitekeys"],["impl HttpServiceFactory for view_sitekey"],["impl HttpServiceFactory for panel"],["impl HttpServiceFactory for sitemap"],["impl HttpServiceFactory for static_files"],["impl HttpServiceFactory for favicons"],["impl HttpServiceFactory for show_widget"]] +"mcaptcha":[["impl HttpServiceFactory for list_sitekeys"],["impl HttpServiceFactory for username_exists"],["impl HttpServiceFactory for join"],["impl HttpServiceFactory for index"],["impl HttpServiceFactory for panel"],["impl HttpServiceFactory for easy"],["impl HttpServiceFactory for delete_account"],["impl HttpServiceFactory for update_key"],["impl HttpServiceFactory for mark_read"],["impl HttpServiceFactory for health"],["impl HttpServiceFactory for create"],["impl HttpServiceFactory for view_sitekey"],["impl HttpServiceFactory for dist"],["impl HttpServiceFactory for login"],["impl HttpServiceFactory for get_secret"],["impl HttpServiceFactory for get"],["impl HttpServiceFactory for advance"],["impl HttpServiceFactory for verify_pow"],["impl HttpServiceFactory for static_files"],["impl HttpServiceFactory for signout"],["impl HttpServiceFactory for validate_captcha_token"],["impl HttpServiceFactory for update"],["impl HttpServiceFactory for notifications"],["impl HttpServiceFactory for favicons"],["impl HttpServiceFactory for delete"],["impl HttpServiceFactory for update_secret"],["impl HttpServiceFactory for settings"],["impl HttpServiceFactory for email_exists"],["impl HttpServiceFactory for error"],["impl HttpServiceFactory for delete_sitekey"],["impl HttpServiceFactory for register"],["impl HttpServiceFactory for get_notification"],["impl HttpServiceFactory for update_user_secret"],["impl HttpServiceFactory for update_captcha"],["impl HttpServiceFactory for add_notification"],["impl HttpServiceFactory for set_username"],["impl HttpServiceFactory for create"],["impl HttpServiceFactory for advance"],["impl HttpServiceFactory for get_config"],["impl HttpServiceFactory for delete_account"],["impl HttpServiceFactory for get_captcha"],["impl HttpServiceFactory for login"],["impl HttpServiceFactory for build_details"],["impl HttpServiceFactory for sitemap"],["impl HttpServiceFactory for spec"],["impl HttpServiceFactory for easy"],["impl HttpServiceFactory for set_email"],["impl HttpServiceFactory for show_widget"],["impl HttpServiceFactory for update_user_password"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/clone/trait.Clone.js b/implementors/core/clone/trait.Clone.js index e63bf024..3d8599d0 100644 --- a/implementors/core/clone/trait.Clone.js +++ b/implementors/core/clone/trait.Clone.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl<'a> Clone for Register<'a>"],["impl<'a> Clone for UpdateEmail<'a>"],["impl<'a> Clone for Login<'a>"],["impl Clone for NameHash"],["impl Clone for StatsUnixTimestamp"],["impl Clone for Notification"],["impl<'a> Clone for AddNotification<'a>"],["impl Clone for TrafficPattern"],["impl<'a> Clone for CreateCaptcha<'a>"],["impl Clone for Captcha"],["impl Clone for Secret"],["impl Clone for Box<dyn MCDatabase>"]], -"db_sqlx_maria":[["impl Clone for Database"],["impl Clone for InnerNotification"]], -"db_sqlx_postgres":[["impl Clone for Database"],["impl Clone for InnerNotification"]], -"mcaptcha":[["impl Clone for Email"],["impl Clone for ChangePasswordReqest"],["impl Clone for Username"],["impl Clone for AccountCheckPayload"],["impl Clone for AccountCheckResp"],["impl Clone for Register"],["impl Clone for Login"],["impl Clone for Password"],["impl Clone for MCaptchaDetails"],["impl Clone for DeleteCaptcha"],["impl Clone for TrafficPatternRequest"],["impl Clone for UpdateTrafficPattern"],["impl Clone for Levels"],["impl Clone for I32Levels"],["impl Clone for StatsPayload"],["impl Clone for BuildDetails"],["impl Clone for BuildDetailsBuilder"],["impl Clone for Health"],["impl Clone for HealthBuilder"],["impl Clone for AddNotificationRequest"],["impl Clone for NotificationResp"],["impl Clone for GetConfigPayload"],["impl Clone for ValidationToken"],["impl Clone for CaptchaValidateResp"],["impl Clone for VerifyCaptchaResultPayload"],["impl Clone for Date"],["impl<'a> Clone for IndexPage<'a>"],["impl Clone for IndexPage"],["impl Clone for IndexPage"],["impl<'a, K, V> Clone for SudoPage<'a, K, V>where
    K: Display + Render + Clone,
    V: Display + Render + Clone,
"],["impl<'a> Clone for ErrorPage<'a>"],["impl<'a> Clone for IndexPage<'a>"],["impl<'a> Clone for AdvanceIndexPage<'a>"],["impl<'a> Clone for EasyIndexPage<'a>"],["impl Clone for AdvanceEditPage"],["impl<'a> Clone for EasyEditPage<'a>"],["impl Clone for IndexPage"],["impl Clone for IndexPage"],["impl Clone for IndexPage"],["impl Clone for IndexPage"],["impl Clone for Server"],["impl Clone for Captcha"],["impl Clone for DefaultDifficultyStrategy"],["impl Clone for Smtp"],["impl Clone for DBType"],["impl Clone for Database"],["impl Clone for Redis"],["impl Clone for Settings"],["impl Clone for CaptchaStats"],["impl Clone for Real"],["impl Clone for Dummy"],["impl Clone for IndexPage"]] +"db_core":[["impl Clone for NameHash"],["impl<'a> Clone for UpdateEmail<'a>"],["impl Clone for Box<dyn MCDatabase>"],["impl Clone for StatsUnixTimestamp"],["impl<'a> Clone for AddNotification<'a>"],["impl Clone for TrafficPattern"],["impl Clone for Captcha"],["impl<'a> Clone for Register<'a>"],["impl Clone for Notification"],["impl Clone for Secret"],["impl<'a> Clone for CreateCaptcha<'a>"],["impl<'a> Clone for Login<'a>"]], +"db_sqlx_maria":[["impl Clone for Database"],["impl Clone for InnerNotification"]], +"db_sqlx_postgres":[["impl Clone for InnerNotification"],["impl Clone for Database"]], +"mcaptcha":[["impl Clone for Settings"],["impl Clone for ChangePasswordReqest"],["impl<'a> Clone for EasyIndexPage<'a>"],["impl Clone for Register"],["impl Clone for IndexPage"],["impl Clone for TrafficPatternRequest"],["impl Clone for Real"],["impl Clone for GetConfigPayload"],["impl Clone for DefaultDifficultyStrategy"],["impl Clone for UpdateTrafficPattern"],["impl Clone for Date"],["impl Clone for Health"],["impl Clone for Dummy"],["impl Clone for IndexPage"],["impl Clone for Login"],["impl Clone for IndexPage"],["impl<'a> Clone for ErrorPage<'a>"],["impl<'a, K, V> Clone for SudoPage<'a, K, V>where\n K: Display + Render + Clone,\n V: Display + Render + Clone,"],["impl Clone for IndexPage"],["impl<'a> Clone for EasyEditPage<'a>"],["impl<'a> Clone for IndexPage<'a>"],["impl Clone for IndexPage"],["impl<'a> Clone for AdvanceIndexPage<'a>"],["impl Clone for Username"],["impl Clone for Database"],["impl Clone for AddNotificationRequest"],["impl Clone for StatsPayload"],["impl Clone for VerifyCaptchaResultPayload"],["impl Clone for NotificationResp"],["impl Clone for CaptchaStats"],["impl Clone for Captcha"],["impl Clone for ValidationToken"],["impl Clone for I32Levels"],["impl Clone for Password"],["impl Clone for DBType"],["impl Clone for Levels"],["impl Clone for HealthBuilder"],["impl Clone for IndexPage"],["impl Clone for BuildDetailsBuilder"],["impl Clone for Smtp"],["impl Clone for IndexPage"],["impl Clone for AccountCheckPayload"],["impl Clone for Server"],["impl Clone for CaptchaValidateResp"],["impl Clone for Redis"],["impl Clone for AdvanceEditPage"],["impl<'a> Clone for IndexPage<'a>"],["impl Clone for BuildDetails"],["impl Clone for MCaptchaDetails"],["impl Clone for AccountCheckResp"],["impl Clone for Email"],["impl Clone for DeleteCaptcha"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/cmp/trait.PartialEq.js b/implementors/core/cmp/trait.PartialEq.js index 839d8a25..6b40bb6a 100644 --- a/implementors/core/cmp/trait.PartialEq.js +++ b/implementors/core/cmp/trait.PartialEq.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl<'a> PartialEq<Register<'a>> for Register<'a>"],["impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>"],["impl<'a> PartialEq<Login<'a>> for Login<'a>"],["impl PartialEq<NameHash> for NameHash"],["impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp"],["impl PartialEq<Notification> for Notification"],["impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>"],["impl PartialEq<TrafficPattern> for TrafficPattern"],["impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>"],["impl PartialEq<Captcha> for Captcha"],["impl PartialEq<Secret> for Secret"]], -"db_sqlx_maria":[["impl PartialEq<InnerNotification> for InnerNotification"]], -"db_sqlx_postgres":[["impl PartialEq<InnerNotification> for InnerNotification"]], -"mcaptcha":[["impl PartialEq<AddNotificationRequest> for AddNotificationRequest"],["impl PartialEq<NotificationResp> for NotificationResp"],["impl PartialEq<DBErrorWrapper> for DBErrorWrapper"],["impl PartialEq<SmtpErrorWrapper> for SmtpErrorWrapper"],["impl PartialEq<ServiceError> for ServiceError"],["impl PartialEq<PageError> for PageError"],["impl PartialEq<DBType> for DBType"],["impl PartialEq<CaptchaStats> for CaptchaStats"],["impl PartialEq<Real> for Real"],["impl PartialEq<Dummy> for Dummy"]] +"db_core":[["impl<'a> PartialEq<CreateCaptcha<'a>> for CreateCaptcha<'a>"],["impl<'a> PartialEq<UpdateEmail<'a>> for UpdateEmail<'a>"],["impl<'a> PartialEq<AddNotification<'a>> for AddNotification<'a>"],["impl PartialEq<TrafficPattern> for TrafficPattern"],["impl<'a> PartialEq<Login<'a>> for Login<'a>"],["impl PartialEq<Notification> for Notification"],["impl<'a> PartialEq<Register<'a>> for Register<'a>"],["impl PartialEq<NameHash> for NameHash"],["impl PartialEq<Captcha> for Captcha"],["impl PartialEq<Secret> for Secret"],["impl PartialEq<StatsUnixTimestamp> for StatsUnixTimestamp"]], +"db_sqlx_maria":[["impl PartialEq<InnerNotification> for InnerNotification"]], +"db_sqlx_postgres":[["impl PartialEq<InnerNotification> for InnerNotification"]], +"mcaptcha":[["impl PartialEq<NotificationResp> for NotificationResp"],["impl PartialEq<PageError> for PageError"],["impl PartialEq<CaptchaStats> for CaptchaStats"],["impl PartialEq<Real> for Real"],["impl PartialEq<DBType> for DBType"],["impl PartialEq<SmtpErrorWrapper> for SmtpErrorWrapper"],["impl PartialEq<DBErrorWrapper> for DBErrorWrapper"],["impl PartialEq<Dummy> for Dummy"],["impl PartialEq<ServiceError> for ServiceError"],["impl PartialEq<AddNotificationRequest> for AddNotificationRequest"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index 2f1a0e9d..27b33565 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"]] +"db_sqlx_maria":[["impl From<InnerNotification> for Notification"]], +"db_sqlx_postgres":[["impl From<InnerNotification> for Notification"]], +"mcaptcha":[["impl From<DBError> for PageError"],["impl From<VerifyCaptchaResultPayload> for VerifyCaptchaResult"],["impl From<Notification> for NotificationResp"],["impl From<ServiceError> for PageError"],["impl From<RecvError> for ServiceError"],["impl From<CaptchaError> for ServiceError"],["impl From<UninitializedFieldError> for BuildDetailsBuilderError"],["impl From<UninitializedFieldError> for HealthBuilderError"],["impl From<ParseError> for ServiceError"],["impl From<&TrafficPatternRequest> for TrafficPattern"],["impl From<DBError> for ServiceError"],["impl From<ChangePasswordReqest> for UpdatePassword"],["impl From<MailboxError> for ServiceError"],["impl From<Notification> for Notification"],["impl From<String> for BuildDetailsBuilderError"],["impl From<CredsError> for ServiceError"],["impl From<Error> for ServiceError"],["impl From<ValidationErrors> for ServiceError"],["impl From<String> for HealthBuilderError"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/default/trait.Default.js b/implementors/core/default/trait.Default.js index 75dff833..5ecb39a8 100644 --- a/implementors/core/default/trait.Default.js +++ b/implementors/core/default/trait.Default.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"db_core":[["impl Default for StatsUnixTimestamp"],["impl Default for Notification"],["impl<'a> Default for AddNotification<'a>"],["impl Default for TrafficPattern"],["impl<'a> Default for CreateCaptcha<'a>"],["impl Default for Captcha"],["impl Default for Secret"]], -"db_sqlx_postgres":[["impl Default for InnerNotification"]], -"mcaptcha":[["impl Default for TrafficPatternRequest"],["impl Default for BuildDetailsBuilder"],["impl Default for HealthBuilder"],["impl Default for AddNotificationRequest"],["impl Default for NotificationResp"],["impl Default for IndexPage"],["impl Default for IndexPage"],["impl<'a> Default for AdvanceIndexPage<'a>"],["impl<'a> Default for EasyIndexPage<'a>"],["impl Default for IndexPage"],["impl Default for CaptchaStats"],["impl Default for Real"],["impl Default for Dummy"]] +"db_core":[["impl Default for Captcha"],["impl Default for Notification"],["impl Default for StatsUnixTimestamp"],["impl<'a> Default for CreateCaptcha<'a>"],["impl Default for Secret"],["impl<'a> Default for AddNotification<'a>"],["impl Default for TrafficPattern"]], +"db_sqlx_postgres":[["impl Default for InnerNotification"]], +"mcaptcha":[["impl Default for Dummy"],["impl Default for BuildDetailsBuilder"],["impl Default for IndexPage"],["impl Default for Real"],["impl Default for IndexPage"],["impl Default for NotificationResp"],["impl Default for HealthBuilder"],["impl Default for TrafficPatternRequest"],["impl<'a> Default for EasyIndexPage<'a>"],["impl Default for AddNotificationRequest"],["impl Default for CaptchaStats"],["impl Default for IndexPage"],["impl<'a> Default for AdvanceIndexPage<'a>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/error/trait.Error.js b/implementors/core/error/trait.Error.js index d94d804c..2cfa1c95 100644 --- a/implementors/core/error/trait.Error.js +++ b/implementors/core/error/trait.Error.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"db_core":[["impl Error for DBError"]], -"mcaptcha":[["impl Error for BuildDetailsBuilderError"],["impl Error for HealthBuilderError"],["impl Error for SmtpErrorWrapper"],["impl Error for DBErrorWrapper"],["impl Error for ServiceError"],["impl Error for PageError"]] +"db_core":[["impl Error for DBError"]], +"mcaptcha":[["impl Error for ServiceError"],["impl Error for DBErrorWrapper"],["impl Error for PageError"],["impl Error for HealthBuilderError"],["impl Error for SmtpErrorWrapper"],["impl Error for BuildDetailsBuilderError"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/fmt/trait.Debug.js b/implementors/core/fmt/trait.Debug.js index 397afc7f..6647a85b 100644 --- a/implementors/core/fmt/trait.Debug.js +++ b/implementors/core/fmt/trait.Debug.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl Debug for DBError"],["impl<'a> Debug for Register<'a>"],["impl<'a> Debug for UpdateEmail<'a>"],["impl<'a> Debug for Login<'a>"],["impl Debug for NameHash"],["impl Debug for StatsUnixTimestamp"],["impl Debug for Notification"],["impl<'a> Debug for AddNotification<'a>"],["impl Debug for TrafficPattern"],["impl<'a> Debug for CreateCaptcha<'a>"],["impl Debug for Captcha"],["impl Debug for Secret"]], -"db_sqlx_maria":[["impl Debug for InnerNotification"]], -"db_sqlx_postgres":[["impl Debug for InnerNotification"]], -"mcaptcha":[["impl Debug for Email"],["impl Debug for ChangePasswordReqest"],["impl Debug for Username"],["impl Debug for AccountCheckPayload"],["impl Debug for AccountCheckResp"],["impl Debug for Register"],["impl Debug for Login"],["impl Debug for Password"],["impl Debug for MCaptchaDetails"],["impl Debug for DeleteCaptcha"],["impl Debug for TrafficPatternRequest"],["impl Debug for UpdateTrafficPattern"],["impl Debug for Levels"],["impl Debug for I32Levels"],["impl Debug for StatsPayload"],["impl Debug for BuildDetails"],["impl Debug for BuildDetailsBuilderError"],["impl Debug for Health"],["impl Debug for HealthBuilderError"],["impl Debug for AddNotificationRequest"],["impl Debug for GetConfigPayload"],["impl Debug for ValidationToken"],["impl Debug for CaptchaValidateResp"],["impl Debug for VerifyCaptchaResultPayload"],["impl Debug for Date"],["impl Debug for SmtpErrorWrapper"],["impl Debug for DBErrorWrapper"],["impl Debug for ServiceError"],["impl Debug for PageError"],["impl Debug for Server"],["impl Debug for Captcha"],["impl Debug for DefaultDifficultyStrategy"],["impl Debug for Smtp"],["impl Debug for DBType"],["impl Debug for Database"],["impl Debug for Redis"],["impl Debug for Settings"],["impl Debug for CaptchaStats"],["impl Debug for Real"],["impl Debug for Dummy"]] +"db_core":[["impl Debug for Notification"],["impl<'a> Debug for Login<'a>"],["impl Debug for TrafficPattern"],["impl<'a> Debug for AddNotification<'a>"],["impl<'a> Debug for Register<'a>"],["impl<'a> Debug for UpdateEmail<'a>"],["impl Debug for DBError"],["impl Debug for StatsUnixTimestamp"],["impl Debug for Captcha"],["impl Debug for NameHash"],["impl<'a> Debug for CreateCaptcha<'a>"],["impl Debug for Secret"]], +"db_sqlx_maria":[["impl Debug for InnerNotification"]], +"db_sqlx_postgres":[["impl Debug for InnerNotification"]], +"mcaptcha":[["impl Debug for Redis"],["impl Debug for ChangePasswordReqest"],["impl Debug for AccountCheckPayload"],["impl Debug for HealthBuilderError"],["impl Debug for UpdateTrafficPattern"],["impl Debug for BuildDetailsBuilderError"],["impl Debug for Register"],["impl Debug for Server"],["impl Debug for ServiceError"],["impl Debug for AddNotificationRequest"],["impl Debug for CaptchaStats"],["impl Debug for Login"],["impl Debug for Email"],["impl Debug for Settings"],["impl Debug for AccountCheckResp"],["impl Debug for ValidationToken"],["impl Debug for DeleteCaptcha"],["impl Debug for CaptchaValidateResp"],["impl Debug for SmtpErrorWrapper"],["impl Debug for Username"],["impl Debug for GetConfigPayload"],["impl Debug for MCaptchaDetails"],["impl Debug for BuildDetails"],["impl Debug for Smtp"],["impl Debug for PageError"],["impl Debug for Real"],["impl Debug for DBErrorWrapper"],["impl Debug for Captcha"],["impl Debug for Dummy"],["impl Debug for DefaultDifficultyStrategy"],["impl Debug for Password"],["impl Debug for Date"],["impl Debug for I32Levels"],["impl Debug for Health"],["impl Debug for Database"],["impl Debug for StatsPayload"],["impl Debug for VerifyCaptchaResultPayload"],["impl Debug for Levels"],["impl Debug for TrafficPatternRequest"],["impl Debug for DBType"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/fmt/trait.Display.js b/implementors/core/fmt/trait.Display.js index b6947cc7..cb553d98 100644 --- a/implementors/core/fmt/trait.Display.js +++ b/implementors/core/fmt/trait.Display.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"db_core":[["impl Display for DBError"]], -"mcaptcha":[["impl Display for BuildDetailsBuilderError"],["impl Display for HealthBuilderError"],["impl Display for SmtpErrorWrapper"],["impl Display for DBErrorWrapper"],["impl Display for ServiceError"],["impl Display for PageError"],["impl Display for DBType"]] +"db_core":[["impl Display for DBError"]], +"mcaptcha":[["impl Display for PageError"],["impl Display for DBType"],["impl Display for SmtpErrorWrapper"],["impl Display for ServiceError"],["impl Display for BuildDetailsBuilderError"],["impl Display for DBErrorWrapper"],["impl Display for HealthBuilderError"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Freeze.js b/implementors/core/marker/trait.Freeze.js index e11b65ca..277fa84c 100644 --- a/implementors/core/marker/trait.Freeze.js +++ b/implementors/core/marker/trait.Freeze.js @@ -2,5 +2,5 @@ "db_core":[["impl Freeze for DBError",1,["db_core::errors::DBError"]],["impl<'a> Freeze for Register<'a>",1,["db_core::Register"]],["impl<'a> Freeze for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> Freeze for Login<'a>",1,["db_core::Login"]],["impl Freeze for NameHash",1,["db_core::NameHash"]],["impl Freeze for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl Freeze for Notification",1,["db_core::Notification"]],["impl<'a> Freeze for AddNotification<'a>",1,["db_core::AddNotification"]],["impl Freeze for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> Freeze for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl Freeze for Captcha",1,["db_core::Captcha"]],["impl Freeze for Secret",1,["db_core::Secret"]]], "db_sqlx_maria":[["impl Freeze for Database",1,["db_sqlx_maria::Database"]],["impl Freeze for Conn",1,["db_sqlx_maria::Conn"]],["impl Freeze for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl Freeze for Fresh",1,["db_sqlx_maria::Fresh"]],["impl Freeze for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], "db_sqlx_postgres":[["impl Freeze for Database",1,["db_sqlx_postgres::Database"]],["impl Freeze for Conn",1,["db_sqlx_postgres::Conn"]],["impl Freeze for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl Freeze for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl Freeze for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], -"mcaptcha":[["impl Freeze for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl Freeze for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl Freeze for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl Freeze for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl Freeze for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl Freeze for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl Freeze for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl Freeze for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl Freeze for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl Freeze for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl Freeze for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl Freeze for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl Freeze for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl Freeze for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl Freeze for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl Freeze for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl Freeze for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl Freeze for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl Freeze for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl Freeze for register",1,["mcaptcha::api::v1::auth::register"]],["impl Freeze for login",1,["mcaptcha::api::v1::auth::login"]],["impl Freeze for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl Freeze for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl Freeze for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl Freeze for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl Freeze for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl Freeze for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl Freeze for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl Freeze for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl Freeze for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl Freeze for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl Freeze for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl Freeze for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl Freeze for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl Freeze for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl Freeze for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl Freeze for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl Freeze for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl Freeze for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl Freeze for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl Freeze for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl Freeze for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl Freeze for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl Freeze for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl Freeze for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl Freeze for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl Freeze for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl Freeze for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl Freeze for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl Freeze for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl Freeze for health",1,["mcaptcha::api::v1::meta::health"]],["impl Freeze for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl Freeze for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl Freeze for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl Freeze for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl Freeze for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl Freeze for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl Freeze for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl Freeze for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl Freeze for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl Freeze for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl Freeze for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl Freeze for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl Freeze for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl Freeze for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl Freeze for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl Freeze for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl Freeze for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl Freeze for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl Freeze for Data",1,["mcaptcha::data::Data"]],["impl Freeze for Date",1,["mcaptcha::date::Date"]],["impl Freeze for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl Freeze for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl Freeze for Asset",1,["mcaptcha::docs::Asset"]],["impl Freeze for dist",1,["mcaptcha::docs::dist"]],["impl Freeze for spec",1,["mcaptcha::docs::spec"]],["impl Freeze for index",1,["mcaptcha::docs::index"]],["impl<'a> Freeze for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl Freeze for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl Freeze for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl Freeze for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl Freeze for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl Freeze for PageError",1,["mcaptcha::errors::PageError"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl Freeze for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl Freeze for login",1,["mcaptcha::pages::auth::login::login"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl Freeze for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl Freeze for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> Freeze for SudoPage<'a, K, V>",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl Freeze for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl Freeze for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> Freeze for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl Freeze for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl Freeze for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl Freeze for error",1,["mcaptcha::pages::errors::error"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl Freeze for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl Freeze for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl Freeze for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> Freeze for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl Freeze for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl Freeze for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl Freeze for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl Freeze for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl Freeze for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> Freeze for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl Freeze for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> Freeze for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl Freeze for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl Freeze for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl Freeze for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl Freeze for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> Freeze for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl Freeze for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl Freeze for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl Freeze for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl Freeze for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl Freeze for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl Freeze for panel",1,["mcaptcha::pages::panel::panel"]],["impl Freeze for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl Freeze for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl Freeze for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl Freeze for Server",1,["mcaptcha::settings::Server"]],["impl Freeze for Captcha",1,["mcaptcha::settings::Captcha"]],["impl Freeze for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl Freeze for Smtp",1,["mcaptcha::settings::Smtp"]],["impl Freeze for DBType",1,["mcaptcha::settings::DBType"]],["impl Freeze for Database",1,["mcaptcha::settings::Database"]],["impl Freeze for Redis",1,["mcaptcha::settings::Redis"]],["impl Freeze for Settings",1,["mcaptcha::settings::Settings"]],["impl Freeze for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl Freeze for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl Freeze for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl Freeze for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl Freeze for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl Freeze for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl Freeze for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl Freeze for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl Freeze for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl Freeze for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl Freeze for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl Freeze for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl Freeze for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl Freeze for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl Freeze for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl Freeze for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl Freeze for Real",1,["mcaptcha::stats::Real"]],["impl Freeze for Dummy",1,["mcaptcha::stats::Dummy"]],["impl Freeze for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl Freeze for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl Freeze for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl Freeze for show_widget",1,["mcaptcha::widget::show_widget"]],["impl Freeze for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl Freeze for FILES",1,["mcaptcha::FILES"]],["impl Freeze for JS",1,["mcaptcha::JS"]],["impl Freeze for CSS",1,["mcaptcha::CSS"]],["impl Freeze for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl Freeze for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl Freeze for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl Freeze for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] +"mcaptcha":[["impl Freeze for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl Freeze for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::account::email::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::account::email::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::account::email::_::deserialize::__Visitor"]],["impl Freeze for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl Freeze for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl Freeze for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::account::password::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::account::password::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::account::password::_::deserialize::__Visitor"]],["impl Freeze for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl Freeze for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl Freeze for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl Freeze for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl Freeze for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl Freeze for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::account::username::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::account::username::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::account::username::_::deserialize::__Visitor"]],["impl Freeze for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl Freeze for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl Freeze for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl Freeze for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl Freeze for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl Freeze for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Freeze for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Freeze for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Freeze for register",1,["mcaptcha::api::v1::auth::register"]],["impl Freeze for login",1,["mcaptcha::api::v1::auth::login"]],["impl Freeze for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl Freeze for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl Freeze for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl Freeze for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl Freeze for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Visitor"]],["impl Freeze for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl Freeze for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl Freeze for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl Freeze for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl Freeze for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl Freeze for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl Freeze for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl Freeze for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl Freeze for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl Freeze for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl Freeze for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Visitor"]],["impl Freeze for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl Freeze for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl Freeze for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Visitor"]],["impl Freeze for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl Freeze for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl Freeze for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl Freeze for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl Freeze for __Visitor",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl Freeze for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl Freeze for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl Freeze for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl Freeze for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl Freeze for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl Freeze for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl Freeze for health",1,["mcaptcha::api::v1::meta::health"]],["impl Freeze for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Visitor"]],["impl Freeze for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl Freeze for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Visitor"]],["impl Freeze for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl Freeze for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Visitor"]],["impl Freeze for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl Freeze for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl Freeze for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Visitor"]],["impl Freeze for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl Freeze for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Visitor"]],["impl Freeze for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl Freeze for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl Freeze for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl Freeze for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl Freeze for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl Freeze for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl Freeze for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl Freeze for __Field",1,["mcaptcha::api::v1::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::api::v1::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::api::v1::_::deserialize::__Visitor"]],["impl Freeze for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl Freeze for Data",1,["mcaptcha::data::Data"]],["impl Freeze for Date",1,["mcaptcha::date::Date"]],["impl Freeze for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl Freeze for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl Freeze for Asset",1,["mcaptcha::docs::Asset"]],["impl Freeze for dist",1,["mcaptcha::docs::dist"]],["impl Freeze for spec",1,["mcaptcha::docs::spec"]],["impl Freeze for index",1,["mcaptcha::docs::index"]],["impl<'a> Freeze for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl Freeze for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl Freeze for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl Freeze for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl Freeze for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl Freeze for __Field",1,["mcaptcha::errors::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::errors::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::errors::_::deserialize::__Visitor"]],["impl Freeze for PageError",1,["mcaptcha::errors::PageError"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl Freeze for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl Freeze for login",1,["mcaptcha::pages::auth::login::login"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl Freeze for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl Freeze for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> Freeze for SudoPage<'a, K, V>",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl Freeze for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl Freeze for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> Freeze for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl Freeze for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl Freeze for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl Freeze for error",1,["mcaptcha::pages::errors::error"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl Freeze for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl Freeze for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl Freeze for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> Freeze for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl Freeze for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl Freeze for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl Freeze for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl Freeze for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl Freeze for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> Freeze for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl Freeze for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> Freeze for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl Freeze for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl Freeze for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl Freeze for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl Freeze for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> Freeze for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl Freeze for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl Freeze for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl Freeze for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl Freeze for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl Freeze for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl Freeze for panel",1,["mcaptcha::pages::panel::panel"]],["impl Freeze for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl Freeze for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl Freeze for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl Freeze for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl Freeze for Server",1,["mcaptcha::settings::Server"]],["impl Freeze for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Freeze for Captcha",1,["mcaptcha::settings::Captcha"]],["impl Freeze for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Freeze for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl Freeze for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Freeze for Smtp",1,["mcaptcha::settings::Smtp"]],["impl Freeze for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Freeze for DBType",1,["mcaptcha::settings::DBType"]],["impl Freeze for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Freeze for Database",1,["mcaptcha::settings::Database"]],["impl Freeze for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Freeze for Redis",1,["mcaptcha::settings::Redis"]],["impl Freeze for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Freeze for Settings",1,["mcaptcha::settings::Settings"]],["impl Freeze for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Freeze for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl Freeze for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl Freeze for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl Freeze for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl Freeze for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl Freeze for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl Freeze for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl Freeze for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl Freeze for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl Freeze for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl Freeze for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl Freeze for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl Freeze for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl Freeze for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl Freeze for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl Freeze for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl Freeze for __Field",1,["mcaptcha::stats::_::deserialize::__Field"]],["impl Freeze for __FieldVisitor",1,["mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> Freeze for __Visitor<'de>",1,["mcaptcha::stats::_::deserialize::__Visitor"]],["impl Freeze for Real",1,["mcaptcha::stats::Real"]],["impl Freeze for Dummy",1,["mcaptcha::stats::Dummy"]],["impl Freeze for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl Freeze for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl Freeze for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl Freeze for show_widget",1,["mcaptcha::widget::show_widget"]],["impl Freeze for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl Freeze for FILES",1,["mcaptcha::FILES"]],["impl Freeze for JS",1,["mcaptcha::JS"]],["impl Freeze for CSS",1,["mcaptcha::CSS"]],["impl Freeze for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl Freeze for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl Freeze for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl Freeze for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Send.js b/implementors/core/marker/trait.Send.js index 02b7d30c..9b464842 100644 --- a/implementors/core/marker/trait.Send.js +++ b/implementors/core/marker/trait.Send.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl Send for DBError",1,["db_core::errors::DBError"]],["impl<'a> Send for Register<'a>",1,["db_core::Register"]],["impl<'a> Send for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> Send for Login<'a>",1,["db_core::Login"]],["impl Send for NameHash",1,["db_core::NameHash"]],["impl Send for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl Send for Notification",1,["db_core::Notification"]],["impl<'a> Send for AddNotification<'a>",1,["db_core::AddNotification"]],["impl Send for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> Send for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl Send for Captcha",1,["db_core::Captcha"]],["impl Send for Secret",1,["db_core::Secret"]]], -"db_sqlx_maria":[["impl Send for Database",1,["db_sqlx_maria::Database"]],["impl Send for Conn",1,["db_sqlx_maria::Conn"]],["impl Send for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl Send for Fresh",1,["db_sqlx_maria::Fresh"]],["impl Send for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], -"db_sqlx_postgres":[["impl Send for Database",1,["db_sqlx_postgres::Database"]],["impl Send for Conn",1,["db_sqlx_postgres::Conn"]],["impl Send for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl Send for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl Send for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], -"mcaptcha":[["impl Send for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl Send for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl Send for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl Send for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl Send for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl Send for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl Send for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl Send for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl Send for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl Send for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl Send for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl Send for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl Send for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl Send for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl Send for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl Send for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl Send for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl Send for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl Send for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl Send for register",1,["mcaptcha::api::v1::auth::register"]],["impl Send for login",1,["mcaptcha::api::v1::auth::login"]],["impl Send for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl Send for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl Send for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl Send for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl Send for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl Send for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl Send for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl Send for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl Send for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl Send for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl Send for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl Send for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl Send for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl Send for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl Send for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl Send for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl Send for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl Send for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl Send for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl Send for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl Send for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl Send for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl Send for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl Send for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl Send for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl Send for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl Send for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl Send for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl Send for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl Send for health",1,["mcaptcha::api::v1::meta::health"]],["impl Send for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl Send for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl Send for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl Send for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl Send for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl Send for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl Send for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl Send for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl Send for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl Send for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl Send for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl Send for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl Send for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl Send for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl Send for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl Send for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl Send for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl Send for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl Send for Data",1,["mcaptcha::data::Data"]],["impl Send for Date",1,["mcaptcha::date::Date"]],["impl Send for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl Send for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl Send for Asset",1,["mcaptcha::docs::Asset"]],["impl Send for dist",1,["mcaptcha::docs::dist"]],["impl Send for spec",1,["mcaptcha::docs::spec"]],["impl Send for index",1,["mcaptcha::docs::index"]],["impl<'a> Send for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl Send for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl Send for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl Send for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl Send for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl Send for PageError",1,["mcaptcha::errors::PageError"]],["impl Send for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl Send for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl Send for login",1,["mcaptcha::pages::auth::login::login"]],["impl Send for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl Send for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl Send for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> Send for SudoPage<'a, K, V>where
    K: Send,
    V: Send,
",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl Send for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl Send for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> Send for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl Send for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl Send for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl Send for error",1,["mcaptcha::pages::errors::error"]],["impl Send for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl Send for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl Send for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl Send for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> Send for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl Send for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl Send for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl Send for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl Send for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl Send for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> Send for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl Send for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> Send for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl Send for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl Send for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl Send for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl Send for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> Send for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl Send for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl Send for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl Send for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl Send for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl Send for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl Send for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl Send for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl Send for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl Send for panel",1,["mcaptcha::pages::panel::panel"]],["impl Send for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl Send for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl Send for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl Send for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl Send for Server",1,["mcaptcha::settings::Server"]],["impl Send for Captcha",1,["mcaptcha::settings::Captcha"]],["impl Send for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl Send for Smtp",1,["mcaptcha::settings::Smtp"]],["impl Send for DBType",1,["mcaptcha::settings::DBType"]],["impl Send for Database",1,["mcaptcha::settings::Database"]],["impl Send for Redis",1,["mcaptcha::settings::Redis"]],["impl Send for Settings",1,["mcaptcha::settings::Settings"]],["impl Send for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl Send for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl Send for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl Send for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl Send for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl Send for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl Send for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl Send for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl Send for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl Send for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl Send for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl Send for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl Send for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl Send for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl Send for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl Send for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl Send for Real",1,["mcaptcha::stats::Real"]],["impl Send for Dummy",1,["mcaptcha::stats::Dummy"]],["impl Send for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl Send for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl Send for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl Send for show_widget",1,["mcaptcha::widget::show_widget"]],["impl Send for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl Send for FILES",1,["mcaptcha::FILES"]],["impl Send for JS",1,["mcaptcha::JS"]],["impl Send for CSS",1,["mcaptcha::CSS"]],["impl Send for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl Send for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl Send for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl Send for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] +"db_core":[["impl Send for DBError",1,["db_core::errors::DBError"]],["impl<'a> Send for Register<'a>",1,["db_core::Register"]],["impl<'a> Send for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> Send for Login<'a>",1,["db_core::Login"]],["impl Send for NameHash",1,["db_core::NameHash"]],["impl Send for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl Send for Notification",1,["db_core::Notification"]],["impl<'a> Send for AddNotification<'a>",1,["db_core::AddNotification"]],["impl Send for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> Send for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl Send for Captcha",1,["db_core::Captcha"]],["impl Send for Secret",1,["db_core::Secret"]]], +"db_sqlx_maria":[["impl Send for Database",1,["db_sqlx_maria::Database"]],["impl Send for Conn",1,["db_sqlx_maria::Conn"]],["impl Send for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl Send for Fresh",1,["db_sqlx_maria::Fresh"]],["impl Send for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], +"db_sqlx_postgres":[["impl Send for Database",1,["db_sqlx_postgres::Database"]],["impl Send for Conn",1,["db_sqlx_postgres::Conn"]],["impl Send for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl Send for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl Send for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], +"mcaptcha":[["impl Send for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl Send for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl Send for __Field",1,["mcaptcha::api::v1::account::email::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::account::email::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::account::email::_::deserialize::__Visitor"]],["impl Send for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl Send for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl Send for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl Send for __Field",1,["mcaptcha::api::v1::account::password::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::account::password::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::account::password::_::deserialize::__Visitor"]],["impl Send for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl Send for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl Send for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl Send for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl Send for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl Send for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl Send for __Field",1,["mcaptcha::api::v1::account::username::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::account::username::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::account::username::_::deserialize::__Visitor"]],["impl Send for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl Send for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl Send for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl Send for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl Send for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl Send for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl Send for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl Send for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl Send for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Send for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl Send for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Send for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl Send for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Send for register",1,["mcaptcha::api::v1::auth::register"]],["impl Send for login",1,["mcaptcha::api::v1::auth::login"]],["impl Send for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl Send for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl Send for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl Send for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl Send for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Visitor"]],["impl Send for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl Send for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl Send for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl Send for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl Send for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl Send for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl Send for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl Send for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl Send for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl Send for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl Send for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Visitor"]],["impl Send for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl Send for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl Send for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl Send for __Field",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Visitor"]],["impl Send for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl Send for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl Send for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl Send for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl Send for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl Send for __Visitor",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl Send for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl Send for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl Send for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl Send for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl Send for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl Send for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl Send for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl Send for health",1,["mcaptcha::api::v1::meta::health"]],["impl Send for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl Send for __Field",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Visitor"]],["impl Send for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl Send for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl Send for __Field",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Visitor"]],["impl Send for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl Send for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl Send for __Field",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Visitor"]],["impl Send for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl Send for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl Send for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl Send for __Field",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Visitor"]],["impl Send for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl Send for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl Send for __Field",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Visitor"]],["impl Send for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl Send for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl Send for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl Send for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl Send for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl Send for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl Send for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl Send for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl Send for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl Send for __Field",1,["mcaptcha::api::v1::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::api::v1::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::api::v1::_::deserialize::__Visitor"]],["impl Send for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl Send for Data",1,["mcaptcha::data::Data"]],["impl Send for Date",1,["mcaptcha::date::Date"]],["impl Send for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl Send for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl Send for Asset",1,["mcaptcha::docs::Asset"]],["impl Send for dist",1,["mcaptcha::docs::dist"]],["impl Send for spec",1,["mcaptcha::docs::spec"]],["impl Send for index",1,["mcaptcha::docs::index"]],["impl<'a> Send for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl Send for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl Send for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl Send for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl Send for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl Send for __Field",1,["mcaptcha::errors::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::errors::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::errors::_::deserialize::__Visitor"]],["impl Send for PageError",1,["mcaptcha::errors::PageError"]],["impl Send for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl Send for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl Send for login",1,["mcaptcha::pages::auth::login::login"]],["impl Send for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl Send for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl Send for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> Send for SudoPage<'a, K, V>where\n K: Send,\n V: Send,",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl Send for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl Send for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> Send for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl Send for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl Send for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl Send for error",1,["mcaptcha::pages::errors::error"]],["impl Send for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl Send for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl Send for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl Send for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> Send for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl Send for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl Send for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl Send for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl Send for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl Send for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> Send for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl Send for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> Send for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl Send for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl Send for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl Send for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl Send for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> Send for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl Send for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl Send for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl Send for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl Send for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl Send for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl Send for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl Send for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl Send for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl Send for panel",1,["mcaptcha::pages::panel::panel"]],["impl Send for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl Send for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl Send for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl Send for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl Send for Server",1,["mcaptcha::settings::Server"]],["impl Send for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Send for Captcha",1,["mcaptcha::settings::Captcha"]],["impl Send for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Send for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl Send for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Send for Smtp",1,["mcaptcha::settings::Smtp"]],["impl Send for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Send for DBType",1,["mcaptcha::settings::DBType"]],["impl Send for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Send for Database",1,["mcaptcha::settings::Database"]],["impl Send for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Send for Redis",1,["mcaptcha::settings::Redis"]],["impl Send for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Send for Settings",1,["mcaptcha::settings::Settings"]],["impl Send for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Send for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl Send for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl Send for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl Send for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl Send for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl Send for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl Send for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl Send for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl Send for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl Send for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl Send for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl Send for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl Send for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl Send for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl Send for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl Send for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl Send for __Field",1,["mcaptcha::stats::_::deserialize::__Field"]],["impl Send for __FieldVisitor",1,["mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> Send for __Visitor<'de>",1,["mcaptcha::stats::_::deserialize::__Visitor"]],["impl Send for Real",1,["mcaptcha::stats::Real"]],["impl Send for Dummy",1,["mcaptcha::stats::Dummy"]],["impl Send for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl Send for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl Send for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl Send for show_widget",1,["mcaptcha::widget::show_widget"]],["impl Send for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl Send for FILES",1,["mcaptcha::FILES"]],["impl Send for JS",1,["mcaptcha::JS"]],["impl Send for CSS",1,["mcaptcha::CSS"]],["impl Send for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl Send for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl Send for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl Send for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.StructuralPartialEq.js b/implementors/core/marker/trait.StructuralPartialEq.js index dbaff7f8..ac5f6422 100644 --- a/implementors/core/marker/trait.StructuralPartialEq.js +++ b/implementors/core/marker/trait.StructuralPartialEq.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl<'a> StructuralPartialEq for Register<'a>"],["impl<'a> StructuralPartialEq for UpdateEmail<'a>"],["impl<'a> StructuralPartialEq for Login<'a>"],["impl StructuralPartialEq for NameHash"],["impl StructuralPartialEq for StatsUnixTimestamp"],["impl StructuralPartialEq for Notification"],["impl<'a> StructuralPartialEq for AddNotification<'a>"],["impl StructuralPartialEq for TrafficPattern"],["impl<'a> StructuralPartialEq for CreateCaptcha<'a>"],["impl StructuralPartialEq for Captcha"],["impl StructuralPartialEq for Secret"]], -"db_sqlx_maria":[["impl StructuralPartialEq for InnerNotification"]], -"db_sqlx_postgres":[["impl StructuralPartialEq for InnerNotification"]], -"mcaptcha":[["impl StructuralPartialEq for AddNotificationRequest"],["impl StructuralPartialEq for NotificationResp"],["impl StructuralPartialEq for ServiceError"],["impl StructuralPartialEq for PageError"],["impl StructuralPartialEq for DBType"],["impl StructuralPartialEq for CaptchaStats"],["impl StructuralPartialEq for Real"],["impl StructuralPartialEq for Dummy"]] +"db_core":[["impl<'a> StructuralPartialEq for Login<'a>"],["impl StructuralPartialEq for Notification"],["impl StructuralPartialEq for Captcha"],["impl StructuralPartialEq for TrafficPattern"],["impl<'a> StructuralPartialEq for UpdateEmail<'a>"],["impl StructuralPartialEq for NameHash"],["impl StructuralPartialEq for Secret"],["impl<'a> StructuralPartialEq for AddNotification<'a>"],["impl<'a> StructuralPartialEq for Register<'a>"],["impl<'a> StructuralPartialEq for CreateCaptcha<'a>"],["impl StructuralPartialEq for StatsUnixTimestamp"]], +"db_sqlx_maria":[["impl StructuralPartialEq for InnerNotification"]], +"db_sqlx_postgres":[["impl StructuralPartialEq for InnerNotification"]], +"mcaptcha":[["impl StructuralPartialEq for Real"],["impl StructuralPartialEq for DBType"],["impl StructuralPartialEq for CaptchaStats"],["impl StructuralPartialEq for Dummy"],["impl StructuralPartialEq for PageError"],["impl StructuralPartialEq for NotificationResp"],["impl StructuralPartialEq for ServiceError"],["impl StructuralPartialEq for AddNotificationRequest"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Sync.js b/implementors/core/marker/trait.Sync.js index b0951212..7f2b2fab 100644 --- a/implementors/core/marker/trait.Sync.js +++ b/implementors/core/marker/trait.Sync.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl Sync for DBError",1,["db_core::errors::DBError"]],["impl<'a> Sync for Register<'a>",1,["db_core::Register"]],["impl<'a> Sync for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> Sync for Login<'a>",1,["db_core::Login"]],["impl Sync for NameHash",1,["db_core::NameHash"]],["impl Sync for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl Sync for Notification",1,["db_core::Notification"]],["impl<'a> Sync for AddNotification<'a>",1,["db_core::AddNotification"]],["impl Sync for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> Sync for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl Sync for Captcha",1,["db_core::Captcha"]],["impl Sync for Secret",1,["db_core::Secret"]]], -"db_sqlx_maria":[["impl Sync for Database",1,["db_sqlx_maria::Database"]],["impl Sync for Conn",1,["db_sqlx_maria::Conn"]],["impl Sync for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl Sync for Fresh",1,["db_sqlx_maria::Fresh"]],["impl Sync for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], -"db_sqlx_postgres":[["impl Sync for Database",1,["db_sqlx_postgres::Database"]],["impl Sync for Conn",1,["db_sqlx_postgres::Conn"]],["impl Sync for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl Sync for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl Sync for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], -"mcaptcha":[["impl Sync for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl Sync for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl Sync for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl Sync for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl Sync for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl Sync for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl Sync for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl Sync for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl Sync for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl Sync for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl Sync for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl Sync for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl Sync for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl Sync for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl Sync for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl Sync for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl Sync for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl Sync for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl Sync for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl Sync for register",1,["mcaptcha::api::v1::auth::register"]],["impl Sync for login",1,["mcaptcha::api::v1::auth::login"]],["impl Sync for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl Sync for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl Sync for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl Sync for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl Sync for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl Sync for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl Sync for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl Sync for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl Sync for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl Sync for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl Sync for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl Sync for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl Sync for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl Sync for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl Sync for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl Sync for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl Sync for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl Sync for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl Sync for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl Sync for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl Sync for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl Sync for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl Sync for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl Sync for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl Sync for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl Sync for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl Sync for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl Sync for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl Sync for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl Sync for health",1,["mcaptcha::api::v1::meta::health"]],["impl Sync for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl Sync for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl Sync for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl Sync for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl Sync for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl Sync for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl Sync for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl Sync for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl Sync for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl Sync for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl Sync for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl Sync for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl Sync for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl Sync for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl Sync for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl Sync for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl Sync for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl Sync for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl Sync for Data",1,["mcaptcha::data::Data"]],["impl Sync for Date",1,["mcaptcha::date::Date"]],["impl Sync for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl Sync for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl Sync for Asset",1,["mcaptcha::docs::Asset"]],["impl Sync for dist",1,["mcaptcha::docs::dist"]],["impl Sync for spec",1,["mcaptcha::docs::spec"]],["impl Sync for index",1,["mcaptcha::docs::index"]],["impl<'a> Sync for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl Sync for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl Sync for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl Sync for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl Sync for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl Sync for PageError",1,["mcaptcha::errors::PageError"]],["impl Sync for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl Sync for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl Sync for login",1,["mcaptcha::pages::auth::login::login"]],["impl Sync for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl Sync for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl Sync for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> Sync for SudoPage<'a, K, V>where
    K: Sync,
    V: Sync,
",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl Sync for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl Sync for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> Sync for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl Sync for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl Sync for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl Sync for error",1,["mcaptcha::pages::errors::error"]],["impl Sync for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl Sync for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl Sync for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl Sync for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> Sync for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl Sync for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl Sync for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl Sync for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl Sync for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl Sync for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> Sync for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl Sync for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> Sync for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl Sync for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl Sync for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl Sync for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl Sync for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> Sync for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl Sync for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl Sync for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl Sync for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl Sync for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl Sync for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl Sync for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl Sync for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl Sync for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl Sync for panel",1,["mcaptcha::pages::panel::panel"]],["impl Sync for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl Sync for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl Sync for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl Sync for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl Sync for Server",1,["mcaptcha::settings::Server"]],["impl Sync for Captcha",1,["mcaptcha::settings::Captcha"]],["impl Sync for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl Sync for Smtp",1,["mcaptcha::settings::Smtp"]],["impl Sync for DBType",1,["mcaptcha::settings::DBType"]],["impl Sync for Database",1,["mcaptcha::settings::Database"]],["impl Sync for Redis",1,["mcaptcha::settings::Redis"]],["impl Sync for Settings",1,["mcaptcha::settings::Settings"]],["impl Sync for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl Sync for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl Sync for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl Sync for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl Sync for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl Sync for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl Sync for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl Sync for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl Sync for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl Sync for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl Sync for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl Sync for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl Sync for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl Sync for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl Sync for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl Sync for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl Sync for Real",1,["mcaptcha::stats::Real"]],["impl Sync for Dummy",1,["mcaptcha::stats::Dummy"]],["impl Sync for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl Sync for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl Sync for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl Sync for show_widget",1,["mcaptcha::widget::show_widget"]],["impl Sync for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl Sync for FILES",1,["mcaptcha::FILES"]],["impl Sync for JS",1,["mcaptcha::JS"]],["impl Sync for CSS",1,["mcaptcha::CSS"]],["impl Sync for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl Sync for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl Sync for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl Sync for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] +"db_core":[["impl Sync for DBError",1,["db_core::errors::DBError"]],["impl<'a> Sync for Register<'a>",1,["db_core::Register"]],["impl<'a> Sync for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> Sync for Login<'a>",1,["db_core::Login"]],["impl Sync for NameHash",1,["db_core::NameHash"]],["impl Sync for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl Sync for Notification",1,["db_core::Notification"]],["impl<'a> Sync for AddNotification<'a>",1,["db_core::AddNotification"]],["impl Sync for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> Sync for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl Sync for Captcha",1,["db_core::Captcha"]],["impl Sync for Secret",1,["db_core::Secret"]]], +"db_sqlx_maria":[["impl Sync for Database",1,["db_sqlx_maria::Database"]],["impl Sync for Conn",1,["db_sqlx_maria::Conn"]],["impl Sync for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl Sync for Fresh",1,["db_sqlx_maria::Fresh"]],["impl Sync for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], +"db_sqlx_postgres":[["impl Sync for Database",1,["db_sqlx_postgres::Database"]],["impl Sync for Conn",1,["db_sqlx_postgres::Conn"]],["impl Sync for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl Sync for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl Sync for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], +"mcaptcha":[["impl Sync for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl Sync for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl Sync for __Field",1,["mcaptcha::api::v1::account::email::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::account::email::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::account::email::_::deserialize::__Visitor"]],["impl Sync for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl Sync for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl Sync for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl Sync for __Field",1,["mcaptcha::api::v1::account::password::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::account::password::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::account::password::_::deserialize::__Visitor"]],["impl Sync for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl Sync for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl Sync for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl Sync for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl Sync for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl Sync for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl Sync for __Field",1,["mcaptcha::api::v1::account::username::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::account::username::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::account::username::_::deserialize::__Visitor"]],["impl Sync for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl Sync for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl Sync for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl Sync for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl Sync for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl Sync for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl Sync for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl Sync for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl Sync for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Sync for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl Sync for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Sync for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl Sync for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Sync for register",1,["mcaptcha::api::v1::auth::register"]],["impl Sync for login",1,["mcaptcha::api::v1::auth::login"]],["impl Sync for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl Sync for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl Sync for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl Sync for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl Sync for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Visitor"]],["impl Sync for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl Sync for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl Sync for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl Sync for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl Sync for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl Sync for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl Sync for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl Sync for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl Sync for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl Sync for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl Sync for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Visitor"]],["impl Sync for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl Sync for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl Sync for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl Sync for __Field",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Visitor"]],["impl Sync for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl Sync for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl Sync for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl Sync for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl Sync for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl Sync for __Visitor",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl Sync for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl Sync for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl Sync for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl Sync for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl Sync for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl Sync for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl Sync for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl Sync for health",1,["mcaptcha::api::v1::meta::health"]],["impl Sync for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl Sync for __Field",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Visitor"]],["impl Sync for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl Sync for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl Sync for __Field",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Visitor"]],["impl Sync for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl Sync for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl Sync for __Field",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Visitor"]],["impl Sync for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl Sync for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl Sync for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl Sync for __Field",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Visitor"]],["impl Sync for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl Sync for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl Sync for __Field",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Visitor"]],["impl Sync for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl Sync for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl Sync for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl Sync for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl Sync for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl Sync for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl Sync for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl Sync for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl Sync for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl Sync for __Field",1,["mcaptcha::api::v1::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::api::v1::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::api::v1::_::deserialize::__Visitor"]],["impl Sync for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl Sync for Data",1,["mcaptcha::data::Data"]],["impl Sync for Date",1,["mcaptcha::date::Date"]],["impl Sync for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl Sync for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl Sync for Asset",1,["mcaptcha::docs::Asset"]],["impl Sync for dist",1,["mcaptcha::docs::dist"]],["impl Sync for spec",1,["mcaptcha::docs::spec"]],["impl Sync for index",1,["mcaptcha::docs::index"]],["impl<'a> Sync for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl Sync for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl Sync for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl Sync for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl Sync for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl Sync for __Field",1,["mcaptcha::errors::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::errors::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::errors::_::deserialize::__Visitor"]],["impl Sync for PageError",1,["mcaptcha::errors::PageError"]],["impl Sync for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl Sync for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl Sync for login",1,["mcaptcha::pages::auth::login::login"]],["impl Sync for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl Sync for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl Sync for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> Sync for SudoPage<'a, K, V>where\n K: Sync,\n V: Sync,",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl Sync for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl Sync for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> Sync for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl Sync for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl Sync for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl Sync for error",1,["mcaptcha::pages::errors::error"]],["impl Sync for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl Sync for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl Sync for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl Sync for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> Sync for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl Sync for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl Sync for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl Sync for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl Sync for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl Sync for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> Sync for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl Sync for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> Sync for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl Sync for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl Sync for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl Sync for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl Sync for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> Sync for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl Sync for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl Sync for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl Sync for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl Sync for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl Sync for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl Sync for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl Sync for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl Sync for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl Sync for panel",1,["mcaptcha::pages::panel::panel"]],["impl Sync for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl Sync for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl Sync for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl Sync for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl Sync for Server",1,["mcaptcha::settings::Server"]],["impl Sync for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Sync for Captcha",1,["mcaptcha::settings::Captcha"]],["impl Sync for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Sync for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl Sync for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Sync for Smtp",1,["mcaptcha::settings::Smtp"]],["impl Sync for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Sync for DBType",1,["mcaptcha::settings::DBType"]],["impl Sync for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Sync for Database",1,["mcaptcha::settings::Database"]],["impl Sync for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Sync for Redis",1,["mcaptcha::settings::Redis"]],["impl Sync for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Sync for Settings",1,["mcaptcha::settings::Settings"]],["impl Sync for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Sync for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl Sync for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl Sync for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl Sync for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl Sync for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl Sync for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl Sync for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl Sync for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl Sync for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl Sync for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl Sync for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl Sync for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl Sync for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl Sync for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl Sync for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl Sync for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl Sync for __Field",1,["mcaptcha::stats::_::deserialize::__Field"]],["impl Sync for __FieldVisitor",1,["mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> Sync for __Visitor<'de>",1,["mcaptcha::stats::_::deserialize::__Visitor"]],["impl Sync for Real",1,["mcaptcha::stats::Real"]],["impl Sync for Dummy",1,["mcaptcha::stats::Dummy"]],["impl Sync for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl Sync for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl Sync for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl Sync for show_widget",1,["mcaptcha::widget::show_widget"]],["impl Sync for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl Sync for FILES",1,["mcaptcha::FILES"]],["impl Sync for JS",1,["mcaptcha::JS"]],["impl Sync for CSS",1,["mcaptcha::CSS"]],["impl Sync for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl Sync for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl Sync for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl Sync for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/marker/trait.Unpin.js b/implementors/core/marker/trait.Unpin.js index 9e18aa8b..e0796c74 100644 --- a/implementors/core/marker/trait.Unpin.js +++ b/implementors/core/marker/trait.Unpin.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl Unpin for DBError",1,["db_core::errors::DBError"]],["impl<'a> Unpin for Register<'a>",1,["db_core::Register"]],["impl<'a> Unpin for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> Unpin for Login<'a>",1,["db_core::Login"]],["impl Unpin for NameHash",1,["db_core::NameHash"]],["impl Unpin for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl Unpin for Notification",1,["db_core::Notification"]],["impl<'a> Unpin for AddNotification<'a>",1,["db_core::AddNotification"]],["impl Unpin for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> Unpin for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl Unpin for Captcha",1,["db_core::Captcha"]],["impl Unpin for Secret",1,["db_core::Secret"]]], -"db_sqlx_maria":[["impl Unpin for Database",1,["db_sqlx_maria::Database"]],["impl Unpin for Conn",1,["db_sqlx_maria::Conn"]],["impl Unpin for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl Unpin for Fresh",1,["db_sqlx_maria::Fresh"]],["impl Unpin for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], -"db_sqlx_postgres":[["impl Unpin for Database",1,["db_sqlx_postgres::Database"]],["impl Unpin for Conn",1,["db_sqlx_postgres::Conn"]],["impl Unpin for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl Unpin for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl Unpin for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], -"mcaptcha":[["impl Unpin for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl Unpin for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl Unpin for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl Unpin for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl Unpin for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl Unpin for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl Unpin for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl Unpin for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl Unpin for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl Unpin for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl Unpin for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl Unpin for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl Unpin for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl Unpin for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl Unpin for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl Unpin for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl Unpin for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl Unpin for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl Unpin for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl Unpin for register",1,["mcaptcha::api::v1::auth::register"]],["impl Unpin for login",1,["mcaptcha::api::v1::auth::login"]],["impl Unpin for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl Unpin for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl Unpin for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl Unpin for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl Unpin for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl Unpin for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl Unpin for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl Unpin for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl Unpin for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl Unpin for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl Unpin for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl Unpin for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl Unpin for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl Unpin for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl Unpin for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl Unpin for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl Unpin for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl Unpin for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl Unpin for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl Unpin for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl Unpin for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl Unpin for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl Unpin for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl Unpin for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl Unpin for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl Unpin for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl Unpin for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl Unpin for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl Unpin for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl Unpin for health",1,["mcaptcha::api::v1::meta::health"]],["impl Unpin for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl Unpin for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl Unpin for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl Unpin for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl Unpin for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl Unpin for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl Unpin for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl Unpin for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl Unpin for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl Unpin for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl Unpin for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl Unpin for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl Unpin for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl Unpin for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl Unpin for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl Unpin for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl Unpin for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl Unpin for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl Unpin for Data",1,["mcaptcha::data::Data"]],["impl Unpin for Date",1,["mcaptcha::date::Date"]],["impl Unpin for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl Unpin for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl Unpin for Asset",1,["mcaptcha::docs::Asset"]],["impl Unpin for dist",1,["mcaptcha::docs::dist"]],["impl Unpin for spec",1,["mcaptcha::docs::spec"]],["impl Unpin for index",1,["mcaptcha::docs::index"]],["impl<'a> Unpin for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl Unpin for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl Unpin for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl Unpin for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl Unpin for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl Unpin for PageError",1,["mcaptcha::errors::PageError"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl Unpin for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl Unpin for login",1,["mcaptcha::pages::auth::login::login"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl Unpin for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl Unpin for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> Unpin for SudoPage<'a, K, V>where
    K: Unpin,
    V: Unpin,
",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl Unpin for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl Unpin for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> Unpin for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl Unpin for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl Unpin for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl Unpin for error",1,["mcaptcha::pages::errors::error"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl Unpin for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl Unpin for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl Unpin for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> Unpin for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl Unpin for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl Unpin for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl Unpin for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl Unpin for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl Unpin for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> Unpin for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl Unpin for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> Unpin for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl Unpin for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl Unpin for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl Unpin for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl Unpin for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> Unpin for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl Unpin for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl Unpin for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl Unpin for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl Unpin for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl Unpin for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl Unpin for panel",1,["mcaptcha::pages::panel::panel"]],["impl Unpin for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl Unpin for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl Unpin for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl Unpin for Server",1,["mcaptcha::settings::Server"]],["impl Unpin for Captcha",1,["mcaptcha::settings::Captcha"]],["impl Unpin for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl Unpin for Smtp",1,["mcaptcha::settings::Smtp"]],["impl Unpin for DBType",1,["mcaptcha::settings::DBType"]],["impl Unpin for Database",1,["mcaptcha::settings::Database"]],["impl Unpin for Redis",1,["mcaptcha::settings::Redis"]],["impl Unpin for Settings",1,["mcaptcha::settings::Settings"]],["impl Unpin for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl Unpin for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl Unpin for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl Unpin for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl Unpin for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl Unpin for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl Unpin for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl Unpin for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl Unpin for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl Unpin for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl Unpin for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl Unpin for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl Unpin for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl Unpin for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl Unpin for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl Unpin for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl Unpin for Real",1,["mcaptcha::stats::Real"]],["impl Unpin for Dummy",1,["mcaptcha::stats::Dummy"]],["impl Unpin for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl Unpin for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl Unpin for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl Unpin for show_widget",1,["mcaptcha::widget::show_widget"]],["impl Unpin for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl Unpin for FILES",1,["mcaptcha::FILES"]],["impl Unpin for JS",1,["mcaptcha::JS"]],["impl Unpin for CSS",1,["mcaptcha::CSS"]],["impl Unpin for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl Unpin for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl Unpin for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl Unpin for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] +"db_core":[["impl Unpin for DBError",1,["db_core::errors::DBError"]],["impl<'a> Unpin for Register<'a>",1,["db_core::Register"]],["impl<'a> Unpin for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> Unpin for Login<'a>",1,["db_core::Login"]],["impl Unpin for NameHash",1,["db_core::NameHash"]],["impl Unpin for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl Unpin for Notification",1,["db_core::Notification"]],["impl<'a> Unpin for AddNotification<'a>",1,["db_core::AddNotification"]],["impl Unpin for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> Unpin for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl Unpin for Captcha",1,["db_core::Captcha"]],["impl Unpin for Secret",1,["db_core::Secret"]]], +"db_sqlx_maria":[["impl Unpin for Database",1,["db_sqlx_maria::Database"]],["impl Unpin for Conn",1,["db_sqlx_maria::Conn"]],["impl Unpin for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl Unpin for Fresh",1,["db_sqlx_maria::Fresh"]],["impl Unpin for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], +"db_sqlx_postgres":[["impl Unpin for Database",1,["db_sqlx_postgres::Database"]],["impl Unpin for Conn",1,["db_sqlx_postgres::Conn"]],["impl Unpin for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl Unpin for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl Unpin for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], +"mcaptcha":[["impl Unpin for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl Unpin for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::account::email::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::account::email::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::account::email::_::deserialize::__Visitor"]],["impl Unpin for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl Unpin for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl Unpin for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::account::password::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::account::password::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::account::password::_::deserialize::__Visitor"]],["impl Unpin for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl Unpin for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl Unpin for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl Unpin for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl Unpin for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl Unpin for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::account::username::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::account::username::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::account::username::_::deserialize::__Visitor"]],["impl Unpin for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl Unpin for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl Unpin for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl Unpin for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl Unpin for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl Unpin for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Unpin for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Unpin for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl Unpin for register",1,["mcaptcha::api::v1::auth::register"]],["impl Unpin for login",1,["mcaptcha::api::v1::auth::login"]],["impl Unpin for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl Unpin for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl Unpin for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl Unpin for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl Unpin for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Visitor"]],["impl Unpin for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl Unpin for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl Unpin for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl Unpin for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl Unpin for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl Unpin for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl Unpin for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl Unpin for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl Unpin for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl Unpin for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl Unpin for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Visitor"]],["impl Unpin for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl Unpin for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl Unpin for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Visitor"]],["impl Unpin for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl Unpin for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl Unpin for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl Unpin for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl Unpin for __Visitor",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl Unpin for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl Unpin for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl Unpin for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl Unpin for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl Unpin for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl Unpin for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl Unpin for health",1,["mcaptcha::api::v1::meta::health"]],["impl Unpin for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Visitor"]],["impl Unpin for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl Unpin for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Visitor"]],["impl Unpin for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl Unpin for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Visitor"]],["impl Unpin for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl Unpin for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl Unpin for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Visitor"]],["impl Unpin for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl Unpin for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Visitor"]],["impl Unpin for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl Unpin for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl Unpin for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl Unpin for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl Unpin for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl Unpin for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl Unpin for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl Unpin for __Field",1,["mcaptcha::api::v1::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::api::v1::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::api::v1::_::deserialize::__Visitor"]],["impl Unpin for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl Unpin for Data",1,["mcaptcha::data::Data"]],["impl Unpin for Date",1,["mcaptcha::date::Date"]],["impl Unpin for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl Unpin for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl Unpin for Asset",1,["mcaptcha::docs::Asset"]],["impl Unpin for dist",1,["mcaptcha::docs::dist"]],["impl Unpin for spec",1,["mcaptcha::docs::spec"]],["impl Unpin for index",1,["mcaptcha::docs::index"]],["impl<'a> Unpin for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl Unpin for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl Unpin for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl Unpin for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl Unpin for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl Unpin for __Field",1,["mcaptcha::errors::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::errors::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::errors::_::deserialize::__Visitor"]],["impl Unpin for PageError",1,["mcaptcha::errors::PageError"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl Unpin for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl Unpin for login",1,["mcaptcha::pages::auth::login::login"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl Unpin for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl Unpin for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> Unpin for SudoPage<'a, K, V>where\n K: Unpin,\n V: Unpin,",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl Unpin for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl Unpin for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> Unpin for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl Unpin for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl Unpin for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl Unpin for error",1,["mcaptcha::pages::errors::error"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl Unpin for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl Unpin for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl Unpin for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> Unpin for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl Unpin for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl Unpin for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl Unpin for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl Unpin for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl Unpin for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> Unpin for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl Unpin for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> Unpin for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl Unpin for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl Unpin for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl Unpin for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl Unpin for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> Unpin for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl Unpin for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl Unpin for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl Unpin for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl Unpin for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl Unpin for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl Unpin for panel",1,["mcaptcha::pages::panel::panel"]],["impl Unpin for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl Unpin for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl Unpin for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl Unpin for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl Unpin for Server",1,["mcaptcha::settings::Server"]],["impl Unpin for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Unpin for Captcha",1,["mcaptcha::settings::Captcha"]],["impl Unpin for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Unpin for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl Unpin for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Unpin for Smtp",1,["mcaptcha::settings::Smtp"]],["impl Unpin for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Unpin for DBType",1,["mcaptcha::settings::DBType"]],["impl Unpin for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Unpin for Database",1,["mcaptcha::settings::Database"]],["impl Unpin for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Unpin for Redis",1,["mcaptcha::settings::Redis"]],["impl Unpin for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Unpin for Settings",1,["mcaptcha::settings::Settings"]],["impl Unpin for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl Unpin for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl Unpin for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl Unpin for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl Unpin for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl Unpin for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl Unpin for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl Unpin for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl Unpin for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl Unpin for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl Unpin for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl Unpin for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl Unpin for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl Unpin for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl Unpin for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl Unpin for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl Unpin for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl Unpin for __Field",1,["mcaptcha::stats::_::deserialize::__Field"]],["impl Unpin for __FieldVisitor",1,["mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> Unpin for __Visitor<'de>",1,["mcaptcha::stats::_::deserialize::__Visitor"]],["impl Unpin for Real",1,["mcaptcha::stats::Real"]],["impl Unpin for Dummy",1,["mcaptcha::stats::Dummy"]],["impl Unpin for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl Unpin for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl Unpin for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl Unpin for show_widget",1,["mcaptcha::widget::show_widget"]],["impl Unpin for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl Unpin for FILES",1,["mcaptcha::FILES"]],["impl Unpin for JS",1,["mcaptcha::JS"]],["impl Unpin for CSS",1,["mcaptcha::CSS"]],["impl Unpin for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl Unpin for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl Unpin for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl Unpin for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/ops/deref/trait.Deref.js b/implementors/core/ops/deref/trait.Deref.js index 8dec7b68..736dcafb 100644 --- a/implementors/core/ops/deref/trait.Deref.js +++ b/implementors/core/ops/deref/trait.Deref.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mcaptcha":[["impl Deref for INDEX"],["impl Deref for INDEX"],["impl Deref for INTERNAL_SERVER_ERROR_BODY"],["impl Deref for UNKNOWN_ERROR_BODY"],["impl Deref for ADVANCE_INDEX"],["impl Deref for EASY_INDEX"],["impl Deref for INDEX"],["impl Deref for KEY"],["impl Deref for GITHUB"],["impl Deref for HOME"],["impl Deref for SETTINGS_ICON"],["impl Deref for CREDIT_CARD"],["impl Deref for HELP_CIRCLE"],["impl Deref for MESSAGE"],["impl Deref for DOCS_ICON"],["impl Deref for MCAPTCHA_TRANS_ICON"],["impl Deref for BAR_CHART"],["impl Deref for INDEX_PAGE"],["impl Deref for SETTINGS"],["impl Deref for FILES"],["impl Deref for JS"],["impl Deref for CSS"],["impl Deref for MOBILE_CSS"],["impl Deref for VERIFICATIN_WIDGET_JS"],["impl Deref for VERIFICATIN_WIDGET_CSS"],["impl Deref for SOURCE_FILES_OF_INSTANCE"]] +"mcaptcha":[["impl Deref for ADVANCE_INDEX"],["impl Deref for SETTINGS_ICON"],["impl Deref for MESSAGE"],["impl Deref for EASY_INDEX"],["impl Deref for FILES"],["impl Deref for CREDIT_CARD"],["impl Deref for MCAPTCHA_TRANS_ICON"],["impl Deref for HELP_CIRCLE"],["impl Deref for VERIFICATIN_WIDGET_JS"],["impl Deref for BAR_CHART"],["impl Deref for INDEX"],["impl Deref for MOBILE_CSS"],["impl Deref for KEY"],["impl Deref for INDEX"],["impl Deref for HOME"],["impl Deref for INTERNAL_SERVER_ERROR_BODY"],["impl Deref for CSS"],["impl Deref for INDEX_PAGE"],["impl Deref for UNKNOWN_ERROR_BODY"],["impl Deref for JS"],["impl Deref for SETTINGS"],["impl Deref for VERIFICATIN_WIDGET_CSS"],["impl Deref for INDEX"],["impl Deref for DOCS_ICON"],["impl Deref for SOURCE_FILES_OF_INSTANCE"],["impl Deref for GITHUB"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js b/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js index 0c6781db..97201aa7 100644 --- a/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js +++ b/implementors/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl !RefUnwindSafe for DBError",1,["db_core::errors::DBError"]],["impl<'a> RefUnwindSafe for Register<'a>",1,["db_core::Register"]],["impl<'a> RefUnwindSafe for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> RefUnwindSafe for Login<'a>",1,["db_core::Login"]],["impl RefUnwindSafe for NameHash",1,["db_core::NameHash"]],["impl RefUnwindSafe for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl RefUnwindSafe for Notification",1,["db_core::Notification"]],["impl<'a> RefUnwindSafe for AddNotification<'a>",1,["db_core::AddNotification"]],["impl RefUnwindSafe for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> RefUnwindSafe for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl RefUnwindSafe for Captcha",1,["db_core::Captcha"]],["impl RefUnwindSafe for Secret",1,["db_core::Secret"]]], -"db_sqlx_maria":[["impl !RefUnwindSafe for Database",1,["db_sqlx_maria::Database"]],["impl !RefUnwindSafe for Conn",1,["db_sqlx_maria::Conn"]],["impl !RefUnwindSafe for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl !RefUnwindSafe for Fresh",1,["db_sqlx_maria::Fresh"]],["impl RefUnwindSafe for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], -"db_sqlx_postgres":[["impl !RefUnwindSafe for Database",1,["db_sqlx_postgres::Database"]],["impl !RefUnwindSafe for Conn",1,["db_sqlx_postgres::Conn"]],["impl !RefUnwindSafe for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl !RefUnwindSafe for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl RefUnwindSafe for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], -"mcaptcha":[["impl RefUnwindSafe for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl RefUnwindSafe for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl RefUnwindSafe for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl RefUnwindSafe for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl RefUnwindSafe for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl RefUnwindSafe for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl RefUnwindSafe for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl RefUnwindSafe for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl RefUnwindSafe for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl RefUnwindSafe for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl RefUnwindSafe for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl RefUnwindSafe for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl RefUnwindSafe for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl RefUnwindSafe for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl RefUnwindSafe for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl RefUnwindSafe for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl RefUnwindSafe for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl RefUnwindSafe for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl RefUnwindSafe for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl RefUnwindSafe for register",1,["mcaptcha::api::v1::auth::register"]],["impl RefUnwindSafe for login",1,["mcaptcha::api::v1::auth::login"]],["impl RefUnwindSafe for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl RefUnwindSafe for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl RefUnwindSafe for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl RefUnwindSafe for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl RefUnwindSafe for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl RefUnwindSafe for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl RefUnwindSafe for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl RefUnwindSafe for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl RefUnwindSafe for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl RefUnwindSafe for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl RefUnwindSafe for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl RefUnwindSafe for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl RefUnwindSafe for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl RefUnwindSafe for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl RefUnwindSafe for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl RefUnwindSafe for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl RefUnwindSafe for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl RefUnwindSafe for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl RefUnwindSafe for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl RefUnwindSafe for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl RefUnwindSafe for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl RefUnwindSafe for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl RefUnwindSafe for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl RefUnwindSafe for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl RefUnwindSafe for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl RefUnwindSafe for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl RefUnwindSafe for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl RefUnwindSafe for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl RefUnwindSafe for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl RefUnwindSafe for health",1,["mcaptcha::api::v1::meta::health"]],["impl RefUnwindSafe for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl RefUnwindSafe for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl RefUnwindSafe for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl RefUnwindSafe for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl RefUnwindSafe for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl RefUnwindSafe for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl RefUnwindSafe for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl RefUnwindSafe for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl RefUnwindSafe for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl RefUnwindSafe for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl RefUnwindSafe for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl RefUnwindSafe for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl RefUnwindSafe for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl RefUnwindSafe for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl RefUnwindSafe for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl RefUnwindSafe for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl RefUnwindSafe for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl !RefUnwindSafe for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl !RefUnwindSafe for Data",1,["mcaptcha::data::Data"]],["impl RefUnwindSafe for Date",1,["mcaptcha::date::Date"]],["impl RefUnwindSafe for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl RefUnwindSafe for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl RefUnwindSafe for Asset",1,["mcaptcha::docs::Asset"]],["impl RefUnwindSafe for dist",1,["mcaptcha::docs::dist"]],["impl RefUnwindSafe for spec",1,["mcaptcha::docs::spec"]],["impl RefUnwindSafe for index",1,["mcaptcha::docs::index"]],["impl<'a> RefUnwindSafe for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl !RefUnwindSafe for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl !RefUnwindSafe for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl !RefUnwindSafe for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl RefUnwindSafe for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl !RefUnwindSafe for PageError",1,["mcaptcha::errors::PageError"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl RefUnwindSafe for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl RefUnwindSafe for login",1,["mcaptcha::pages::auth::login::login"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl RefUnwindSafe for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl RefUnwindSafe for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> RefUnwindSafe for SudoPage<'a, K, V>where
    K: RefUnwindSafe,
    V: RefUnwindSafe,
",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl RefUnwindSafe for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl RefUnwindSafe for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> RefUnwindSafe for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl RefUnwindSafe for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl RefUnwindSafe for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl RefUnwindSafe for error",1,["mcaptcha::pages::errors::error"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl RefUnwindSafe for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl RefUnwindSafe for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl RefUnwindSafe for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> RefUnwindSafe for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl RefUnwindSafe for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl RefUnwindSafe for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl RefUnwindSafe for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl RefUnwindSafe for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl RefUnwindSafe for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> RefUnwindSafe for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl RefUnwindSafe for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> RefUnwindSafe for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl RefUnwindSafe for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl RefUnwindSafe for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl RefUnwindSafe for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl RefUnwindSafe for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> RefUnwindSafe for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl RefUnwindSafe for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl RefUnwindSafe for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl RefUnwindSafe for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl RefUnwindSafe for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl RefUnwindSafe for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl RefUnwindSafe for panel",1,["mcaptcha::pages::panel::panel"]],["impl RefUnwindSafe for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl RefUnwindSafe for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl RefUnwindSafe for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl RefUnwindSafe for Server",1,["mcaptcha::settings::Server"]],["impl RefUnwindSafe for Captcha",1,["mcaptcha::settings::Captcha"]],["impl RefUnwindSafe for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl RefUnwindSafe for Smtp",1,["mcaptcha::settings::Smtp"]],["impl RefUnwindSafe for DBType",1,["mcaptcha::settings::DBType"]],["impl RefUnwindSafe for Database",1,["mcaptcha::settings::Database"]],["impl RefUnwindSafe for Redis",1,["mcaptcha::settings::Redis"]],["impl RefUnwindSafe for Settings",1,["mcaptcha::settings::Settings"]],["impl RefUnwindSafe for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl RefUnwindSafe for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl RefUnwindSafe for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl RefUnwindSafe for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl RefUnwindSafe for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl RefUnwindSafe for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl RefUnwindSafe for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl RefUnwindSafe for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl RefUnwindSafe for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl RefUnwindSafe for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl RefUnwindSafe for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl RefUnwindSafe for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl RefUnwindSafe for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl RefUnwindSafe for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl RefUnwindSafe for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl RefUnwindSafe for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl RefUnwindSafe for Real",1,["mcaptcha::stats::Real"]],["impl RefUnwindSafe for Dummy",1,["mcaptcha::stats::Dummy"]],["impl RefUnwindSafe for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl RefUnwindSafe for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl RefUnwindSafe for show_widget",1,["mcaptcha::widget::show_widget"]],["impl RefUnwindSafe for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl RefUnwindSafe for FILES",1,["mcaptcha::FILES"]],["impl RefUnwindSafe for JS",1,["mcaptcha::JS"]],["impl RefUnwindSafe for CSS",1,["mcaptcha::CSS"]],["impl RefUnwindSafe for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl RefUnwindSafe for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl RefUnwindSafe for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl RefUnwindSafe for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] +"db_core":[["impl !RefUnwindSafe for DBError",1,["db_core::errors::DBError"]],["impl<'a> RefUnwindSafe for Register<'a>",1,["db_core::Register"]],["impl<'a> RefUnwindSafe for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> RefUnwindSafe for Login<'a>",1,["db_core::Login"]],["impl RefUnwindSafe for NameHash",1,["db_core::NameHash"]],["impl RefUnwindSafe for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl RefUnwindSafe for Notification",1,["db_core::Notification"]],["impl<'a> RefUnwindSafe for AddNotification<'a>",1,["db_core::AddNotification"]],["impl RefUnwindSafe for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> RefUnwindSafe for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl RefUnwindSafe for Captcha",1,["db_core::Captcha"]],["impl RefUnwindSafe for Secret",1,["db_core::Secret"]]], +"db_sqlx_maria":[["impl !RefUnwindSafe for Database",1,["db_sqlx_maria::Database"]],["impl !RefUnwindSafe for Conn",1,["db_sqlx_maria::Conn"]],["impl !RefUnwindSafe for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl !RefUnwindSafe for Fresh",1,["db_sqlx_maria::Fresh"]],["impl RefUnwindSafe for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], +"db_sqlx_postgres":[["impl !RefUnwindSafe for Database",1,["db_sqlx_postgres::Database"]],["impl !RefUnwindSafe for Conn",1,["db_sqlx_postgres::Conn"]],["impl !RefUnwindSafe for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl !RefUnwindSafe for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl RefUnwindSafe for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], +"mcaptcha":[["impl RefUnwindSafe for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl RefUnwindSafe for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::account::email::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::email::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::email::_::deserialize::__Visitor"]],["impl RefUnwindSafe for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl RefUnwindSafe for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl RefUnwindSafe for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::account::password::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::password::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::password::_::deserialize::__Visitor"]],["impl RefUnwindSafe for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl RefUnwindSafe for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl RefUnwindSafe for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl RefUnwindSafe for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl RefUnwindSafe for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl RefUnwindSafe for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::account::username::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::username::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::username::_::deserialize::__Visitor"]],["impl RefUnwindSafe for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl RefUnwindSafe for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl RefUnwindSafe for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl RefUnwindSafe for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl RefUnwindSafe for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl RefUnwindSafe for register",1,["mcaptcha::api::v1::auth::register"]],["impl RefUnwindSafe for login",1,["mcaptcha::api::v1::auth::login"]],["impl RefUnwindSafe for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl RefUnwindSafe for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl RefUnwindSafe for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl RefUnwindSafe for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl RefUnwindSafe for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Visitor"]],["impl RefUnwindSafe for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl RefUnwindSafe for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl RefUnwindSafe for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl RefUnwindSafe for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl RefUnwindSafe for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl RefUnwindSafe for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl RefUnwindSafe for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl RefUnwindSafe for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl RefUnwindSafe for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl RefUnwindSafe for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Visitor"]],["impl RefUnwindSafe for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl RefUnwindSafe for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl RefUnwindSafe for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Visitor"]],["impl RefUnwindSafe for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl RefUnwindSafe for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl RefUnwindSafe for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl RefUnwindSafe for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl RefUnwindSafe for __Visitor",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl RefUnwindSafe for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl RefUnwindSafe for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl RefUnwindSafe for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl RefUnwindSafe for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl RefUnwindSafe for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl RefUnwindSafe for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl RefUnwindSafe for health",1,["mcaptcha::api::v1::meta::health"]],["impl RefUnwindSafe for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Visitor"]],["impl RefUnwindSafe for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl RefUnwindSafe for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Visitor"]],["impl RefUnwindSafe for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl RefUnwindSafe for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Visitor"]],["impl RefUnwindSafe for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl RefUnwindSafe for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl RefUnwindSafe for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Visitor"]],["impl RefUnwindSafe for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl RefUnwindSafe for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Visitor"]],["impl RefUnwindSafe for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl RefUnwindSafe for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl RefUnwindSafe for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl RefUnwindSafe for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl RefUnwindSafe for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl RefUnwindSafe for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl RefUnwindSafe for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::api::v1::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::_::deserialize::__Visitor"]],["impl !RefUnwindSafe for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl !RefUnwindSafe for Data",1,["mcaptcha::data::Data"]],["impl RefUnwindSafe for Date",1,["mcaptcha::date::Date"]],["impl RefUnwindSafe for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl RefUnwindSafe for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl RefUnwindSafe for Asset",1,["mcaptcha::docs::Asset"]],["impl RefUnwindSafe for dist",1,["mcaptcha::docs::dist"]],["impl RefUnwindSafe for spec",1,["mcaptcha::docs::spec"]],["impl RefUnwindSafe for index",1,["mcaptcha::docs::index"]],["impl<'a> RefUnwindSafe for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl !RefUnwindSafe for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl !RefUnwindSafe for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl !RefUnwindSafe for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl RefUnwindSafe for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::errors::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::errors::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::errors::_::deserialize::__Visitor"]],["impl !RefUnwindSafe for PageError",1,["mcaptcha::errors::PageError"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl RefUnwindSafe for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl RefUnwindSafe for login",1,["mcaptcha::pages::auth::login::login"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl RefUnwindSafe for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl RefUnwindSafe for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> RefUnwindSafe for SudoPage<'a, K, V>where\n K: RefUnwindSafe,\n V: RefUnwindSafe,",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl RefUnwindSafe for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl RefUnwindSafe for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> RefUnwindSafe for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl RefUnwindSafe for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl RefUnwindSafe for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl RefUnwindSafe for error",1,["mcaptcha::pages::errors::error"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl RefUnwindSafe for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl RefUnwindSafe for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl RefUnwindSafe for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> RefUnwindSafe for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl RefUnwindSafe for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl RefUnwindSafe for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl RefUnwindSafe for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl RefUnwindSafe for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl RefUnwindSafe for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> RefUnwindSafe for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl RefUnwindSafe for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> RefUnwindSafe for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl RefUnwindSafe for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl RefUnwindSafe for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl RefUnwindSafe for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl RefUnwindSafe for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> RefUnwindSafe for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl RefUnwindSafe for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl RefUnwindSafe for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl RefUnwindSafe for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl RefUnwindSafe for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl RefUnwindSafe for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl RefUnwindSafe for panel",1,["mcaptcha::pages::panel::panel"]],["impl RefUnwindSafe for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl RefUnwindSafe for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl RefUnwindSafe for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl RefUnwindSafe for Server",1,["mcaptcha::settings::Server"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Captcha",1,["mcaptcha::settings::Captcha"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl RefUnwindSafe for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Smtp",1,["mcaptcha::settings::Smtp"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl RefUnwindSafe for DBType",1,["mcaptcha::settings::DBType"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Database",1,["mcaptcha::settings::Database"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Redis",1,["mcaptcha::settings::Redis"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Settings",1,["mcaptcha::settings::Settings"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl RefUnwindSafe for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl RefUnwindSafe for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl RefUnwindSafe for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl RefUnwindSafe for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl RefUnwindSafe for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl RefUnwindSafe for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl RefUnwindSafe for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl RefUnwindSafe for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl RefUnwindSafe for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl RefUnwindSafe for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl RefUnwindSafe for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl RefUnwindSafe for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl RefUnwindSafe for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl RefUnwindSafe for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl RefUnwindSafe for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl RefUnwindSafe for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl RefUnwindSafe for __Field",1,["mcaptcha::stats::_::deserialize::__Field"]],["impl RefUnwindSafe for __FieldVisitor",1,["mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> RefUnwindSafe for __Visitor<'de>",1,["mcaptcha::stats::_::deserialize::__Visitor"]],["impl RefUnwindSafe for Real",1,["mcaptcha::stats::Real"]],["impl RefUnwindSafe for Dummy",1,["mcaptcha::stats::Dummy"]],["impl RefUnwindSafe for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl RefUnwindSafe for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl RefUnwindSafe for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl RefUnwindSafe for show_widget",1,["mcaptcha::widget::show_widget"]],["impl RefUnwindSafe for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl RefUnwindSafe for FILES",1,["mcaptcha::FILES"]],["impl RefUnwindSafe for JS",1,["mcaptcha::JS"]],["impl RefUnwindSafe for CSS",1,["mcaptcha::CSS"]],["impl RefUnwindSafe for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl RefUnwindSafe for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl RefUnwindSafe for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl RefUnwindSafe for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/panic/unwind_safe/trait.UnwindSafe.js b/implementors/core/panic/unwind_safe/trait.UnwindSafe.js index 05038f42..daa14d8d 100644 --- a/implementors/core/panic/unwind_safe/trait.UnwindSafe.js +++ b/implementors/core/panic/unwind_safe/trait.UnwindSafe.js @@ -1,6 +1,6 @@ (function() {var implementors = { -"db_core":[["impl !UnwindSafe for DBError",1,["db_core::errors::DBError"]],["impl<'a> UnwindSafe for Register<'a>",1,["db_core::Register"]],["impl<'a> UnwindSafe for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> UnwindSafe for Login<'a>",1,["db_core::Login"]],["impl UnwindSafe for NameHash",1,["db_core::NameHash"]],["impl UnwindSafe for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl UnwindSafe for Notification",1,["db_core::Notification"]],["impl<'a> UnwindSafe for AddNotification<'a>",1,["db_core::AddNotification"]],["impl UnwindSafe for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> UnwindSafe for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl UnwindSafe for Captcha",1,["db_core::Captcha"]],["impl UnwindSafe for Secret",1,["db_core::Secret"]]], -"db_sqlx_maria":[["impl !UnwindSafe for Database",1,["db_sqlx_maria::Database"]],["impl !UnwindSafe for Conn",1,["db_sqlx_maria::Conn"]],["impl !UnwindSafe for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl !UnwindSafe for Fresh",1,["db_sqlx_maria::Fresh"]],["impl UnwindSafe for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], -"db_sqlx_postgres":[["impl !UnwindSafe for Database",1,["db_sqlx_postgres::Database"]],["impl !UnwindSafe for Conn",1,["db_sqlx_postgres::Conn"]],["impl !UnwindSafe for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl !UnwindSafe for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl UnwindSafe for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], -"mcaptcha":[["impl UnwindSafe for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl UnwindSafe for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl UnwindSafe for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl UnwindSafe for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl UnwindSafe for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl UnwindSafe for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl UnwindSafe for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl UnwindSafe for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl UnwindSafe for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl UnwindSafe for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl UnwindSafe for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl UnwindSafe for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl UnwindSafe for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl UnwindSafe for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl UnwindSafe for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl UnwindSafe for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl UnwindSafe for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl UnwindSafe for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl UnwindSafe for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl UnwindSafe for register",1,["mcaptcha::api::v1::auth::register"]],["impl UnwindSafe for login",1,["mcaptcha::api::v1::auth::login"]],["impl UnwindSafe for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl UnwindSafe for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl UnwindSafe for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl UnwindSafe for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl UnwindSafe for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl UnwindSafe for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl UnwindSafe for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl UnwindSafe for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl UnwindSafe for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl UnwindSafe for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl UnwindSafe for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl UnwindSafe for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl UnwindSafe for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl UnwindSafe for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl UnwindSafe for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl UnwindSafe for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl UnwindSafe for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl UnwindSafe for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl UnwindSafe for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl UnwindSafe for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl UnwindSafe for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl UnwindSafe for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl UnwindSafe for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl UnwindSafe for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl UnwindSafe for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl UnwindSafe for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl UnwindSafe for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl UnwindSafe for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl UnwindSafe for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl UnwindSafe for health",1,["mcaptcha::api::v1::meta::health"]],["impl UnwindSafe for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl UnwindSafe for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl UnwindSafe for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl UnwindSafe for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl UnwindSafe for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl UnwindSafe for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl UnwindSafe for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl UnwindSafe for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl UnwindSafe for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl UnwindSafe for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl UnwindSafe for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl UnwindSafe for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl UnwindSafe for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl UnwindSafe for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl UnwindSafe for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl UnwindSafe for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl UnwindSafe for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl !UnwindSafe for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl !UnwindSafe for Data",1,["mcaptcha::data::Data"]],["impl UnwindSafe for Date",1,["mcaptcha::date::Date"]],["impl UnwindSafe for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl UnwindSafe for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl UnwindSafe for Asset",1,["mcaptcha::docs::Asset"]],["impl UnwindSafe for dist",1,["mcaptcha::docs::dist"]],["impl UnwindSafe for spec",1,["mcaptcha::docs::spec"]],["impl UnwindSafe for index",1,["mcaptcha::docs::index"]],["impl<'a> UnwindSafe for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl !UnwindSafe for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl !UnwindSafe for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl !UnwindSafe for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl UnwindSafe for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl !UnwindSafe for PageError",1,["mcaptcha::errors::PageError"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl UnwindSafe for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl UnwindSafe for login",1,["mcaptcha::pages::auth::login::login"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl UnwindSafe for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl UnwindSafe for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> UnwindSafe for SudoPage<'a, K, V>where
    K: UnwindSafe,
    V: UnwindSafe,
",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl UnwindSafe for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl UnwindSafe for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> UnwindSafe for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl UnwindSafe for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl UnwindSafe for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl UnwindSafe for error",1,["mcaptcha::pages::errors::error"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl UnwindSafe for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl UnwindSafe for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl UnwindSafe for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> UnwindSafe for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl UnwindSafe for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl UnwindSafe for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl UnwindSafe for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl UnwindSafe for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl UnwindSafe for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> UnwindSafe for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl UnwindSafe for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> UnwindSafe for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl UnwindSafe for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl UnwindSafe for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl UnwindSafe for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl UnwindSafe for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> UnwindSafe for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl UnwindSafe for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl UnwindSafe for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl UnwindSafe for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl UnwindSafe for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl UnwindSafe for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl UnwindSafe for panel",1,["mcaptcha::pages::panel::panel"]],["impl UnwindSafe for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl UnwindSafe for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl UnwindSafe for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl UnwindSafe for Server",1,["mcaptcha::settings::Server"]],["impl UnwindSafe for Captcha",1,["mcaptcha::settings::Captcha"]],["impl UnwindSafe for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl UnwindSafe for Smtp",1,["mcaptcha::settings::Smtp"]],["impl UnwindSafe for DBType",1,["mcaptcha::settings::DBType"]],["impl UnwindSafe for Database",1,["mcaptcha::settings::Database"]],["impl UnwindSafe for Redis",1,["mcaptcha::settings::Redis"]],["impl UnwindSafe for Settings",1,["mcaptcha::settings::Settings"]],["impl UnwindSafe for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl UnwindSafe for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl UnwindSafe for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl UnwindSafe for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl UnwindSafe for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl UnwindSafe for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl UnwindSafe for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl UnwindSafe for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl UnwindSafe for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl UnwindSafe for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl UnwindSafe for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl UnwindSafe for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl UnwindSafe for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl UnwindSafe for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl UnwindSafe for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl UnwindSafe for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl UnwindSafe for Real",1,["mcaptcha::stats::Real"]],["impl UnwindSafe for Dummy",1,["mcaptcha::stats::Dummy"]],["impl UnwindSafe for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl UnwindSafe for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl UnwindSafe for show_widget",1,["mcaptcha::widget::show_widget"]],["impl UnwindSafe for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl UnwindSafe for FILES",1,["mcaptcha::FILES"]],["impl UnwindSafe for JS",1,["mcaptcha::JS"]],["impl UnwindSafe for CSS",1,["mcaptcha::CSS"]],["impl UnwindSafe for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl UnwindSafe for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl UnwindSafe for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl UnwindSafe for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] +"db_core":[["impl !UnwindSafe for DBError",1,["db_core::errors::DBError"]],["impl<'a> UnwindSafe for Register<'a>",1,["db_core::Register"]],["impl<'a> UnwindSafe for UpdateEmail<'a>",1,["db_core::UpdateEmail"]],["impl<'a> UnwindSafe for Login<'a>",1,["db_core::Login"]],["impl UnwindSafe for NameHash",1,["db_core::NameHash"]],["impl UnwindSafe for StatsUnixTimestamp",1,["db_core::StatsUnixTimestamp"]],["impl UnwindSafe for Notification",1,["db_core::Notification"]],["impl<'a> UnwindSafe for AddNotification<'a>",1,["db_core::AddNotification"]],["impl UnwindSafe for TrafficPattern",1,["db_core::TrafficPattern"]],["impl<'a> UnwindSafe for CreateCaptcha<'a>",1,["db_core::CreateCaptcha"]],["impl UnwindSafe for Captcha",1,["db_core::Captcha"]],["impl UnwindSafe for Secret",1,["db_core::Secret"]]], +"db_sqlx_maria":[["impl !UnwindSafe for Database",1,["db_sqlx_maria::Database"]],["impl !UnwindSafe for Conn",1,["db_sqlx_maria::Conn"]],["impl !UnwindSafe for ConnectionOptions",1,["db_sqlx_maria::ConnectionOptions"]],["impl !UnwindSafe for Fresh",1,["db_sqlx_maria::Fresh"]],["impl UnwindSafe for InnerNotification",1,["db_sqlx_maria::InnerNotification"]]], +"db_sqlx_postgres":[["impl !UnwindSafe for Database",1,["db_sqlx_postgres::Database"]],["impl !UnwindSafe for Conn",1,["db_sqlx_postgres::Conn"]],["impl !UnwindSafe for ConnectionOptions",1,["db_sqlx_postgres::ConnectionOptions"]],["impl !UnwindSafe for Fresh",1,["db_sqlx_postgres::Fresh"]],["impl UnwindSafe for InnerNotification",1,["db_sqlx_postgres::InnerNotification"]]], +"mcaptcha":[["impl UnwindSafe for delete_account",1,["mcaptcha::api::v1::account::delete::delete_account"]],["impl UnwindSafe for Email",1,["mcaptcha::api::v1::account::email::Email"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::account::email::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::email::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::email::_::deserialize::__Visitor"]],["impl UnwindSafe for email_exists",1,["mcaptcha::api::v1::account::email::email_exists"]],["impl UnwindSafe for set_email",1,["mcaptcha::api::v1::account::email::set_email"]],["impl UnwindSafe for ChangePasswordReqest",1,["mcaptcha::api::v1::account::password::ChangePasswordReqest"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::account::password::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::password::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::password::_::deserialize::__Visitor"]],["impl UnwindSafe for UpdatePassword",1,["mcaptcha::api::v1::account::password::UpdatePassword"]],["impl UnwindSafe for update_user_password",1,["mcaptcha::api::v1::account::password::update_user_password"]],["impl UnwindSafe for get_secret",1,["mcaptcha::api::v1::account::secret::get_secret"]],["impl UnwindSafe for update_user_secret",1,["mcaptcha::api::v1::account::secret::update_user_secret"]],["impl UnwindSafe for username_exists",1,["mcaptcha::api::v1::account::username::username_exists"]],["impl UnwindSafe for Username",1,["mcaptcha::api::v1::account::username::Username"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::account::username::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::username::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::username::_::deserialize::__Visitor"]],["impl UnwindSafe for set_username",1,["mcaptcha::api::v1::account::username::set_username"]],["impl UnwindSafe for Account",1,["mcaptcha::api::v1::account::routes::Account"]],["impl UnwindSafe for AccountCheckPayload",1,["mcaptcha::api::v1::account::AccountCheckPayload"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl UnwindSafe for AccountCheckResp",1,["mcaptcha::api::v1::account::AccountCheckResp"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::account::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::account::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::account::_::deserialize::__Visitor"]],["impl UnwindSafe for Auth",1,["mcaptcha::api::v1::auth::routes::Auth"]],["impl UnwindSafe for Register",1,["mcaptcha::api::v1::auth::runners::Register"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl UnwindSafe for Login",1,["mcaptcha::api::v1::auth::runners::Login"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl UnwindSafe for Password",1,["mcaptcha::api::v1::auth::runners::Password"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::auth::runners::_::deserialize::__Visitor"]],["impl UnwindSafe for register",1,["mcaptcha::api::v1::auth::register"]],["impl UnwindSafe for login",1,["mcaptcha::api::v1::auth::login"]],["impl UnwindSafe for signout",1,["mcaptcha::api::v1::auth::signout"]],["impl UnwindSafe for CreateCaptcha",1,["mcaptcha::api::v1::mcaptcha::create::CreateCaptcha"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl UnwindSafe for MCaptchaDetails",1,["mcaptcha::api::v1::mcaptcha::create::MCaptchaDetails"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::create::_::deserialize::__Visitor"]],["impl UnwindSafe for create",1,["mcaptcha::api::v1::mcaptcha::create::create"]],["impl UnwindSafe for DeleteCaptcha",1,["mcaptcha::api::v1::mcaptcha::delete::DeleteCaptcha"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::delete::_::deserialize::__Visitor"]],["impl UnwindSafe for delete",1,["mcaptcha::api::v1::mcaptcha::delete::delete"]],["impl UnwindSafe for Easy",1,["mcaptcha::api::v1::mcaptcha::easy::routes::Easy"]],["impl UnwindSafe for TrafficPatternRequest",1,["mcaptcha::api::v1::mcaptcha::easy::TrafficPatternRequest"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl UnwindSafe for create",1,["mcaptcha::api::v1::mcaptcha::easy::create"]],["impl UnwindSafe for UpdateTrafficPattern",1,["mcaptcha::api::v1::mcaptcha::easy::UpdateTrafficPattern"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::easy::_::deserialize::__Visitor"]],["impl UnwindSafe for update",1,["mcaptcha::api::v1::mcaptcha::easy::update"]],["impl UnwindSafe for get_captcha",1,["mcaptcha::api::v1::mcaptcha::get::get_captcha"]],["impl UnwindSafe for Levels",1,["mcaptcha::api::v1::mcaptcha::get::Levels"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl UnwindSafe for I32Levels",1,["mcaptcha::api::v1::mcaptcha::get::I32Levels"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::get::_::deserialize::__Visitor"]],["impl UnwindSafe for Stats",1,["mcaptcha::api::v1::mcaptcha::stats::routes::Stats"]],["impl UnwindSafe for StatsPayload",1,["mcaptcha::api::v1::mcaptcha::stats::StatsPayload"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::stats::_::deserialize::__Visitor"]],["impl UnwindSafe for get",1,["mcaptcha::api::v1::mcaptcha::stats::get"]],["impl UnwindSafe for update_key",1,["mcaptcha::api::v1::mcaptcha::update::update_key"]],["impl UnwindSafe for UpdateCaptcha",1,["mcaptcha::api::v1::mcaptcha::update::UpdateCaptcha"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::mcaptcha::update::_::deserialize::__Visitor"]],["impl UnwindSafe for update_captcha",1,["mcaptcha::api::v1::mcaptcha::update::update_captcha"]],["impl UnwindSafe for Captcha",1,["mcaptcha::api::v1::mcaptcha::routes::Captcha"]],["impl UnwindSafe for Meta",1,["mcaptcha::api::v1::meta::routes::Meta"]],["impl UnwindSafe for BuildDetails",1,["mcaptcha::api::v1::meta::BuildDetails"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl UnwindSafe for __Visitor",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl UnwindSafe for BuildDetailsBuilder",1,["mcaptcha::api::v1::meta::BuildDetailsBuilder"]],["impl UnwindSafe for BuildDetailsBuilderError",1,["mcaptcha::api::v1::meta::BuildDetailsBuilderError"]],["impl UnwindSafe for build_details",1,["mcaptcha::api::v1::meta::build_details"]],["impl UnwindSafe for Health",1,["mcaptcha::api::v1::meta::Health"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::meta::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::meta::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::meta::_::deserialize::__Visitor"]],["impl UnwindSafe for HealthBuilder",1,["mcaptcha::api::v1::meta::HealthBuilder"]],["impl UnwindSafe for HealthBuilderError",1,["mcaptcha::api::v1::meta::HealthBuilderError"]],["impl UnwindSafe for health",1,["mcaptcha::api::v1::meta::health"]],["impl UnwindSafe for AddNotificationRequest",1,["mcaptcha::api::v1::notifications::add::AddNotificationRequest"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::add::_::deserialize::__Visitor"]],["impl UnwindSafe for add_notification",1,["mcaptcha::api::v1::notifications::add::add_notification"]],["impl UnwindSafe for NotificationResp",1,["mcaptcha::api::v1::notifications::get::NotificationResp"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::get::_::deserialize::__Visitor"]],["impl UnwindSafe for get_notification",1,["mcaptcha::api::v1::notifications::get::get_notification"]],["impl UnwindSafe for MarkReadReq",1,["mcaptcha::api::v1::notifications::mark_read::MarkReadReq"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::notifications::mark_read::_::deserialize::__Visitor"]],["impl UnwindSafe for mark_read",1,["mcaptcha::api::v1::notifications::mark_read::mark_read"]],["impl UnwindSafe for Notifications",1,["mcaptcha::api::v1::notifications::routes::Notifications"]],["impl UnwindSafe for GetConfigPayload",1,["mcaptcha::api::v1::pow::get_config::GetConfigPayload"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::pow::get_config::_::deserialize::__Visitor"]],["impl UnwindSafe for get_config",1,["mcaptcha::api::v1::pow::get_config::get_config"]],["impl UnwindSafe for ValidationToken",1,["mcaptcha::api::v1::pow::verify_pow::ValidationToken"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_pow::_::deserialize::__Visitor"]],["impl UnwindSafe for verify_pow",1,["mcaptcha::api::v1::pow::verify_pow::verify_pow"]],["impl UnwindSafe for CaptchaValidateResp",1,["mcaptcha::api::v1::pow::verify_token::CaptchaValidateResp"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl UnwindSafe for VerifyCaptchaResultPayload",1,["mcaptcha::api::v1::pow::verify_token::VerifyCaptchaResultPayload"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::pow::verify_token::_::deserialize::__Visitor"]],["impl UnwindSafe for validate_captcha_token",1,["mcaptcha::api::v1::pow::verify_token::validate_captcha_token"]],["impl UnwindSafe for PoW",1,["mcaptcha::api::v1::pow::routes::PoW"]],["impl UnwindSafe for Routes",1,["mcaptcha::api::v1::routes::Routes"]],["impl UnwindSafe for RedirectQuery",1,["mcaptcha::api::v1::RedirectQuery"]],["impl UnwindSafe for __Field",1,["mcaptcha::api::v1::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::api::v1::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::api::v1::_::deserialize::__Visitor"]],["impl !UnwindSafe for SystemGroup",1,["mcaptcha::data::SystemGroup"]],["impl !UnwindSafe for Data",1,["mcaptcha::data::Data"]],["impl UnwindSafe for Date",1,["mcaptcha::date::Date"]],["impl UnwindSafe for DemoUser",1,["mcaptcha::demo::DemoUser"]],["impl UnwindSafe for Docs",1,["mcaptcha::docs::routes::Docs"]],["impl UnwindSafe for Asset",1,["mcaptcha::docs::Asset"]],["impl UnwindSafe for dist",1,["mcaptcha::docs::dist"]],["impl UnwindSafe for spec",1,["mcaptcha::docs::spec"]],["impl UnwindSafe for index",1,["mcaptcha::docs::index"]],["impl<'a> UnwindSafe for IndexPage<'a>",1,["mcaptcha::email::verification::IndexPage"]],["impl !UnwindSafe for SmtpErrorWrapper",1,["mcaptcha::errors::SmtpErrorWrapper"]],["impl !UnwindSafe for DBErrorWrapper",1,["mcaptcha::errors::DBErrorWrapper"]],["impl !UnwindSafe for ServiceError",1,["mcaptcha::errors::ServiceError"]],["impl UnwindSafe for ErrorToResponse",1,["mcaptcha::errors::ErrorToResponse"]],["impl UnwindSafe for __Field",1,["mcaptcha::errors::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::errors::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::errors::_::deserialize::__Visitor"]],["impl !UnwindSafe for PageError",1,["mcaptcha::errors::PageError"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::auth::login::IndexPage"]],["impl UnwindSafe for INDEX",1,["mcaptcha::pages::auth::login::INDEX"]],["impl UnwindSafe for login",1,["mcaptcha::pages::auth::login::login"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::auth::register::IndexPage"]],["impl UnwindSafe for INDEX",1,["mcaptcha::pages::auth::register::INDEX"]],["impl UnwindSafe for join",1,["mcaptcha::pages::auth::register::join"]],["impl<'a, K, V> UnwindSafe for SudoPage<'a, K, V>where\n K: UnwindSafe,\n V: UnwindSafe,",1,["mcaptcha::pages::auth::sudo::SudoPage"]],["impl UnwindSafe for Auth",1,["mcaptcha::pages::auth::routes::Auth"]],["impl UnwindSafe for Errors",1,["mcaptcha::pages::errors::routes::Errors"]],["impl<'a> UnwindSafe for ErrorPage<'a>",1,["mcaptcha::pages::errors::ErrorPage"]],["impl UnwindSafe for INTERNAL_SERVER_ERROR_BODY",1,["mcaptcha::pages::errors::INTERNAL_SERVER_ERROR_BODY"]],["impl UnwindSafe for UNKNOWN_ERROR_BODY",1,["mcaptcha::pages::errors::UNKNOWN_ERROR_BODY"]],["impl UnwindSafe for error",1,["mcaptcha::pages::errors::error"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::panel::notifications::IndexPage"]],["impl UnwindSafe for Notification",1,["mcaptcha::pages::panel::notifications::Notification"]],["impl UnwindSafe for notifications",1,["mcaptcha::pages::panel::notifications::notifications"]],["impl UnwindSafe for Settings",1,["mcaptcha::pages::panel::settings::routes::Settings"]],["impl<'a> UnwindSafe for IndexPage<'a>",1,["mcaptcha::pages::panel::settings::IndexPage"]],["impl UnwindSafe for settings",1,["mcaptcha::pages::panel::settings::settings"]],["impl UnwindSafe for delete_account",1,["mcaptcha::pages::panel::settings::delete_account"]],["impl UnwindSafe for update_secret",1,["mcaptcha::pages::panel::settings::update_secret"]],["impl UnwindSafe for ADVANCE_INDEX",1,["mcaptcha::pages::panel::sitekey::add::ADVANCE_INDEX"]],["impl UnwindSafe for EASY_INDEX",1,["mcaptcha::pages::panel::sitekey::add::EASY_INDEX"]],["impl<'a> UnwindSafe for AdvanceIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::AdvanceIndexPage"]],["impl UnwindSafe for advance",1,["mcaptcha::pages::panel::sitekey::add::advance"]],["impl<'a> UnwindSafe for EasyIndexPage<'a>",1,["mcaptcha::pages::panel::sitekey::add::EasyIndexPage"]],["impl UnwindSafe for easy",1,["mcaptcha::pages::panel::sitekey::add::easy"]],["impl UnwindSafe for delete_sitekey",1,["mcaptcha::pages::panel::sitekey::delete::delete_sitekey"]],["impl UnwindSafe for AdvanceEditPage",1,["mcaptcha::pages::panel::sitekey::edit::AdvanceEditPage"]],["impl UnwindSafe for advance",1,["mcaptcha::pages::panel::sitekey::edit::advance"]],["impl<'a> UnwindSafe for EasyEditPage<'a>",1,["mcaptcha::pages::panel::sitekey::edit::EasyEditPage"]],["impl UnwindSafe for easy",1,["mcaptcha::pages::panel::sitekey::edit::easy"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::panel::sitekey::list::IndexPage"]],["impl UnwindSafe for list_sitekeys",1,["mcaptcha::pages::panel::sitekey::list::list_sitekeys"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::panel::sitekey::view::IndexPage"]],["impl UnwindSafe for view_sitekey",1,["mcaptcha::pages::panel::sitekey::view::view_sitekey"]],["impl UnwindSafe for Sitekey",1,["mcaptcha::pages::panel::sitekey::routes::Sitekey"]],["impl UnwindSafe for Panel",1,["mcaptcha::pages::panel::routes::Panel"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::panel::IndexPage"]],["impl UnwindSafe for panel",1,["mcaptcha::pages::panel::panel"]],["impl UnwindSafe for Routes",1,["mcaptcha::pages::routes::Routes"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::pages::sitemap::IndexPage"]],["impl UnwindSafe for INDEX",1,["mcaptcha::pages::sitemap::INDEX"]],["impl UnwindSafe for sitemap",1,["mcaptcha::pages::sitemap::sitemap"]],["impl UnwindSafe for Server",1,["mcaptcha::settings::Server"]],["impl UnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl UnwindSafe for Captcha",1,["mcaptcha::settings::Captcha"]],["impl UnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl UnwindSafe for DefaultDifficultyStrategy",1,["mcaptcha::settings::DefaultDifficultyStrategy"]],["impl UnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl UnwindSafe for Smtp",1,["mcaptcha::settings::Smtp"]],["impl UnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl UnwindSafe for DBType",1,["mcaptcha::settings::DBType"]],["impl UnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl UnwindSafe for Database",1,["mcaptcha::settings::Database"]],["impl UnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl UnwindSafe for Redis",1,["mcaptcha::settings::Redis"]],["impl UnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl UnwindSafe for Settings",1,["mcaptcha::settings::Settings"]],["impl UnwindSafe for __Field",1,["mcaptcha::settings::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::settings::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::settings::_::deserialize::__Visitor"]],["impl UnwindSafe for FileMap",1,["mcaptcha::static_assets::filemap::FileMap"]],["impl UnwindSafe for KEY",1,["mcaptcha::static_assets::static_files::assets::KEY"]],["impl UnwindSafe for GITHUB",1,["mcaptcha::static_assets::static_files::assets::GITHUB"]],["impl UnwindSafe for HOME",1,["mcaptcha::static_assets::static_files::assets::HOME"]],["impl UnwindSafe for SETTINGS_ICON",1,["mcaptcha::static_assets::static_files::assets::SETTINGS_ICON"]],["impl UnwindSafe for CREDIT_CARD",1,["mcaptcha::static_assets::static_files::assets::CREDIT_CARD"]],["impl UnwindSafe for HELP_CIRCLE",1,["mcaptcha::static_assets::static_files::assets::HELP_CIRCLE"]],["impl UnwindSafe for MESSAGE",1,["mcaptcha::static_assets::static_files::assets::MESSAGE"]],["impl UnwindSafe for DOCS_ICON",1,["mcaptcha::static_assets::static_files::assets::DOCS_ICON"]],["impl UnwindSafe for MCAPTCHA_TRANS_ICON",1,["mcaptcha::static_assets::static_files::assets::MCAPTCHA_TRANS_ICON"]],["impl UnwindSafe for BAR_CHART",1,["mcaptcha::static_assets::static_files::assets::BAR_CHART"]],["impl UnwindSafe for Asset",1,["mcaptcha::static_assets::static_files::Asset"]],["impl UnwindSafe for static_files",1,["mcaptcha::static_assets::static_files::static_files"]],["impl UnwindSafe for Favicons",1,["mcaptcha::static_assets::static_files::Favicons"]],["impl UnwindSafe for favicons",1,["mcaptcha::static_assets::static_files::favicons"]],["impl UnwindSafe for CaptchaStats",1,["mcaptcha::stats::CaptchaStats"]],["impl UnwindSafe for __Field",1,["mcaptcha::stats::_::deserialize::__Field"]],["impl UnwindSafe for __FieldVisitor",1,["mcaptcha::stats::_::deserialize::__FieldVisitor"]],["impl<'de> UnwindSafe for __Visitor<'de>",1,["mcaptcha::stats::_::deserialize::__Visitor"]],["impl UnwindSafe for Real",1,["mcaptcha::stats::Real"]],["impl UnwindSafe for Dummy",1,["mcaptcha::stats::Dummy"]],["impl UnwindSafe for Widget",1,["mcaptcha::widget::routes::Widget"]],["impl UnwindSafe for IndexPage",1,["mcaptcha::widget::IndexPage"]],["impl UnwindSafe for INDEX_PAGE",1,["mcaptcha::widget::INDEX_PAGE"]],["impl UnwindSafe for show_widget",1,["mcaptcha::widget::show_widget"]],["impl UnwindSafe for SETTINGS",1,["mcaptcha::SETTINGS"]],["impl UnwindSafe for FILES",1,["mcaptcha::FILES"]],["impl UnwindSafe for JS",1,["mcaptcha::JS"]],["impl UnwindSafe for CSS",1,["mcaptcha::CSS"]],["impl UnwindSafe for MOBILE_CSS",1,["mcaptcha::MOBILE_CSS"]],["impl UnwindSafe for VERIFICATIN_WIDGET_JS",1,["mcaptcha::VERIFICATIN_WIDGET_JS"]],["impl UnwindSafe for VERIFICATIN_WIDGET_CSS",1,["mcaptcha::VERIFICATIN_WIDGET_CSS"]],["impl UnwindSafe for SOURCE_FILES_OF_INSTANCE",1,["mcaptcha::SOURCE_FILES_OF_INSTANCE"]]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/lazy_static/trait.LazyStatic.js b/implementors/lazy_static/trait.LazyStatic.js index 7be67639..630f4a95 100644 --- a/implementors/lazy_static/trait.LazyStatic.js +++ b/implementors/lazy_static/trait.LazyStatic.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mcaptcha":[["impl LazyStatic for INDEX"],["impl LazyStatic for INDEX"],["impl LazyStatic for INTERNAL_SERVER_ERROR_BODY"],["impl LazyStatic for UNKNOWN_ERROR_BODY"],["impl LazyStatic for ADVANCE_INDEX"],["impl LazyStatic for EASY_INDEX"],["impl LazyStatic for INDEX"],["impl LazyStatic for KEY"],["impl LazyStatic for GITHUB"],["impl LazyStatic for HOME"],["impl LazyStatic for SETTINGS_ICON"],["impl LazyStatic for CREDIT_CARD"],["impl LazyStatic for HELP_CIRCLE"],["impl LazyStatic for MESSAGE"],["impl LazyStatic for DOCS_ICON"],["impl LazyStatic for MCAPTCHA_TRANS_ICON"],["impl LazyStatic for BAR_CHART"],["impl LazyStatic for INDEX_PAGE"],["impl LazyStatic for SETTINGS"],["impl LazyStatic for FILES"],["impl LazyStatic for JS"],["impl LazyStatic for CSS"],["impl LazyStatic for MOBILE_CSS"],["impl LazyStatic for VERIFICATIN_WIDGET_JS"],["impl LazyStatic for VERIFICATIN_WIDGET_CSS"],["impl LazyStatic for SOURCE_FILES_OF_INSTANCE"]] +"mcaptcha":[["impl LazyStatic for SOURCE_FILES_OF_INSTANCE"],["impl LazyStatic for INDEX"],["impl LazyStatic for GITHUB"],["impl LazyStatic for ADVANCE_INDEX"],["impl LazyStatic for VERIFICATIN_WIDGET_JS"],["impl LazyStatic for SETTINGS"],["impl LazyStatic for BAR_CHART"],["impl LazyStatic for INDEX_PAGE"],["impl LazyStatic for CSS"],["impl LazyStatic for INDEX"],["impl LazyStatic for CREDIT_CARD"],["impl LazyStatic for UNKNOWN_ERROR_BODY"],["impl LazyStatic for INDEX"],["impl LazyStatic for FILES"],["impl LazyStatic for KEY"],["impl LazyStatic for MCAPTCHA_TRANS_ICON"],["impl LazyStatic for MOBILE_CSS"],["impl LazyStatic for HELP_CIRCLE"],["impl LazyStatic for INTERNAL_SERVER_ERROR_BODY"],["impl LazyStatic for VERIFICATIN_WIDGET_CSS"],["impl LazyStatic for JS"],["impl LazyStatic for HOME"],["impl LazyStatic for MESSAGE"],["impl LazyStatic for EASY_INDEX"],["impl LazyStatic for SETTINGS_ICON"],["impl LazyStatic for DOCS_ICON"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/rust_embed/trait.RustEmbed.js b/implementors/rust_embed/trait.RustEmbed.js index 68e07bd8..4a11df0a 100644 --- a/implementors/rust_embed/trait.RustEmbed.js +++ b/implementors/rust_embed/trait.RustEmbed.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mcaptcha":[["impl RustEmbed for Asset"],["impl RustEmbed for Asset"],["impl RustEmbed for Favicons"]] +"mcaptcha":[["impl RustEmbed for Favicons"],["impl RustEmbed for Asset"],["impl RustEmbed for Asset"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sailfish/private/trait.Sealed.js b/implementors/sailfish/private/trait.Sealed.js index 787c074b..54d932dd 100644 --- a/implementors/sailfish/private/trait.Sealed.js +++ b/implementors/sailfish/private/trait.Sealed.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mcaptcha":[["impl<'a> Sealed for IndexPage<'a>"],["impl Sealed for IndexPage"],["impl Sealed for IndexPage"],["impl<'a, K, V> Sealed for SudoPage<'a, K, V>where
    K: Display + Render,
    V: Display + Render,
"],["impl<'a> Sealed for ErrorPage<'a>"],["impl Sealed for IndexPage"],["impl<'a> Sealed for IndexPage<'a>"],["impl<'a> Sealed for AdvanceIndexPage<'a>"],["impl<'a> Sealed for EasyIndexPage<'a>"],["impl Sealed for AdvanceEditPage"],["impl<'a> Sealed for EasyEditPage<'a>"],["impl Sealed for IndexPage"],["impl Sealed for IndexPage"],["impl Sealed for IndexPage"],["impl Sealed for IndexPage"],["impl Sealed for IndexPage"]] +"mcaptcha":[["impl Sealed for AdvanceEditPage"],["impl<'a> Sealed for EasyEditPage<'a>"],["impl Sealed for IndexPage"],["impl<'a> Sealed for AdvanceIndexPage<'a>"],["impl Sealed for IndexPage"],["impl Sealed for IndexPage"],["impl Sealed for IndexPage"],["impl<'a> Sealed for EasyIndexPage<'a>"],["impl<'a> Sealed for IndexPage<'a>"],["impl Sealed for IndexPage"],["impl<'a> Sealed for IndexPage<'a>"],["impl Sealed for IndexPage"],["impl<'a> Sealed for ErrorPage<'a>"],["impl Sealed for IndexPage"],["impl<'a, K, V> Sealed for SudoPage<'a, K, V>where\n K: Display + Render,\n V: Display + Render,"],["impl Sealed for IndexPage"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sailfish/trait.TemplateOnce.js b/implementors/sailfish/trait.TemplateOnce.js index e94b7dd1..20418abc 100644 --- a/implementors/sailfish/trait.TemplateOnce.js +++ b/implementors/sailfish/trait.TemplateOnce.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mcaptcha":[["impl<'a> TemplateOnce for IndexPage<'a>"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for IndexPage"],["impl<'a, K, V> TemplateOnce for SudoPage<'a, K, V>where
    K: Display + Render,
    V: Display + Render,
"],["impl<'a> TemplateOnce for ErrorPage<'a>"],["impl TemplateOnce for IndexPage"],["impl<'a> TemplateOnce for IndexPage<'a>"],["impl<'a> TemplateOnce for AdvanceIndexPage<'a>"],["impl<'a> TemplateOnce for EasyIndexPage<'a>"],["impl TemplateOnce for AdvanceEditPage"],["impl<'a> TemplateOnce for EasyEditPage<'a>"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for IndexPage"]] +"mcaptcha":[["impl<'a> TemplateOnce for IndexPage<'a>"],["impl<'a> TemplateOnce for AdvanceIndexPage<'a>"],["impl<'a> TemplateOnce for IndexPage<'a>"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for AdvanceEditPage"],["impl TemplateOnce for IndexPage"],["impl<'a> TemplateOnce for EasyIndexPage<'a>"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for IndexPage"],["impl TemplateOnce for IndexPage"],["impl<'a> TemplateOnce for ErrorPage<'a>"],["impl<'a> TemplateOnce for EasyEditPage<'a>"],["impl TemplateOnce for IndexPage"],["impl<'a, K, V> TemplateOnce for SudoPage<'a, K, V>where\n K: Display + Render,\n V: Display + Render,"],["impl TemplateOnce for IndexPage"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/serde/de/trait.Deserialize.js b/implementors/serde/de/trait.Deserialize.js index 1e940ebe..d625eb41 100644 --- a/implementors/serde/de/trait.Deserialize.js +++ b/implementors/serde/de/trait.Deserialize.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"db_core":[["impl<'de: 'a, 'a> Deserialize<'de> for Register<'a>"],["impl<'de: 'a, 'a> Deserialize<'de> for UpdateEmail<'a>"],["impl<'de: 'a, 'a> Deserialize<'de> for Login<'a>"],["impl<'de> Deserialize<'de> for NameHash"],["impl<'de> Deserialize<'de> for StatsUnixTimestamp"],["impl<'de> Deserialize<'de> for Notification"],["impl<'de: 'a, 'a> Deserialize<'de> for AddNotification<'a>"],["impl<'de> Deserialize<'de> for TrafficPattern"],["impl<'de: 'a, 'a> Deserialize<'de> for CreateCaptcha<'a>"],["impl<'de> Deserialize<'de> for Captcha"],["impl<'de> Deserialize<'de> for Secret"]], -"mcaptcha":[["impl<'de> Deserialize<'de> for Email"],["impl<'de> Deserialize<'de> for ChangePasswordReqest"],["impl<'de> Deserialize<'de> for Username"],["impl<'de> Deserialize<'de> for AccountCheckPayload"],["impl<'de> Deserialize<'de> for AccountCheckResp"],["impl<'de> Deserialize<'de> for Register"],["impl<'de> Deserialize<'de> for Login"],["impl<'de> Deserialize<'de> for Password"],["impl<'de> Deserialize<'de> for CreateCaptcha"],["impl<'de> Deserialize<'de> for MCaptchaDetails"],["impl<'de> Deserialize<'de> for DeleteCaptcha"],["impl<'de> Deserialize<'de> for TrafficPatternRequest"],["impl<'de> Deserialize<'de> for UpdateTrafficPattern"],["impl<'de> Deserialize<'de> for Levels"],["impl<'de> Deserialize<'de> for I32Levels"],["impl<'de> Deserialize<'de> for StatsPayload"],["impl<'de> Deserialize<'de> for UpdateCaptcha"],["impl Deserialize<'static> for BuildDetails"],["impl<'de> Deserialize<'de> for Health"],["impl<'de> Deserialize<'de> for AddNotificationRequest"],["impl<'de> Deserialize<'de> for NotificationResp"],["impl<'de> Deserialize<'de> for MarkReadReq"],["impl<'de> Deserialize<'de> for GetConfigPayload"],["impl<'de> Deserialize<'de> for ValidationToken"],["impl<'de> Deserialize<'de> for CaptchaValidateResp"],["impl<'de> Deserialize<'de> for VerifyCaptchaResultPayload"],["impl<'de> Deserialize<'de> for RedirectQuery"],["impl<'de> Deserialize<'de> for ErrorToResponse"],["impl<'de> Deserialize<'de> for Server"],["impl<'de> Deserialize<'de> for Captcha"],["impl<'de> Deserialize<'de> for DefaultDifficultyStrategy"],["impl<'de> Deserialize<'de> for Smtp"],["impl<'de> Deserialize<'de> for DBType"],["impl<'de> Deserialize<'de> for Database"],["impl<'de> Deserialize<'de> for Redis"],["impl<'de> Deserialize<'de> for Settings"],["impl<'de> Deserialize<'de> for CaptchaStats"]] +"db_core":[["impl<'de: 'a, 'a> Deserialize<'de> for Login<'a>"],["impl<'de: 'a, 'a> Deserialize<'de> for AddNotification<'a>"],["impl<'de> Deserialize<'de> for Notification"],["impl<'de: 'a, 'a> Deserialize<'de> for CreateCaptcha<'a>"],["impl<'de: 'a, 'a> Deserialize<'de> for Register<'a>"],["impl<'de> Deserialize<'de> for StatsUnixTimestamp"],["impl<'de> Deserialize<'de> for TrafficPattern"],["impl<'de> Deserialize<'de> for Secret"],["impl<'de> Deserialize<'de> for Captcha"],["impl<'de: 'a, 'a> Deserialize<'de> for UpdateEmail<'a>"],["impl<'de> Deserialize<'de> for NameHash"]], +"mcaptcha":[["impl<'de> Deserialize<'de> for AccountCheckPayload"],["impl<'de> Deserialize<'de> for UpdateCaptcha"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for StatsPayload"],["impl<'de> Deserialize<'de> for Server"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for TrafficPatternRequest"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for GetConfigPayload"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for CaptchaValidateResp"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for ValidationToken"],["impl<'de> Deserialize<'de> for ChangePasswordReqest"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for MCaptchaDetails"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for DBType"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for Login"],["impl<'de> Deserialize<'de> for Smtp"],["impl<'de> Deserialize<'de> for AddNotificationRequest"],["impl<'de> Deserialize<'de> for Levels"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for I32Levels"],["impl<'de> Deserialize<'de> for AccountCheckResp"],["impl<'de> Deserialize<'de> for Email"],["impl<'de> Deserialize<'de> for CaptchaStats"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for ErrorToResponse"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for Register"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for NotificationResp"],["impl<'de> Deserialize<'de> for CreateCaptcha"],["impl<'de> Deserialize<'de> for DefaultDifficultyStrategy"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for Captcha"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for Database"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for Redis"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for DeleteCaptcha"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for VerifyCaptchaResultPayload"],["impl<'de> Deserialize<'de> for MarkReadReq"],["impl Deserialize<'static> for BuildDetails"],["impl<'de> Deserialize<'de> for RedirectQuery"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for UpdateTrafficPattern"],["impl<'de> Deserialize<'de> for Settings"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for __Field"],["impl<'de> Deserialize<'de> for Username"],["impl<'de> Deserialize<'de> for Health"],["impl<'de> Deserialize<'de> for Password"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/serde/de/trait.Visitor.js b/implementors/serde/de/trait.Visitor.js new file mode 100644 index 00000000..d0da1a26 --- /dev/null +++ b/implementors/serde/de/trait.Visitor.js @@ -0,0 +1,3 @@ +(function() {var implementors = { +"mcaptcha":[["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl Visitor<'static> for __Visitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __FieldVisitor"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"],["impl<'de> Visitor<'de> for __Visitor<'de>"]] +};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/serde/ser/trait.Serialize.js b/implementors/serde/ser/trait.Serialize.js index d8c70ec5..6d003953 100644 --- a/implementors/serde/ser/trait.Serialize.js +++ b/implementors/serde/ser/trait.Serialize.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"db_core":[["impl<'a> Serialize for Register<'a>"],["impl<'a> Serialize for UpdateEmail<'a>"],["impl<'a> Serialize for Login<'a>"],["impl Serialize for NameHash"],["impl Serialize for StatsUnixTimestamp"],["impl Serialize for Notification"],["impl<'a> Serialize for AddNotification<'a>"],["impl Serialize for TrafficPattern"],["impl<'a> Serialize for CreateCaptcha<'a>"],["impl Serialize for Captcha"],["impl Serialize for Secret"]], -"mcaptcha":[["impl Serialize for Email"],["impl Serialize for ChangePasswordReqest"],["impl Serialize for Username"],["impl Serialize for AccountCheckPayload"],["impl Serialize for AccountCheckResp"],["impl Serialize for Register"],["impl Serialize for Login"],["impl Serialize for Password"],["impl Serialize for CreateCaptcha"],["impl Serialize for MCaptchaDetails"],["impl Serialize for DeleteCaptcha"],["impl Serialize for TrafficPatternRequest"],["impl Serialize for UpdateTrafficPattern"],["impl Serialize for Levels"],["impl Serialize for I32Levels"],["impl Serialize for StatsPayload"],["impl Serialize for UpdateCaptcha"],["impl Serialize for BuildDetails"],["impl Serialize for Health"],["impl Serialize for AddNotificationRequest"],["impl Serialize for NotificationResp"],["impl Serialize for MarkReadReq"],["impl Serialize for GetConfigPayload"],["impl Serialize for ValidationToken"],["impl Serialize for CaptchaValidateResp"],["impl Serialize for VerifyCaptchaResultPayload"],["impl Serialize for ErrorToResponse"],["impl Serialize for DBType"],["impl Serialize for CaptchaStats"]] +"db_core":[["impl<'a> Serialize for Login<'a>"],["impl Serialize for TrafficPattern"],["impl Serialize for Notification"],["impl Serialize for StatsUnixTimestamp"],["impl<'a> Serialize for Register<'a>"],["impl<'a> Serialize for AddNotification<'a>"],["impl<'a> Serialize for UpdateEmail<'a>"],["impl Serialize for NameHash"],["impl Serialize for Secret"],["impl<'a> Serialize for CreateCaptcha<'a>"],["impl Serialize for Captcha"]], +"mcaptcha":[["impl Serialize for BuildDetails"],["impl Serialize for Username"],["impl Serialize for CreateCaptcha"],["impl Serialize for GetConfigPayload"],["impl Serialize for MCaptchaDetails"],["impl Serialize for VerifyCaptchaResultPayload"],["impl Serialize for Password"],["impl Serialize for StatsPayload"],["impl Serialize for Register"],["impl Serialize for ErrorToResponse"],["impl Serialize for DBType"],["impl Serialize for AccountCheckPayload"],["impl Serialize for UpdateCaptcha"],["impl Serialize for NotificationResp"],["impl Serialize for UpdateTrafficPattern"],["impl Serialize for AccountCheckResp"],["impl Serialize for Login"],["impl Serialize for Levels"],["impl Serialize for I32Levels"],["impl Serialize for ValidationToken"],["impl Serialize for CaptchaValidateResp"],["impl Serialize for Health"],["impl Serialize for DeleteCaptcha"],["impl Serialize for ChangePasswordReqest"],["impl Serialize for TrafficPatternRequest"],["impl Serialize for MarkReadReq"],["impl Serialize for CaptchaStats"],["impl Serialize for AddNotificationRequest"],["impl Serialize for Email"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/mcaptcha/all.html b/mcaptcha/all.html index fbc4a032..3ea66a9e 100644 --- a/mcaptcha/all.html +++ b/mcaptcha/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Type Definitions

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Type Definitions

Statics

Constants

\ No newline at end of file diff --git a/mcaptcha/api/index.html b/mcaptcha/api/index.html index 3b483fcc..8725fad5 100644 --- a/mcaptcha/api/index.html +++ b/mcaptcha/api/index.html @@ -1 +1 @@ -mcaptcha::api - Rust

Module mcaptcha::api

source ·

Modules

\ No newline at end of file +mcaptcha::api - Rust

Module mcaptcha::api

source ·

Modules

\ No newline at end of file diff --git a/mcaptcha/api/sidebar-items.js b/mcaptcha/api/sidebar-items.js index efde08df..92c7f6a4 100644 --- a/mcaptcha/api/sidebar-items.js +++ b/mcaptcha/api/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"mod":[["v1",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"mod":["v1"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/constant.FIELDS.html b/mcaptcha/api/v1/account/constant.FIELDS.html new file mode 100644 index 00000000..52312b65 --- /dev/null +++ b/mcaptcha/api/v1/account/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::account - Rust

Constant mcaptcha::api::v1::account::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/fn.delete_account.html b/mcaptcha/api/v1/account/delete/fn.delete_account.html new file mode 100644 index 00000000..cbee1596 --- /dev/null +++ b/mcaptcha/api/v1/account/delete/fn.delete_account.html @@ -0,0 +1,5 @@ +delete_account in mcaptcha::api::v1::account::delete - Rust
pub async fn delete_account(
+    id: Identity,
+    payload: Json<Password>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/fn.services.html b/mcaptcha/api/v1/account/delete/fn.services.html index 7953e031..7967b761 100644 --- a/mcaptcha/api/v1/account/delete/fn.services.html +++ b/mcaptcha/api/v1/account/delete/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::account::delete - Rust

Function mcaptcha::api::v1::account::delete::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::account::delete - Rust

Function mcaptcha::api::v1::account::delete::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/index.html b/mcaptcha/api/v1/account/delete/index.html index c64d7d65..32aa613a 100644 --- a/mcaptcha/api/v1/account/delete/index.html +++ b/mcaptcha/api/v1/account/delete/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account::delete - Rust

Module mcaptcha::api::v1::account::delete

source ·

Modules

Structs

Functions

\ No newline at end of file +mcaptcha::api::v1::account::delete - Rust

Module mcaptcha::api::v1::account::delete

source ·

Modules

Structs

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/runners/fn.delete_user.html b/mcaptcha/api/v1/account/delete/runners/fn.delete_user.html index 8e0f9794..3a63d4ac 100644 --- a/mcaptcha/api/v1/account/delete/runners/fn.delete_user.html +++ b/mcaptcha/api/v1/account/delete/runners/fn.delete_user.html @@ -1 +1 @@ -delete_user in mcaptcha::api::v1::account::delete::runners - Rust
pub async fn delete_user(name: &str, data: &AppData) -> Result<(), ServiceError>
\ No newline at end of file +delete_user in mcaptcha::api::v1::account::delete::runners - Rust
pub async fn delete_user(name: &str, data: &AppData) -> Result<(), ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/runners/index.html b/mcaptcha/api/v1/account/delete/runners/index.html index cb9e3024..495aa47c 100644 --- a/mcaptcha/api/v1/account/delete/runners/index.html +++ b/mcaptcha/api/v1/account/delete/runners/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account::delete::runners - Rust

Module mcaptcha::api::v1::account::delete::runners

source ·

Functions

\ No newline at end of file +mcaptcha::api::v1::account::delete::runners - Rust

Module mcaptcha::api::v1::account::delete::runners

source ·

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/runners/sidebar-items.js b/mcaptcha/api/v1/account/delete/runners/sidebar-items.js index 79a4ea67..d6ccb9fe 100644 --- a/mcaptcha/api/v1/account/delete/runners/sidebar-items.js +++ b/mcaptcha/api/v1/account/delete/runners/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["delete_user",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["delete_user"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/sidebar-items.js b/mcaptcha/api/v1/account/delete/sidebar-items.js index 42111769..c61813c1 100644 --- a/mcaptcha/api/v1/account/delete/sidebar-items.js +++ b/mcaptcha/api/v1/account/delete/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["runners",""]],"struct":[["delete_account",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["delete_account","services"],"mod":["runners"],"struct":["delete_account"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/delete/struct.delete_account.html b/mcaptcha/api/v1/account/delete/struct.delete_account.html index dc2661fc..cfa3e50a 100644 --- a/mcaptcha/api/v1/account/delete/struct.delete_account.html +++ b/mcaptcha/api/v1/account/delete/struct.delete_account.html @@ -1,9 +1,17 @@ -delete_account in mcaptcha::api::v1::account::delete - Rust
pub struct delete_account;

Trait Implementations§

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).

+delete_account in mcaptcha::api::v1::account::delete - Rust
pub struct delete_account;

Trait Implementations§

source§

impl HttpServiceFactory for delete_account

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/constant.FIELDS.html b/mcaptcha/api/v1/account/email/constant.FIELDS.html new file mode 100644 index 00000000..1fb30317 --- /dev/null +++ b/mcaptcha/api/v1/account/email/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::account::email - Rust

Constant mcaptcha::api::v1::account::email::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/enum.__Field.html b/mcaptcha/api/v1/account/email/enum.__Field.html new file mode 100644 index 00000000..5b6b2099 --- /dev/null +++ b/mcaptcha/api/v1/account/email/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::account::email - Rust
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/fn.email_exists.html b/mcaptcha/api/v1/account/email/fn.email_exists.html new file mode 100644 index 00000000..9bb71f05 --- /dev/null +++ b/mcaptcha/api/v1/account/email/fn.email_exists.html @@ -0,0 +1,4 @@ +email_exists in mcaptcha::api::v1::account::email - Rust
pub async fn email_exists(
+    payload: Json<AccountCheckPayload>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/fn.services.html b/mcaptcha/api/v1/account/email/fn.services.html index 426cc556..d52d01c6 100644 --- a/mcaptcha/api/v1/account/email/fn.services.html +++ b/mcaptcha/api/v1/account/email/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::account::email - Rust

Function mcaptcha::api::v1::account::email::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::account::email - Rust

Function mcaptcha::api::v1::account::email::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/fn.set_email.html b/mcaptcha/api/v1/account/email/fn.set_email.html new file mode 100644 index 00000000..ada5427c --- /dev/null +++ b/mcaptcha/api/v1/account/email/fn.set_email.html @@ -0,0 +1,6 @@ +set_email in mcaptcha::api::v1::account::email - Rust

Function mcaptcha::api::v1::account::email::set_email

source ·
async fn set_email(
+    id: Identity,
+    payload: Json<Email>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
Expand description

update email

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/index.html b/mcaptcha/api/v1/account/email/index.html index 976a4db3..a4b5387b 100644 --- a/mcaptcha/api/v1/account/email/index.html +++ b/mcaptcha/api/v1/account/email/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account::email - Rust

Module mcaptcha::api::v1::account::email

source ·

Structs

Functions

\ No newline at end of file +mcaptcha::api::v1::account::email - Rust

Module mcaptcha::api::v1::account::email

source ·

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/sidebar-items.js b/mcaptcha/api/v1/account/email/sidebar-items.js index 80ef2581..c51af0af 100644 --- a/mcaptcha/api/v1/account/email/sidebar-items.js +++ b/mcaptcha/api/v1/account/email/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"struct":[["Email",""],["email_exists",""],["set_email","update email"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["email_exists","services","set_email"],"struct":["Email","__FieldVisitor","__Visitor","email_exists","set_email"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/struct.Email.html b/mcaptcha/api/v1/account/email/struct.Email.html index 691cdb70..91dad493 100644 --- a/mcaptcha/api/v1/account/email/struct.Email.html +++ b/mcaptcha/api/v1/account/email/struct.Email.html @@ -1,11 +1,23 @@ -Email in mcaptcha::api::v1::account::email - Rust

Struct mcaptcha::api::v1::account::email::Email

source ·
pub struct Email {
-    pub email: String,
-}

Fields§

§email: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+Email in mcaptcha::api::v1::account::email - Rust

Struct mcaptcha::api::v1::account::email::Email

source ·
pub struct Email {
+    pub email: String,
+}

Fields§

§email: String

Trait Implementations§

source§

impl Clone for Email

source§

fn clone(&self) -> Email

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 Email

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Email

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 Serialize for Email

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 Email

§

impl Send for Email

§

impl Sync for Email

§

impl Unpin for Email

§

impl UnwindSafe for Email

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/struct.__FieldVisitor.html b/mcaptcha/api/v1/account/email/struct.__FieldVisitor.html new file mode 100644 index 00000000..798c0344 --- /dev/null +++ b/mcaptcha/api/v1/account/email/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::account::email - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/struct.__Visitor.html b/mcaptcha/api/v1/account/email/struct.__Visitor.html new file mode 100644 index 00000000..85cc2bfb --- /dev/null +++ b/mcaptcha/api/v1/account/email/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::account::email - Rust
struct __Visitor<'de> {
+    marker: PhantomData<Email>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<Email>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = Email

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/struct.email_exists.html b/mcaptcha/api/v1/account/email/struct.email_exists.html index 533b998c..329f716e 100644 --- a/mcaptcha/api/v1/account/email/struct.email_exists.html +++ b/mcaptcha/api/v1/account/email/struct.email_exists.html @@ -1,9 +1,17 @@ -email_exists in mcaptcha::api::v1::account::email - Rust
pub struct email_exists;

Trait Implementations§

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).

+email_exists in mcaptcha::api::v1::account::email - Rust
pub struct email_exists;

Trait Implementations§

source§

impl HttpServiceFactory for email_exists

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/email/struct.set_email.html b/mcaptcha/api/v1/account/email/struct.set_email.html index 1b237c41..29184131 100644 --- a/mcaptcha/api/v1/account/email/struct.set_email.html +++ b/mcaptcha/api/v1/account/email/struct.set_email.html @@ -1,10 +1,18 @@ -set_email in mcaptcha::api::v1::account::email - Rust
pub struct set_email;
Expand description

update email

-

Trait Implementations§

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).

+set_email in mcaptcha::api::v1::account::email - Rust
pub struct set_email;
Expand description

update email

+

Trait Implementations§

source§

impl HttpServiceFactory for set_email

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/enum.__Field.html b/mcaptcha/api/v1/account/enum.__Field.html new file mode 100644 index 00000000..e27b46d8 --- /dev/null +++ b/mcaptcha/api/v1/account/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::account - Rust

Enum mcaptcha::api::v1::account::__Field

source ·
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/fn.services.html b/mcaptcha/api/v1/account/fn.services.html index 9c8de9ec..585601df 100644 --- a/mcaptcha/api/v1/account/fn.services.html +++ b/mcaptcha/api/v1/account/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::account - Rust

Function mcaptcha::api::v1::account::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::account - Rust

Function mcaptcha::api::v1::account::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/index.html b/mcaptcha/api/v1/account/index.html index a4363e58..1f849159 100644 --- a/mcaptcha/api/v1/account/index.html +++ b/mcaptcha/api/v1/account/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account - Rust

Module mcaptcha::api::v1::account

source ·

Re-exports

pub use super::auth;
pub use super::mcaptcha;

Modules

Structs

Functions

\ No newline at end of file +mcaptcha::api::v1::account - Rust

Module mcaptcha::api::v1::account

source ·

Re-exports

Modules

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/constant.FIELDS.html b/mcaptcha/api/v1/account/password/constant.FIELDS.html new file mode 100644 index 00000000..f69f406b --- /dev/null +++ b/mcaptcha/api/v1/account/password/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::account::password - Rust

Constant mcaptcha::api::v1::account::password::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/enum.__Field.html b/mcaptcha/api/v1/account/password/enum.__Field.html new file mode 100644 index 00000000..813a1576 --- /dev/null +++ b/mcaptcha/api/v1/account/password/enum.__Field.html @@ -0,0 +1,24 @@ +__Field in mcaptcha::api::v1::account::password - Rust
enum __Field {
+    __field0,
+    __field1,
+    __field2,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__field2

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/fn.services.html b/mcaptcha/api/v1/account/password/fn.services.html index c2b3080c..c3041349 100644 --- a/mcaptcha/api/v1/account/password/fn.services.html +++ b/mcaptcha/api/v1/account/password/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::account::password - Rust

Function mcaptcha::api::v1::account::password::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::account::password - Rust

Function mcaptcha::api::v1::account::password::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/fn.update_password_runner.html b/mcaptcha/api/v1/account/password/fn.update_password_runner.html index 2e39251d..cd0328f6 100644 --- a/mcaptcha/api/v1/account/password/fn.update_password_runner.html +++ b/mcaptcha/api/v1/account/password/fn.update_password_runner.html @@ -1 +1,5 @@ -update_password_runner in mcaptcha::api::v1::account::password - Rust
async fn update_password_runner(
    user: &str,
    update: UpdatePassword,
    data: &Data
) -> Result<(), ServiceError>
\ No newline at end of file +update_password_runner in mcaptcha::api::v1::account::password - Rust
async fn update_password_runner(
+    user: &str,
+    update: UpdatePassword,
+    data: &Data
+) -> Result<(), ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/fn.update_user_password.html b/mcaptcha/api/v1/account/password/fn.update_user_password.html new file mode 100644 index 00000000..2714a63a --- /dev/null +++ b/mcaptcha/api/v1/account/password/fn.update_user_password.html @@ -0,0 +1,5 @@ +update_user_password in mcaptcha::api::v1::account::password - Rust
async fn update_user_password(
+    id: Identity,
+    data: AppData,
+    payload: Json<ChangePasswordReqest>
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/index.html b/mcaptcha/api/v1/account/password/index.html index 91719f01..b9b6bd27 100644 --- a/mcaptcha/api/v1/account/password/index.html +++ b/mcaptcha/api/v1/account/password/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account::password - Rust

Module mcaptcha::api::v1::account::password

source ·

Structs

Functions

\ No newline at end of file +mcaptcha::api::v1::account::password - Rust

Module mcaptcha::api::v1::account::password

source ·

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/sidebar-items.js b/mcaptcha/api/v1/account/password/sidebar-items.js index b7b65359..8f1a6d2d 100644 --- a/mcaptcha/api/v1/account/password/sidebar-items.js +++ b/mcaptcha/api/v1/account/password/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""],["update_password_runner",""]],"struct":[["ChangePasswordReqest",""],["UpdatePassword",""],["update_user_password",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["services","update_password_runner","update_user_password"],"struct":["ChangePasswordReqest","UpdatePassword","__FieldVisitor","__Visitor","update_user_password"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/struct.ChangePasswordReqest.html b/mcaptcha/api/v1/account/password/struct.ChangePasswordReqest.html index 184b6aaf..8d2eb933 100644 --- a/mcaptcha/api/v1/account/password/struct.ChangePasswordReqest.html +++ b/mcaptcha/api/v1/account/password/struct.ChangePasswordReqest.html @@ -1,13 +1,25 @@ -ChangePasswordReqest in mcaptcha::api::v1::account::password - Rust
pub struct ChangePasswordReqest {
-    pub password: String,
-    pub new_password: String,
-    pub confirm_new_password: String,
-}

Fields§

§password: String§new_password: String§confirm_new_password: String

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
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).

+ChangePasswordReqest in mcaptcha::api::v1::account::password - Rust
pub struct ChangePasswordReqest {
+    pub password: String,
+    pub new_password: String,
+    pub confirm_new_password: String,
+}

Fields§

§password: String§new_password: String§confirm_new_password: String

Trait Implementations§

source§

impl Clone for ChangePasswordReqest

source§

fn clone(&self) -> ChangePasswordReqest

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 ChangePasswordReqest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ChangePasswordReqest

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<ChangePasswordReqest> for UpdatePassword

source§

fn from(s: ChangePasswordReqest) -> Self

Converts to this type from the input type.
source§

impl Serialize for ChangePasswordReqest

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/struct.UpdatePassword.html b/mcaptcha/api/v1/account/password/struct.UpdatePassword.html index 4f56a76b..70dc1640 100644 --- a/mcaptcha/api/v1/account/password/struct.UpdatePassword.html +++ b/mcaptcha/api/v1/account/password/struct.UpdatePassword.html @@ -1,12 +1,20 @@ -UpdatePassword in mcaptcha::api::v1::account::password - Rust
pub struct UpdatePassword {
-    pub new_password: String,
-    pub confirm_new_password: String,
-}

Fields§

§new_password: String§confirm_new_password: String

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).

+UpdatePassword in mcaptcha::api::v1::account::password - Rust
pub struct UpdatePassword {
+    pub new_password: String,
+    pub confirm_new_password: String,
+}

Fields§

§new_password: String§confirm_new_password: String

Trait Implementations§

source§

impl From<ChangePasswordReqest> for UpdatePassword

source§

fn from(s: ChangePasswordReqest) -> 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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/struct.__FieldVisitor.html b/mcaptcha/api/v1/account/password/struct.__FieldVisitor.html new file mode 100644 index 00000000..04c31a2c --- /dev/null +++ b/mcaptcha/api/v1/account/password/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::account::password - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/struct.__Visitor.html b/mcaptcha/api/v1/account/password/struct.__Visitor.html new file mode 100644 index 00000000..c8b7c768 --- /dev/null +++ b/mcaptcha/api/v1/account/password/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::account::password - Rust
struct __Visitor<'de> {
+    marker: PhantomData<ChangePasswordReqest>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<ChangePasswordReqest>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = ChangePasswordReqest

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/password/struct.update_user_password.html b/mcaptcha/api/v1/account/password/struct.update_user_password.html index 8e2f1025..95dcdbab 100644 --- a/mcaptcha/api/v1/account/password/struct.update_user_password.html +++ b/mcaptcha/api/v1/account/password/struct.update_user_password.html @@ -1,9 +1,17 @@ -update_user_password in mcaptcha::api::v1::account::password - Rust
pub struct update_user_password;

Trait Implementations§

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).

+update_user_password in mcaptcha::api::v1::account::password - Rust
pub struct update_user_password;

Trait Implementations§

source§

impl HttpServiceFactory for update_user_password

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/routes/index.html b/mcaptcha/api/v1/account/routes/index.html index 20e5b096..77ee602f 100644 --- a/mcaptcha/api/v1/account/routes/index.html +++ b/mcaptcha/api/v1/account/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account::routes - Rust

Module mcaptcha::api::v1::account::routes

source ·

Structs

\ No newline at end of file +mcaptcha::api::v1::account::routes - Rust

Module mcaptcha::api::v1::account::routes

source ·

Structs

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/routes/sidebar-items.js b/mcaptcha/api/v1/account/routes/sidebar-items.js index 556b42b8..a2f26425 100644 --- a/mcaptcha/api/v1/account/routes/sidebar-items.js +++ b/mcaptcha/api/v1/account/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Account",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Account"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/routes/struct.Account.html b/mcaptcha/api/v1/account/routes/struct.Account.html index 3aab0007..2dd8e772 100644 --- a/mcaptcha/api/v1/account/routes/struct.Account.html +++ b/mcaptcha/api/v1/account/routes/struct.Account.html @@ -1,18 +1,26 @@ -Account in mcaptcha::api::v1::account::routes - Rust

Struct mcaptcha::api::v1::account::routes::Account

source ·
pub struct Account {
-    pub delete: &'static str,
-    pub email_exists: &'static str,
-    pub get_secret: &'static str,
-    pub update_email: &'static str,
-    pub update_password: &'static str,
-    pub update_secret: &'static str,
-    pub username_exists: &'static str,
-    pub update_username: &'static str,
-}

Fields§

§delete: &'static str§email_exists: &'static str§get_secret: &'static str§update_email: &'static str§update_password: &'static str§update_secret: &'static str§username_exists: &'static str§update_username: &'static str

Implementations§

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).

+Account in mcaptcha::api::v1::account::routes - Rust

Struct mcaptcha::api::v1::account::routes::Account

source ·
pub struct Account {
+    pub delete: &'static str,
+    pub email_exists: &'static str,
+    pub get_secret: &'static str,
+    pub update_email: &'static str,
+    pub update_password: &'static str,
+    pub update_secret: &'static str,
+    pub username_exists: &'static str,
+    pub update_username: &'static str,
+}

Fields§

§delete: &'static str§email_exists: &'static str§get_secret: &'static str§update_email: &'static str§update_password: &'static str§update_secret: &'static str§username_exists: &'static str§update_username: &'static str

Implementations§

source§

impl Account

source

pub const fn new() -> Account

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/secret/fn.get_secret.html b/mcaptcha/api/v1/account/secret/fn.get_secret.html new file mode 100644 index 00000000..e7c008c3 --- /dev/null +++ b/mcaptcha/api/v1/account/secret/fn.get_secret.html @@ -0,0 +1,4 @@ +get_secret in mcaptcha::api::v1::account::secret - Rust

Function mcaptcha::api::v1::account::secret::get_secret

source ·
async fn get_secret(
+    id: Identity,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/secret/fn.services.html b/mcaptcha/api/v1/account/secret/fn.services.html index 0f9323f9..d2232005 100644 --- a/mcaptcha/api/v1/account/secret/fn.services.html +++ b/mcaptcha/api/v1/account/secret/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::account::secret - Rust

Function mcaptcha::api::v1::account::secret::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::account::secret - Rust

Function mcaptcha::api::v1::account::secret::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/secret/fn.update_user_secret.html b/mcaptcha/api/v1/account/secret/fn.update_user_secret.html new file mode 100644 index 00000000..0e5ea706 --- /dev/null +++ b/mcaptcha/api/v1/account/secret/fn.update_user_secret.html @@ -0,0 +1,4 @@ +update_user_secret in mcaptcha::api::v1::account::secret - Rust
async fn update_user_secret(
+    id: Identity,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/secret/index.html b/mcaptcha/api/v1/account/secret/index.html index c206514e..87cd2d09 100644 --- a/mcaptcha/api/v1/account/secret/index.html +++ b/mcaptcha/api/v1/account/secret/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account::secret - Rust

Module mcaptcha::api::v1::account::secret

source ·

Structs

Functions

\ No newline at end of file +mcaptcha::api::v1::account::secret - Rust

Module mcaptcha::api::v1::account::secret

source ·

Structs

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/secret/sidebar-items.js b/mcaptcha/api/v1/account/secret/sidebar-items.js index 25a389b1..5ae79abd 100644 --- a/mcaptcha/api/v1/account/secret/sidebar-items.js +++ b/mcaptcha/api/v1/account/secret/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"struct":[["get_secret",""],["update_user_secret",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["get_secret","services","update_user_secret"],"struct":["get_secret","update_user_secret"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/secret/struct.get_secret.html b/mcaptcha/api/v1/account/secret/struct.get_secret.html index 1e757e8c..57017de7 100644 --- a/mcaptcha/api/v1/account/secret/struct.get_secret.html +++ b/mcaptcha/api/v1/account/secret/struct.get_secret.html @@ -1,9 +1,17 @@ -get_secret in mcaptcha::api::v1::account::secret - Rust
pub struct get_secret;

Trait Implementations§

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).

+get_secret in mcaptcha::api::v1::account::secret - Rust
pub struct get_secret;

Trait Implementations§

source§

impl HttpServiceFactory for get_secret

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/secret/struct.update_user_secret.html b/mcaptcha/api/v1/account/secret/struct.update_user_secret.html index 2e1407ef..9b70613c 100644 --- a/mcaptcha/api/v1/account/secret/struct.update_user_secret.html +++ b/mcaptcha/api/v1/account/secret/struct.update_user_secret.html @@ -1,9 +1,17 @@ -update_user_secret in mcaptcha::api::v1::account::secret - Rust
pub struct update_user_secret;

Trait Implementations§

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).

+update_user_secret in mcaptcha::api::v1::account::secret - Rust
pub struct update_user_secret;

Trait Implementations§

source§

impl HttpServiceFactory for update_user_secret

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/sidebar-items.js b/mcaptcha/api/v1/account/sidebar-items.js index 62a1cbd6..d03d8429 100644 --- a/mcaptcha/api/v1/account/sidebar-items.js +++ b/mcaptcha/api/v1/account/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["delete",""],["email",""],["password",""],["routes",""],["secret",""],["username",""]],"struct":[["AccountCheckPayload",""],["AccountCheckResp",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["services"],"mod":["delete","email","password","routes","secret","username"],"struct":["AccountCheckPayload","AccountCheckResp","__FieldVisitor","__Visitor"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/struct.AccountCheckPayload.html b/mcaptcha/api/v1/account/struct.AccountCheckPayload.html index 2f5a2f44..ac20920e 100644 --- a/mcaptcha/api/v1/account/struct.AccountCheckPayload.html +++ b/mcaptcha/api/v1/account/struct.AccountCheckPayload.html @@ -1,11 +1,23 @@ -AccountCheckPayload in mcaptcha::api::v1::account - Rust
pub struct AccountCheckPayload {
-    pub val: String,
-}

Fields§

§val: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+AccountCheckPayload in mcaptcha::api::v1::account - Rust
pub struct AccountCheckPayload {
+    pub val: String,
+}

Fields§

§val: String

Trait Implementations§

source§

impl Clone for AccountCheckPayload

source§

fn clone(&self) -> AccountCheckPayload

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 AccountCheckPayload

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AccountCheckPayload

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 Serialize for AccountCheckPayload

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/struct.AccountCheckResp.html b/mcaptcha/api/v1/account/struct.AccountCheckResp.html index ad872425..0764734b 100644 --- a/mcaptcha/api/v1/account/struct.AccountCheckResp.html +++ b/mcaptcha/api/v1/account/struct.AccountCheckResp.html @@ -1,11 +1,23 @@ -AccountCheckResp in mcaptcha::api::v1::account - Rust
pub struct AccountCheckResp {
-    pub exists: bool,
-}

Fields§

§exists: bool

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+AccountCheckResp in mcaptcha::api::v1::account - Rust
pub struct AccountCheckResp {
+    pub exists: bool,
+}

Fields§

§exists: bool

Trait Implementations§

source§

impl Clone for AccountCheckResp

source§

fn clone(&self) -> AccountCheckResp

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 AccountCheckResp

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AccountCheckResp

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 Serialize for AccountCheckResp

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/struct.__FieldVisitor.html b/mcaptcha/api/v1/account/struct.__FieldVisitor.html new file mode 100644 index 00000000..9d44ead4 --- /dev/null +++ b/mcaptcha/api/v1/account/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::account - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/struct.__Visitor.html b/mcaptcha/api/v1/account/struct.__Visitor.html new file mode 100644 index 00000000..99504724 --- /dev/null +++ b/mcaptcha/api/v1/account/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::account - Rust

Struct mcaptcha::api::v1::account::__Visitor

source ·
struct __Visitor<'de> {
+    marker: PhantomData<AccountCheckPayload>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<AccountCheckPayload>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = AccountCheckPayload

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/constant.FIELDS.html b/mcaptcha/api/v1/account/username/constant.FIELDS.html new file mode 100644 index 00000000..f6936f11 --- /dev/null +++ b/mcaptcha/api/v1/account/username/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::account::username - Rust

Constant mcaptcha::api::v1::account::username::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/enum.__Field.html b/mcaptcha/api/v1/account/username/enum.__Field.html new file mode 100644 index 00000000..e2039b0b --- /dev/null +++ b/mcaptcha/api/v1/account/username/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::account::username - Rust
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/fn.services.html b/mcaptcha/api/v1/account/username/fn.services.html index 3ff985f6..cb809122 100644 --- a/mcaptcha/api/v1/account/username/fn.services.html +++ b/mcaptcha/api/v1/account/username/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::account::username - Rust

Function mcaptcha::api::v1::account::username::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::account::username - Rust

Function mcaptcha::api::v1::account::username::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/fn.set_username.html b/mcaptcha/api/v1/account/username/fn.set_username.html new file mode 100644 index 00000000..84bc2687 --- /dev/null +++ b/mcaptcha/api/v1/account/username/fn.set_username.html @@ -0,0 +1,6 @@ +set_username in mcaptcha::api::v1::account::username - Rust
async fn set_username(
+    id: Identity,
+    payload: Json<Username>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
Expand description

update username

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/fn.username_exists.html b/mcaptcha/api/v1/account/username/fn.username_exists.html new file mode 100644 index 00000000..51283398 --- /dev/null +++ b/mcaptcha/api/v1/account/username/fn.username_exists.html @@ -0,0 +1,4 @@ +username_exists in mcaptcha::api::v1::account::username - Rust
async fn username_exists(
+    payload: Json<AccountCheckPayload>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/index.html b/mcaptcha/api/v1/account/username/index.html index a44d21ba..e4ee61ef 100644 --- a/mcaptcha/api/v1/account/username/index.html +++ b/mcaptcha/api/v1/account/username/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account::username - Rust

Module mcaptcha::api::v1::account::username

source ·

Modules

Structs

Functions

\ No newline at end of file +mcaptcha::api::v1::account::username - Rust

Module mcaptcha::api::v1::account::username

source ·

Modules

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/runners/fn.username_exists.html b/mcaptcha/api/v1/account/username/runners/fn.username_exists.html index c0d93e7a..64e7d584 100644 --- a/mcaptcha/api/v1/account/username/runners/fn.username_exists.html +++ b/mcaptcha/api/v1/account/username/runners/fn.username_exists.html @@ -1 +1,4 @@ -username_exists in mcaptcha::api::v1::account::username::runners - Rust
pub async fn username_exists(
    payload: &AccountCheckPayload,
    data: &AppData
) -> Result<AccountCheckResp, ServiceError>
\ No newline at end of file +username_exists in mcaptcha::api::v1::account::username::runners - Rust
pub async fn username_exists(
+    payload: &AccountCheckPayload,
+    data: &AppData
+) -> Result<AccountCheckResp, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/runners/index.html b/mcaptcha/api/v1/account/username/runners/index.html index 6ebbc1b2..9c040574 100644 --- a/mcaptcha/api/v1/account/username/runners/index.html +++ b/mcaptcha/api/v1/account/username/runners/index.html @@ -1 +1 @@ -mcaptcha::api::v1::account::username::runners - Rust

Functions

\ No newline at end of file +mcaptcha::api::v1::account::username::runners - Rust

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/runners/sidebar-items.js b/mcaptcha/api/v1/account/username/runners/sidebar-items.js index d95b9974..2a3265b0 100644 --- a/mcaptcha/api/v1/account/username/runners/sidebar-items.js +++ b/mcaptcha/api/v1/account/username/runners/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["username_exists",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["username_exists"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/sidebar-items.js b/mcaptcha/api/v1/account/username/sidebar-items.js index f9fbfe55..8e8a0436 100644 --- a/mcaptcha/api/v1/account/username/sidebar-items.js +++ b/mcaptcha/api/v1/account/username/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["runners",""]],"struct":[["Username",""],["set_username","update username"],["username_exists",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["services","set_username","username_exists"],"mod":["runners"],"struct":["Username","__FieldVisitor","__Visitor","set_username","username_exists"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/struct.Username.html b/mcaptcha/api/v1/account/username/struct.Username.html index 6600f147..e32a67bd 100644 --- a/mcaptcha/api/v1/account/username/struct.Username.html +++ b/mcaptcha/api/v1/account/username/struct.Username.html @@ -1,11 +1,23 @@ -Username in mcaptcha::api::v1::account::username - Rust
pub struct Username {
-    pub username: String,
-}

Fields§

§username: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+Username in mcaptcha::api::v1::account::username - Rust
pub struct Username {
+    pub username: String,
+}

Fields§

§username: String

Trait Implementations§

source§

impl Clone for Username

source§

fn clone(&self) -> Username

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 Username

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Username

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 Serialize for Username

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/struct.__FieldVisitor.html b/mcaptcha/api/v1/account/username/struct.__FieldVisitor.html new file mode 100644 index 00000000..6ea5a4d7 --- /dev/null +++ b/mcaptcha/api/v1/account/username/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::account::username - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/struct.__Visitor.html b/mcaptcha/api/v1/account/username/struct.__Visitor.html new file mode 100644 index 00000000..0c4b190d --- /dev/null +++ b/mcaptcha/api/v1/account/username/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::account::username - Rust
struct __Visitor<'de> {
+    marker: PhantomData<Username>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<Username>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = Username

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/struct.set_username.html b/mcaptcha/api/v1/account/username/struct.set_username.html index 88651bac..b7a2da5e 100644 --- a/mcaptcha/api/v1/account/username/struct.set_username.html +++ b/mcaptcha/api/v1/account/username/struct.set_username.html @@ -1,10 +1,18 @@ -set_username in mcaptcha::api::v1::account::username - Rust
pub struct set_username;
Expand description

update username

-

Trait Implementations§

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).

+set_username in mcaptcha::api::v1::account::username - Rust
pub struct set_username;
Expand description

update username

+

Trait Implementations§

source§

impl HttpServiceFactory for set_username

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/account/username/struct.username_exists.html b/mcaptcha/api/v1/account/username/struct.username_exists.html index 030b7288..793b551e 100644 --- a/mcaptcha/api/v1/account/username/struct.username_exists.html +++ b/mcaptcha/api/v1/account/username/struct.username_exists.html @@ -1,9 +1,17 @@ -username_exists in mcaptcha::api::v1::account::username - Rust
pub struct username_exists;

Trait Implementations§

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).

+username_exists in mcaptcha::api::v1::account::username - Rust
pub struct username_exists;

Trait Implementations§

source§

impl HttpServiceFactory for username_exists

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/fn.login.html b/mcaptcha/api/v1/auth/fn.login.html new file mode 100644 index 00000000..3be1b578 --- /dev/null +++ b/mcaptcha/api/v1/auth/fn.login.html @@ -0,0 +1,6 @@ +login in mcaptcha::api::v1::auth - Rust

Function mcaptcha::api::v1::auth::login

source ·
async fn login(
+    id: Identity,
+    payload: Json<Login>,
+    query: Query<RedirectQuery>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/fn.register.html b/mcaptcha/api/v1/auth/fn.register.html new file mode 100644 index 00000000..52c170cc --- /dev/null +++ b/mcaptcha/api/v1/auth/fn.register.html @@ -0,0 +1,4 @@ +register in mcaptcha::api::v1::auth - Rust

Function mcaptcha::api::v1::auth::register

source ·
async fn register(
+    payload: Json<Register>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/fn.services.html b/mcaptcha/api/v1/auth/fn.services.html index aa3b1809..d4bf73c4 100644 --- a/mcaptcha/api/v1/auth/fn.services.html +++ b/mcaptcha/api/v1/auth/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::auth - Rust

Function mcaptcha::api::v1::auth::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::auth - Rust

Function mcaptcha::api::v1::auth::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/fn.signout.html b/mcaptcha/api/v1/auth/fn.signout.html new file mode 100644 index 00000000..125dcda3 --- /dev/null +++ b/mcaptcha/api/v1/auth/fn.signout.html @@ -0,0 +1 @@ +signout in mcaptcha::api::v1::auth - Rust

Function mcaptcha::api::v1::auth::signout

source ·
async fn signout(id: Identity) -> impl Responder
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/index.html b/mcaptcha/api/v1/auth/index.html index e2584214..b56179b3 100644 --- a/mcaptcha/api/v1/auth/index.html +++ b/mcaptcha/api/v1/auth/index.html @@ -1 +1 @@ -mcaptcha::api::v1::auth - Rust

Module mcaptcha::api::v1::auth

source ·

Modules

Structs

Functions

\ No newline at end of file +mcaptcha::api::v1::auth - Rust

Module mcaptcha::api::v1::auth

source ·

Modules

Structs

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/routes/index.html b/mcaptcha/api/v1/auth/routes/index.html index b1582ec6..3a991638 100644 --- a/mcaptcha/api/v1/auth/routes/index.html +++ b/mcaptcha/api/v1/auth/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::auth::routes - Rust

Module mcaptcha::api::v1::auth::routes

source ·

Structs

\ No newline at end of file +mcaptcha::api::v1::auth::routes - Rust

Module mcaptcha::api::v1::auth::routes

source ·

Structs

\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/routes/sidebar-items.js b/mcaptcha/api/v1/auth/routes/sidebar-items.js index 57506bd5..253fb26f 100644 --- a/mcaptcha/api/v1/auth/routes/sidebar-items.js +++ b/mcaptcha/api/v1/auth/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Auth",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Auth"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/auth/routes/struct.Auth.html b/mcaptcha/api/v1/auth/routes/struct.Auth.html index 299fe7b7..32f286fb 100644 --- a/mcaptcha/api/v1/auth/routes/struct.Auth.html +++ b/mcaptcha/api/v1/auth/routes/struct.Auth.html @@ -1,13 +1,21 @@ -Auth in mcaptcha::api::v1::auth::routes - Rust

Struct mcaptcha::api::v1::auth::routes::Auth

source ·
pub struct Auth {
-    pub logout: &'static str,
-    pub login: &'static str,
-    pub register: &'static str,
-}

Fields§

§logout: &'static str§login: &'static str§register: &'static str

Implementations§

Trait Implementations§

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).

+Auth in mcaptcha::api::v1::auth::routes - Rust

Struct mcaptcha::api::v1::auth::routes::Auth

source ·
pub struct Auth {
+    pub logout: &'static str,
+    pub login: &'static str,
+    pub register: &'static str,
+}

Fields§

§logout: &'static str§login: &'static str§register: &'static str

Implementations§

source§

impl Auth

source

pub const fn new() -> Auth

Trait Implementations§

source§

impl GetLoginRoute for Auth

Auto Trait Implementations§

§

impl RefUnwindSafe for Auth

§

impl Send for Auth

§

impl Sync for Auth

§

impl Unpin for Auth

§

impl UnwindSafe for Auth

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/constant.FIELDS.html b/mcaptcha/api/v1/auth/runners/constant.FIELDS.html new file mode 100644 index 00000000..16a5ef77 --- /dev/null +++ b/mcaptcha/api/v1/auth/runners/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::auth::runners - Rust

Constant mcaptcha::api::v1::auth::runners::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/enum.__Field.html b/mcaptcha/api/v1/auth/runners/enum.__Field.html new file mode 100644 index 00000000..823749ae --- /dev/null +++ b/mcaptcha/api/v1/auth/runners/enum.__Field.html @@ -0,0 +1,25 @@ +__Field in mcaptcha::api::v1::auth::runners - Rust
enum __Field {
+    __field0,
+    __field1,
+    __field2,
+    __field3,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__field2

§

__field3

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/fn.login_runner.html b/mcaptcha/api/v1/auth/runners/fn.login_runner.html index 354a9915..1f60110d 100644 --- a/mcaptcha/api/v1/auth/runners/fn.login_runner.html +++ b/mcaptcha/api/v1/auth/runners/fn.login_runner.html @@ -1,2 +1,5 @@ -login_runner in mcaptcha::api::v1::auth::runners - Rust

Function mcaptcha::api::v1::auth::runners::login_runner

source ·
pub async fn login_runner(
    payload: Login,
    data: &AppData
) -> Result<String, ServiceError>
Expand description

returns Ok(()) when everything checks out and the user is authenticated. Errors otherwise

-
\ No newline at end of file +login_runner in mcaptcha::api::v1::auth::runners - Rust

Function mcaptcha::api::v1::auth::runners::login_runner

source ·
pub async fn login_runner(
+    payload: Login,
+    data: &AppData
+) -> Result<String, ServiceError>
Expand description

returns Ok(()) when everything checks out and the user is authenticated. Errors otherwise

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/fn.register_runner.html b/mcaptcha/api/v1/auth/runners/fn.register_runner.html index 123067bc..03928f79 100644 --- a/mcaptcha/api/v1/auth/runners/fn.register_runner.html +++ b/mcaptcha/api/v1/auth/runners/fn.register_runner.html @@ -1 +1,4 @@ -register_runner in mcaptcha::api::v1::auth::runners - Rust
pub async fn register_runner(
    payload: &Register,
    data: &AppData
) -> Result<(), ServiceError>
\ No newline at end of file +register_runner in mcaptcha::api::v1::auth::runners - Rust
pub async fn register_runner(
+    payload: &Register,
+    data: &AppData
+) -> Result<(), ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/index.html b/mcaptcha/api/v1/auth/runners/index.html index f5b24641..dbf46665 100644 --- a/mcaptcha/api/v1/auth/runners/index.html +++ b/mcaptcha/api/v1/auth/runners/index.html @@ -1 +1 @@ -mcaptcha::api::v1::auth::runners - Rust

Module mcaptcha::api::v1::auth::runners

source ·

Structs

Functions

returns Ok(()) when everything checks out and the user is authenticated. Errors otherwise
\ No newline at end of file +mcaptcha::api::v1::auth::runners - Rust

Module mcaptcha::api::v1::auth::runners

source ·

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/sidebar-items.js b/mcaptcha/api/v1/auth/runners/sidebar-items.js index a3fad908..de3208a4 100644 --- a/mcaptcha/api/v1/auth/runners/sidebar-items.js +++ b/mcaptcha/api/v1/auth/runners/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["login_runner","returns Ok(()) when everything checks out and the user is authenticated. Errors otherwise"],["register_runner",""]],"struct":[["Login",""],["Password",""],["Register",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["login_runner","register_runner"],"struct":["Login","Password","Register","__FieldVisitor","__Visitor"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/struct.Login.html b/mcaptcha/api/v1/auth/runners/struct.Login.html index 735d70e7..8da30fea 100644 --- a/mcaptcha/api/v1/auth/runners/struct.Login.html +++ b/mcaptcha/api/v1/auth/runners/struct.Login.html @@ -1,12 +1,24 @@ -Login in mcaptcha::api::v1::auth::runners - Rust

Struct mcaptcha::api::v1::auth::runners::Login

source ·
pub struct Login {
-    pub login: String,
-    pub password: String,
-}

Fields§

§login: String§password: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+Login in mcaptcha::api::v1::auth::runners - Rust

Struct mcaptcha::api::v1::auth::runners::Login

source ·
pub struct Login {
+    pub login: String,
+    pub password: String,
+}

Fields§

§login: String§password: String

Trait Implementations§

source§

impl Clone for Login

source§

fn clone(&self) -> Login

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 Login

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Login

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 Serialize for Login

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 Login

§

impl Send for Login

§

impl Sync for Login

§

impl Unpin for Login

§

impl UnwindSafe for Login

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/struct.Password.html b/mcaptcha/api/v1/auth/runners/struct.Password.html index 6d9ae1f8..3d25166d 100644 --- a/mcaptcha/api/v1/auth/runners/struct.Password.html +++ b/mcaptcha/api/v1/auth/runners/struct.Password.html @@ -1,11 +1,23 @@ -Password in mcaptcha::api::v1::auth::runners - Rust

Struct mcaptcha::api::v1::auth::runners::Password

source ·
pub struct Password {
-    pub password: String,
-}

Fields§

§password: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+Password in mcaptcha::api::v1::auth::runners - Rust

Struct mcaptcha::api::v1::auth::runners::Password

source ·
pub struct Password {
+    pub password: String,
+}

Fields§

§password: String

Trait Implementations§

source§

impl Clone for Password

source§

fn clone(&self) -> Password

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 Password

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Password

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 Serialize for Password

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/struct.Register.html b/mcaptcha/api/v1/auth/runners/struct.Register.html index 9ac4b356..aace54cb 100644 --- a/mcaptcha/api/v1/auth/runners/struct.Register.html +++ b/mcaptcha/api/v1/auth/runners/struct.Register.html @@ -1,14 +1,26 @@ -Register in mcaptcha::api::v1::auth::runners - Rust

Struct mcaptcha::api::v1::auth::runners::Register

source ·
pub struct Register {
-    pub username: String,
-    pub password: String,
-    pub confirm_password: String,
-    pub email: Option<String>,
-}

Fields§

§username: String§password: String§confirm_password: String§email: Option<String>

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+Register in mcaptcha::api::v1::auth::runners - Rust

Struct mcaptcha::api::v1::auth::runners::Register

source ·
pub struct Register {
+    pub username: String,
+    pub password: String,
+    pub confirm_password: String,
+    pub email: Option<String>,
+}

Fields§

§username: String§password: String§confirm_password: String§email: Option<String>

Trait Implementations§

source§

impl Clone for Register

source§

fn clone(&self) -> Register

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 Register

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Register

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 Serialize for Register

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/struct.__FieldVisitor.html b/mcaptcha/api/v1/auth/runners/struct.__FieldVisitor.html new file mode 100644 index 00000000..56dade0c --- /dev/null +++ b/mcaptcha/api/v1/auth/runners/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::auth::runners - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/runners/struct.__Visitor.html b/mcaptcha/api/v1/auth/runners/struct.__Visitor.html new file mode 100644 index 00000000..5890b325 --- /dev/null +++ b/mcaptcha/api/v1/auth/runners/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::auth::runners - Rust

Struct mcaptcha::api::v1::auth::runners::__Visitor

source ·
struct __Visitor<'de> {
+    marker: PhantomData<Register>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<Register>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = Register

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/sidebar-items.js b/mcaptcha/api/v1/auth/sidebar-items.js index 64fe3727..32866da5 100644 --- a/mcaptcha/api/v1/auth/sidebar-items.js +++ b/mcaptcha/api/v1/auth/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["routes",""],["runners",""]],"struct":[["login",""],["register",""],["signout",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["login","register","services","signout"],"mod":["routes","runners"],"struct":["login","register","signout"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/auth/struct.login.html b/mcaptcha/api/v1/auth/struct.login.html index c14279f2..799a30d0 100644 --- a/mcaptcha/api/v1/auth/struct.login.html +++ b/mcaptcha/api/v1/auth/struct.login.html @@ -1,9 +1,17 @@ -login in mcaptcha::api::v1::auth - Rust

Struct mcaptcha::api::v1::auth::login

source ·
pub struct login;

Trait Implementations§

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).

+login in mcaptcha::api::v1::auth - Rust

Struct mcaptcha::api::v1::auth::login

source ·
pub struct login;

Trait Implementations§

source§

impl HttpServiceFactory for login

source§

fn register(self, __config: &mut AppService)

Auto Trait Implementations§

§

impl RefUnwindSafe for login

§

impl Send for login

§

impl Sync for login

§

impl Unpin for login

§

impl UnwindSafe for login

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/struct.register.html b/mcaptcha/api/v1/auth/struct.register.html index 766e8dfb..610975de 100644 --- a/mcaptcha/api/v1/auth/struct.register.html +++ b/mcaptcha/api/v1/auth/struct.register.html @@ -1,9 +1,17 @@ -register in mcaptcha::api::v1::auth - Rust

Struct mcaptcha::api::v1::auth::register

source ·
pub struct register;

Trait Implementations§

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).

+register in mcaptcha::api::v1::auth - Rust

Struct mcaptcha::api::v1::auth::register

source ·
pub struct register;

Trait Implementations§

source§

impl HttpServiceFactory for register

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/auth/struct.signout.html b/mcaptcha/api/v1/auth/struct.signout.html index 0c2149fd..ca14950e 100644 --- a/mcaptcha/api/v1/auth/struct.signout.html +++ b/mcaptcha/api/v1/auth/struct.signout.html @@ -1,9 +1,17 @@ -signout in mcaptcha::api::v1::auth - Rust

Struct mcaptcha::api::v1::auth::signout

source ·
pub struct signout;

Trait Implementations§

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).

+signout in mcaptcha::api::v1::auth - Rust

Struct mcaptcha::api::v1::auth::signout

source ·
pub struct signout;

Trait Implementations§

source§

impl HttpServiceFactory for signout

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/constant.FIELDS.html b/mcaptcha/api/v1/constant.FIELDS.html new file mode 100644 index 00000000..482ee599 --- /dev/null +++ b/mcaptcha/api/v1/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1 - Rust

Constant mcaptcha::api::v1::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/enum.__Field.html b/mcaptcha/api/v1/enum.__Field.html new file mode 100644 index 00000000..a4e41db4 --- /dev/null +++ b/mcaptcha/api/v1/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1 - Rust

Enum mcaptcha::api::v1::__Field

source ·
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/fn.get_middleware.html b/mcaptcha/api/v1/fn.get_middleware.html index 11e9b2a4..7e628452 100644 --- a/mcaptcha/api/v1/fn.get_middleware.html +++ b/mcaptcha/api/v1/fn.get_middleware.html @@ -1 +1 @@ -get_middleware in mcaptcha::api::v1 - Rust

Function mcaptcha::api::v1::get_middleware

source ·
pub fn get_middleware() -> Authentication<Routes>
\ No newline at end of file +get_middleware in mcaptcha::api::v1 - Rust

Function mcaptcha::api::v1::get_middleware

source ·
pub fn get_middleware() -> Authentication<Routes>
\ No newline at end of file diff --git a/mcaptcha/api/v1/fn.services.html b/mcaptcha/api/v1/fn.services.html index 6418ff2b..23197d91 100644 --- a/mcaptcha/api/v1/fn.services.html +++ b/mcaptcha/api/v1/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1 - Rust

Function mcaptcha::api::v1::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1 - Rust

Function mcaptcha::api::v1::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/index.html b/mcaptcha/api/v1/index.html index d234f825..56320f57 100644 --- a/mcaptcha/api/v1/index.html +++ b/mcaptcha/api/v1/index.html @@ -1 +1 @@ -mcaptcha::api::v1 - Rust

Module mcaptcha::api::v1

source ·

Re-exports

pub use routes::ROUTES;

Modules

Structs

Functions

\ No newline at end of file +mcaptcha::api::v1 - Rust

Module mcaptcha::api::v1

source ·

Re-exports

Modules

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/constant.FIELDS.html b/mcaptcha/api/v1/mcaptcha/create/constant.FIELDS.html new file mode 100644 index 00000000..9cf7e0e4 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/create/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::mcaptcha::create - Rust

Constant mcaptcha::api::v1::mcaptcha::create::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/enum.__Field.html b/mcaptcha/api/v1/mcaptcha/create/enum.__Field.html new file mode 100644 index 00000000..e93c0de3 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/create/enum.__Field.html @@ -0,0 +1,24 @@ +__Field in mcaptcha::api::v1::mcaptcha::create - Rust
enum __Field {
+    __field0,
+    __field1,
+    __field2,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__field2

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/fn.create.html b/mcaptcha/api/v1/mcaptcha/create/fn.create.html new file mode 100644 index 00000000..4009fb3c --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/create/fn.create.html @@ -0,0 +1,5 @@ +create in mcaptcha::api::v1::mcaptcha::create - Rust

Function mcaptcha::api::v1::mcaptcha::create::create

source ·
pub async fn create(
+    payload: Json<CreateCaptcha>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/index.html b/mcaptcha/api/v1/mcaptcha/create/index.html index e0d8657f..d0c25872 100644 --- a/mcaptcha/api/v1/mcaptcha/create/index.html +++ b/mcaptcha/api/v1/mcaptcha/create/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::create - Rust

Module mcaptcha::api::v1::mcaptcha::create

source ·

Modules

Structs

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::create - Rust

Module mcaptcha::api::v1::mcaptcha::create

source ·

Modules

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/runner/fn.create.html b/mcaptcha/api/v1/mcaptcha/create/runner/fn.create.html index 8daad7a5..53b395fa 100644 --- a/mcaptcha/api/v1/mcaptcha/create/runner/fn.create.html +++ b/mcaptcha/api/v1/mcaptcha/create/runner/fn.create.html @@ -1 +1,5 @@ -create in mcaptcha::api::v1::mcaptcha::create::runner - Rust

Function mcaptcha::api::v1::mcaptcha::create::runner::create

source ·
pub async fn create(
    payload: &CreateCaptcha,
    data: &AppData,
    username: &str
) -> Result<MCaptchaDetails, ServiceError>
\ No newline at end of file +create in mcaptcha::api::v1::mcaptcha::create::runner - Rust

Function mcaptcha::api::v1::mcaptcha::create::runner::create

source ·
pub async fn create(
+    payload: &CreateCaptcha,
+    data: &AppData,
+    username: &str
+) -> Result<MCaptchaDetails, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/runner/index.html b/mcaptcha/api/v1/mcaptcha/create/runner/index.html index 97fb5386..88e844eb 100644 --- a/mcaptcha/api/v1/mcaptcha/create/runner/index.html +++ b/mcaptcha/api/v1/mcaptcha/create/runner/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::create::runner - Rust

Module mcaptcha::api::v1::mcaptcha::create::runner

source ·

Functions

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::create::runner - Rust

Module mcaptcha::api::v1::mcaptcha::create::runner

source ·

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/runner/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/create/runner/sidebar-items.js index 9362ff1c..a19185c5 100644 --- a/mcaptcha/api/v1/mcaptcha/create/runner/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/create/runner/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["create",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["create"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/create/sidebar-items.js index 6130a5d1..0f635575 100644 --- a/mcaptcha/api/v1/mcaptcha/create/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/create/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"mod":[["runner",""]],"struct":[["CreateCaptcha",""],["MCaptchaDetails",""],["create",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["create"],"mod":["runner"],"struct":["CreateCaptcha","MCaptchaDetails","__FieldVisitor","__Visitor","create"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/struct.CreateCaptcha.html b/mcaptcha/api/v1/mcaptcha/create/struct.CreateCaptcha.html index 0dafe188..dcde5428 100644 --- a/mcaptcha/api/v1/mcaptcha/create/struct.CreateCaptcha.html +++ b/mcaptcha/api/v1/mcaptcha/create/struct.CreateCaptcha.html @@ -1,13 +1,24 @@ -CreateCaptcha in mcaptcha::api::v1::mcaptcha::create - Rust
pub struct CreateCaptcha {
-    pub levels: Vec<Level>,
-    pub duration: u32,
-    pub description: String,
-}

Fields§

§levels: Vec<Level>§duration: u32§description: String

Trait Implementations§

Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+CreateCaptcha in mcaptcha::api::v1::mcaptcha::create - Rust
pub struct CreateCaptcha {
+    pub levels: Vec<Level>,
+    pub duration: u32,
+    pub description: String,
+}

Fields§

§levels: Vec<Level>§duration: u32§description: String

Trait Implementations§

source§

impl<'de> Deserialize<'de> for CreateCaptcha

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 Serialize for CreateCaptcha

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/struct.MCaptchaDetails.html b/mcaptcha/api/v1/mcaptcha/create/struct.MCaptchaDetails.html index 29a68035..5c454c35 100644 --- a/mcaptcha/api/v1/mcaptcha/create/struct.MCaptchaDetails.html +++ b/mcaptcha/api/v1/mcaptcha/create/struct.MCaptchaDetails.html @@ -1,12 +1,24 @@ -MCaptchaDetails in mcaptcha::api::v1::mcaptcha::create - Rust
pub struct MCaptchaDetails {
-    pub name: String,
-    pub key: String,
-}

Fields§

§name: String§key: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+MCaptchaDetails in mcaptcha::api::v1::mcaptcha::create - Rust
pub struct MCaptchaDetails {
+    pub name: String,
+    pub key: String,
+}

Fields§

§name: String§key: String

Trait Implementations§

source§

impl Clone for MCaptchaDetails

source§

fn clone(&self) -> MCaptchaDetails

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 MCaptchaDetails

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for MCaptchaDetails

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 Serialize for MCaptchaDetails

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/struct.__FieldVisitor.html b/mcaptcha/api/v1/mcaptcha/create/struct.__FieldVisitor.html new file mode 100644 index 00000000..b827e403 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/create/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::mcaptcha::create - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/struct.__Visitor.html b/mcaptcha/api/v1/mcaptcha/create/struct.__Visitor.html new file mode 100644 index 00000000..420d8305 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/create/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::mcaptcha::create - Rust
struct __Visitor<'de> {
+    marker: PhantomData<CreateCaptcha>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<CreateCaptcha>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = CreateCaptcha

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/create/struct.create.html b/mcaptcha/api/v1/mcaptcha/create/struct.create.html index 89c4f5a3..3677a85e 100644 --- a/mcaptcha/api/v1/mcaptcha/create/struct.create.html +++ b/mcaptcha/api/v1/mcaptcha/create/struct.create.html @@ -1,9 +1,17 @@ -create in mcaptcha::api::v1::mcaptcha::create - Rust

Struct mcaptcha::api::v1::mcaptcha::create::create

source ·
pub struct create;

Trait Implementations§

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).

+create in mcaptcha::api::v1::mcaptcha::create - Rust

Struct mcaptcha::api::v1::mcaptcha::create::create

source ·
pub struct create;

Trait Implementations§

source§

impl HttpServiceFactory for create

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/constant.FIELDS.html b/mcaptcha/api/v1/mcaptcha/delete/constant.FIELDS.html new file mode 100644 index 00000000..eb58fd3c --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/delete/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::mcaptcha::delete - Rust

Constant mcaptcha::api::v1::mcaptcha::delete::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/enum.__Field.html b/mcaptcha/api/v1/mcaptcha/delete/enum.__Field.html new file mode 100644 index 00000000..82a71317 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/delete/enum.__Field.html @@ -0,0 +1,23 @@ +__Field in mcaptcha::api::v1::mcaptcha::delete - Rust
enum __Field {
+    __field0,
+    __field1,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/fn.delete.html b/mcaptcha/api/v1/mcaptcha/delete/fn.delete.html new file mode 100644 index 00000000..a7578cca --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/delete/fn.delete.html @@ -0,0 +1,5 @@ +delete in mcaptcha::api::v1::mcaptcha::delete - Rust

Function mcaptcha::api::v1::mcaptcha::delete::delete

source ·
async fn delete(
+    payload: Json<DeleteCaptcha>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/index.html b/mcaptcha/api/v1/mcaptcha/delete/index.html index 8f13bbe1..efbed8e0 100644 --- a/mcaptcha/api/v1/mcaptcha/delete/index.html +++ b/mcaptcha/api/v1/mcaptcha/delete/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::delete - Rust

Module mcaptcha::api::v1::mcaptcha::delete

source ·

Structs

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::delete - Rust

Module mcaptcha::api::v1::mcaptcha::delete

source ·

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/delete/sidebar-items.js index 41780d66..22e5703c 100644 --- a/mcaptcha/api/v1/mcaptcha/delete/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/delete/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["DeleteCaptcha",""],["delete",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["delete"],"struct":["DeleteCaptcha","__FieldVisitor","__Visitor","delete"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/struct.DeleteCaptcha.html b/mcaptcha/api/v1/mcaptcha/delete/struct.DeleteCaptcha.html index e2d6cffe..9a550bb1 100644 --- a/mcaptcha/api/v1/mcaptcha/delete/struct.DeleteCaptcha.html +++ b/mcaptcha/api/v1/mcaptcha/delete/struct.DeleteCaptcha.html @@ -1,12 +1,24 @@ -DeleteCaptcha in mcaptcha::api::v1::mcaptcha::delete - Rust
pub struct DeleteCaptcha {
-    pub key: String,
-    pub password: String,
-}

Fields§

§key: String§password: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+DeleteCaptcha in mcaptcha::api::v1::mcaptcha::delete - Rust
pub struct DeleteCaptcha {
+    pub key: String,
+    pub password: String,
+}

Fields§

§key: String§password: String

Trait Implementations§

source§

impl Clone for DeleteCaptcha

source§

fn clone(&self) -> DeleteCaptcha

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 DeleteCaptcha

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DeleteCaptcha

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 Serialize for DeleteCaptcha

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/struct.__FieldVisitor.html b/mcaptcha/api/v1/mcaptcha/delete/struct.__FieldVisitor.html new file mode 100644 index 00000000..0866a87c --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/delete/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::mcaptcha::delete - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/struct.__Visitor.html b/mcaptcha/api/v1/mcaptcha/delete/struct.__Visitor.html new file mode 100644 index 00000000..958d8869 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/delete/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::mcaptcha::delete - Rust
struct __Visitor<'de> {
+    marker: PhantomData<DeleteCaptcha>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<DeleteCaptcha>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = DeleteCaptcha

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/delete/struct.delete.html b/mcaptcha/api/v1/mcaptcha/delete/struct.delete.html index 1871ff51..402bad5d 100644 --- a/mcaptcha/api/v1/mcaptcha/delete/struct.delete.html +++ b/mcaptcha/api/v1/mcaptcha/delete/struct.delete.html @@ -1,9 +1,17 @@ -delete in mcaptcha::api::v1::mcaptcha::delete - Rust

Struct mcaptcha::api::v1::mcaptcha::delete::delete

source ·
pub struct delete;

Trait Implementations§

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).

+delete in mcaptcha::api::v1::mcaptcha::delete - Rust

Struct mcaptcha::api::v1::mcaptcha::delete::delete

source ·
pub struct delete;

Trait Implementations§

source§

impl HttpServiceFactory for delete

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/constant.FIELDS.html b/mcaptcha/api/v1/mcaptcha/easy/constant.FIELDS.html new file mode 100644 index 00000000..ea861f65 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/easy/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::mcaptcha::easy - Rust

Constant mcaptcha::api::v1::mcaptcha::easy::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/enum.__Field.html b/mcaptcha/api/v1/mcaptcha/easy/enum.__Field.html new file mode 100644 index 00000000..5969872e --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/easy/enum.__Field.html @@ -0,0 +1,25 @@ +__Field in mcaptcha::api::v1::mcaptcha::easy - Rust
enum __Field {
+    __field0,
+    __field1,
+    __field2,
+    __field3,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__field2

§

__field3

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ 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 422b424f..ffe7f8bd 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html +++ b/mcaptcha/api/v1/mcaptcha/easy/fn.calculate.html @@ -1 +1,4 @@ -calculate in mcaptcha::api::v1::mcaptcha::easy - Rust

Function mcaptcha::api::v1::mcaptcha::easy::calculate

source ·
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

Function mcaptcha::api::v1::mcaptcha::easy::calculate

source ·
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/fn.create.html b/mcaptcha/api/v1/mcaptcha/easy/fn.create.html new file mode 100644 index 00000000..980efcf2 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/easy/fn.create.html @@ -0,0 +1,5 @@ +create in mcaptcha::api::v1::mcaptcha::easy - Rust

Function mcaptcha::api::v1::mcaptcha::easy::create

source ·
async fn create(
+    payload: Json<TrafficPatternRequest>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/fn.services.html b/mcaptcha/api/v1/mcaptcha/easy/fn.services.html index 78969d51..bfb9e95c 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/fn.services.html +++ b/mcaptcha/api/v1/mcaptcha/easy/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::mcaptcha::easy - Rust

Function mcaptcha::api::v1::mcaptcha::easy::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::mcaptcha::easy - Rust

Function mcaptcha::api::v1::mcaptcha::easy::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/fn.update.html b/mcaptcha/api/v1/mcaptcha/easy/fn.update.html new file mode 100644 index 00000000..9a1aef6b --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/easy/fn.update.html @@ -0,0 +1,5 @@ +update in mcaptcha::api::v1::mcaptcha::easy - Rust

Function mcaptcha::api::v1::mcaptcha::easy::update

source ·
async fn update(
+    payload: Json<UpdateTrafficPattern>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/index.html b/mcaptcha/api/v1/mcaptcha/easy/index.html index 25c9a156..651ee287 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/index.html +++ b/mcaptcha/api/v1/mcaptcha/easy/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::easy - Rust

Module mcaptcha::api::v1::mcaptcha::easy

source ·

Modules

Structs

User’s traffic pattern; used in generating a captcha configuration

Functions

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::easy - Rust

Module mcaptcha::api::v1::mcaptcha::easy

source ·

Modules

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/routes/index.html b/mcaptcha/api/v1/mcaptcha/easy/routes/index.html index 14e65daa..3f849848 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/routes/index.html +++ b/mcaptcha/api/v1/mcaptcha/easy/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::easy::routes - Rust

Module mcaptcha::api::v1::mcaptcha::easy::routes

source ·

Structs

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::easy::routes - Rust

Module mcaptcha::api::v1::mcaptcha::easy::routes

source ·

Structs

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/routes/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/easy/routes/sidebar-items.js index e7f6a113..71c706a1 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/routes/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/easy/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Easy",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Easy"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/routes/struct.Easy.html b/mcaptcha/api/v1/mcaptcha/easy/routes/struct.Easy.html index 54d967e6..2d68b60e 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/routes/struct.Easy.html +++ b/mcaptcha/api/v1/mcaptcha/easy/routes/struct.Easy.html @@ -1,13 +1,21 @@ -Easy in mcaptcha::api::v1::mcaptcha::easy::routes - Rust

Struct mcaptcha::api::v1::mcaptcha::easy::routes::Easy

source ·
pub struct Easy {
-    pub create: &'static str,
-    pub update: &'static str,
-}

Fields§

§create: &'static str

easy is using defaults

-
§update: &'static str

Implementations§

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).

+Easy in mcaptcha::api::v1::mcaptcha::easy::routes - Rust

Struct mcaptcha::api::v1::mcaptcha::easy::routes::Easy

source ·
pub struct Easy {
+    pub create: &'static str,
+    pub update: &'static str,
+}

Fields§

§create: &'static str

easy is using defaults

+
§update: &'static str

Implementations§

source§

impl Easy

source

pub const fn new() -> Self

Auto Trait Implementations§

§

impl RefUnwindSafe for Easy

§

impl Send for Easy

§

impl Sync for Easy

§

impl Unpin for Easy

§

impl UnwindSafe for Easy

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/easy/sidebar-items.js index 2cb0ef07..3b812e57 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/easy/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["calculate",""],["services",""]],"mod":[["routes",""]],"struct":[["TrafficPatternRequest","User’s traffic pattern; used in generating a captcha configuration"],["UpdateTrafficPattern",""],["create",""],["update",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["calculate","create","services","update"],"mod":["routes"],"struct":["TrafficPatternRequest","UpdateTrafficPattern","__FieldVisitor","__Visitor","create","update"]}; \ 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 473af967..24925b63 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/struct.TrafficPatternRequest.html +++ b/mcaptcha/api/v1/mcaptcha/easy/struct.TrafficPatternRequest.html @@ -1,19 +1,31 @@ -TrafficPatternRequest in mcaptcha::api::v1::mcaptcha::easy - Rust
pub struct TrafficPatternRequest {
-    pub avg_traffic: u32,
-    pub peak_sustainable_traffic: u32,
-    pub broke_my_site_traffic: Option<u32>,
-    pub description: String,
-}
Expand description

User’s traffic pattern; used in generating a captcha configuration

-

Fields§

§avg_traffic: u32

average traffic of user’s website

-
§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.

-
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).

+TrafficPatternRequest in mcaptcha::api::v1::mcaptcha::easy - Rust
pub struct TrafficPatternRequest {
+    pub avg_traffic: u32,
+    pub peak_sustainable_traffic: u32,
+    pub broke_my_site_traffic: Option<u32>,
+    pub description: String,
+}
Expand description

User’s traffic pattern; used in generating a captcha configuration

+

Fields§

§avg_traffic: u32

average traffic of user’s website

+
§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§

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 + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/struct.UpdateTrafficPattern.html b/mcaptcha/api/v1/mcaptcha/easy/struct.UpdateTrafficPattern.html index 98d69e0f..bf2ee7fb 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/struct.UpdateTrafficPattern.html +++ b/mcaptcha/api/v1/mcaptcha/easy/struct.UpdateTrafficPattern.html @@ -1,12 +1,24 @@ -UpdateTrafficPattern in mcaptcha::api::v1::mcaptcha::easy - Rust
pub struct UpdateTrafficPattern {
+UpdateTrafficPattern in mcaptcha::api::v1::mcaptcha::easy - Rust
pub struct UpdateTrafficPattern {
     pub pattern: TrafficPatternRequest,
-    pub key: String,
-}

Fields§

§pattern: TrafficPatternRequest§key: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+ pub key: String, +}

Fields§

§pattern: TrafficPatternRequest§key: String

Trait Implementations§

source§

impl Clone for UpdateTrafficPattern

source§

fn clone(&self) -> UpdateTrafficPattern

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 UpdateTrafficPattern

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for UpdateTrafficPattern

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 Serialize for UpdateTrafficPattern

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/struct.__FieldVisitor.html b/mcaptcha/api/v1/mcaptcha/easy/struct.__FieldVisitor.html new file mode 100644 index 00000000..95a88090 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/easy/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::mcaptcha::easy - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/struct.__Visitor.html b/mcaptcha/api/v1/mcaptcha/easy/struct.__Visitor.html new file mode 100644 index 00000000..4ca65b2b --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/easy/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::mcaptcha::easy - Rust
struct __Visitor<'de> {
+    marker: PhantomData<TrafficPatternRequest>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<TrafficPatternRequest>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = TrafficPatternRequest

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/struct.create.html b/mcaptcha/api/v1/mcaptcha/easy/struct.create.html index 744a68aa..fdf3204c 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/struct.create.html +++ b/mcaptcha/api/v1/mcaptcha/easy/struct.create.html @@ -1,9 +1,17 @@ -create in mcaptcha::api::v1::mcaptcha::easy - Rust

Struct mcaptcha::api::v1::mcaptcha::easy::create

source ·
pub struct create;

Trait Implementations§

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).

+create in mcaptcha::api::v1::mcaptcha::easy - Rust

Struct mcaptcha::api::v1::mcaptcha::easy::create

source ·
pub struct create;

Trait Implementations§

source§

impl HttpServiceFactory for create

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/easy/struct.update.html b/mcaptcha/api/v1/mcaptcha/easy/struct.update.html index 66c35acf..5c9b0975 100644 --- a/mcaptcha/api/v1/mcaptcha/easy/struct.update.html +++ b/mcaptcha/api/v1/mcaptcha/easy/struct.update.html @@ -1,9 +1,17 @@ -update in mcaptcha::api::v1::mcaptcha::easy - Rust

Struct mcaptcha::api::v1::mcaptcha::easy::update

source ·
pub struct update;

Trait Implementations§

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).

+update in mcaptcha::api::v1::mcaptcha::easy - Rust

Struct mcaptcha::api::v1::mcaptcha::easy::update

source ·
pub struct update;

Trait Implementations§

source§

impl HttpServiceFactory for update

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/fn.get_random.html b/mcaptcha/api/v1/mcaptcha/fn.get_random.html index c9052959..607d8fae 100644 --- a/mcaptcha/api/v1/mcaptcha/fn.get_random.html +++ b/mcaptcha/api/v1/mcaptcha/fn.get_random.html @@ -1 +1 @@ -get_random in mcaptcha::api::v1::mcaptcha - Rust

Function mcaptcha::api::v1::mcaptcha::get_random

source ·
pub fn get_random(len: usize) -> String
\ No newline at end of file +get_random in mcaptcha::api::v1::mcaptcha - Rust

Function mcaptcha::api::v1::mcaptcha::get_random

source ·
pub fn get_random(len: usize) -> String
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/fn.services.html b/mcaptcha/api/v1/mcaptcha/fn.services.html index 6bdfc406..1555bb76 100644 --- a/mcaptcha/api/v1/mcaptcha/fn.services.html +++ b/mcaptcha/api/v1/mcaptcha/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::mcaptcha - Rust

Function mcaptcha::api::v1::mcaptcha::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::mcaptcha - Rust

Function mcaptcha::api::v1::mcaptcha::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/constant.FIELDS.html b/mcaptcha/api/v1/mcaptcha/get/constant.FIELDS.html new file mode 100644 index 00000000..d6a91766 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/get/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::mcaptcha::get - Rust

Constant mcaptcha::api::v1::mcaptcha::get::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/enum.__Field.html b/mcaptcha/api/v1/mcaptcha/get/enum.__Field.html new file mode 100644 index 00000000..d03cafa3 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/get/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::mcaptcha::get - Rust
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/fn.get_captcha.html b/mcaptcha/api/v1/mcaptcha/get/fn.get_captcha.html new file mode 100644 index 00000000..59fa8a6f --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/get/fn.get_captcha.html @@ -0,0 +1,5 @@ +get_captcha in mcaptcha::api::v1::mcaptcha::get - Rust

Function mcaptcha::api::v1::mcaptcha::get::get_captcha

source ·
pub async fn get_captcha(
+    payload: Json<MCaptchaDetails>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/index.html b/mcaptcha/api/v1/mcaptcha/get/index.html index 7d88584d..3f35103a 100644 --- a/mcaptcha/api/v1/mcaptcha/get/index.html +++ b/mcaptcha/api/v1/mcaptcha/get/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::get - Rust

Module mcaptcha::api::v1::mcaptcha::get

source ·

Structs

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::get - Rust

Module mcaptcha::api::v1::mcaptcha::get

source ·

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/get/sidebar-items.js index 3f82ef93..f9afe301 100644 --- a/mcaptcha/api/v1/mcaptcha/get/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/get/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["I32Levels",""],["Levels",""],["get_captcha",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["get_captcha"],"struct":["I32Levels","Levels","__FieldVisitor","__Visitor","get_captcha"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/struct.I32Levels.html b/mcaptcha/api/v1/mcaptcha/get/struct.I32Levels.html index bb3d2703..6e234f04 100644 --- a/mcaptcha/api/v1/mcaptcha/get/struct.I32Levels.html +++ b/mcaptcha/api/v1/mcaptcha/get/struct.I32Levels.html @@ -1,12 +1,24 @@ -I32Levels in mcaptcha::api::v1::mcaptcha::get - Rust

Struct mcaptcha::api::v1::mcaptcha::get::I32Levels

source ·
pub struct I32Levels {
-    pub difficulty_factor: i32,
-    pub visitor_threshold: i32,
-}

Fields§

§difficulty_factor: i32§visitor_threshold: i32

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+I32Levels in mcaptcha::api::v1::mcaptcha::get - Rust

Struct mcaptcha::api::v1::mcaptcha::get::I32Levels

source ·
pub struct I32Levels {
+    pub difficulty_factor: i32,
+    pub visitor_threshold: i32,
+}

Fields§

§difficulty_factor: i32§visitor_threshold: i32

Trait Implementations§

source§

impl Clone for I32Levels

source§

fn clone(&self) -> I32Levels

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 I32Levels

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for I32Levels

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 Serialize for I32Levels

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/struct.Levels.html b/mcaptcha/api/v1/mcaptcha/get/struct.Levels.html index 8d40a77d..8d571f22 100644 --- a/mcaptcha/api/v1/mcaptcha/get/struct.Levels.html +++ b/mcaptcha/api/v1/mcaptcha/get/struct.Levels.html @@ -1,11 +1,23 @@ -Levels in mcaptcha::api::v1::mcaptcha::get - Rust

Struct mcaptcha::api::v1::mcaptcha::get::Levels

source ·
pub struct Levels {
+Levels in mcaptcha::api::v1::mcaptcha::get - Rust

Struct mcaptcha::api::v1::mcaptcha::get::Levels

source ·
pub struct Levels {
     levels: I32Levels,
-}

Fields§

§levels: I32Levels

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+}

Fields§

§levels: I32Levels

Trait Implementations§

source§

impl Clone for Levels

source§

fn clone(&self) -> Levels

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 Levels

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Levels

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 Serialize for Levels

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/struct.__FieldVisitor.html b/mcaptcha/api/v1/mcaptcha/get/struct.__FieldVisitor.html new file mode 100644 index 00000000..9b41b08c --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/get/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::mcaptcha::get - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/struct.__Visitor.html b/mcaptcha/api/v1/mcaptcha/get/struct.__Visitor.html new file mode 100644 index 00000000..7ddab009 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/get/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::mcaptcha::get - Rust

Struct mcaptcha::api::v1::mcaptcha::get::__Visitor

source ·
struct __Visitor<'de> {
+    marker: PhantomData<Levels>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<Levels>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = Levels

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/get/struct.get_captcha.html b/mcaptcha/api/v1/mcaptcha/get/struct.get_captcha.html index bf7c177b..f9aae970 100644 --- a/mcaptcha/api/v1/mcaptcha/get/struct.get_captcha.html +++ b/mcaptcha/api/v1/mcaptcha/get/struct.get_captcha.html @@ -1,9 +1,17 @@ -get_captcha in mcaptcha::api::v1::mcaptcha::get - Rust
pub struct get_captcha;

Trait Implementations§

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).

+get_captcha in mcaptcha::api::v1::mcaptcha::get - Rust
pub struct get_captcha;

Trait Implementations§

source§

impl HttpServiceFactory for get_captcha

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/index.html b/mcaptcha/api/v1/mcaptcha/index.html index b7a6d7d7..852b0692 100644 --- a/mcaptcha/api/v1/mcaptcha/index.html +++ b/mcaptcha/api/v1/mcaptcha/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha - Rust

Module mcaptcha::api::v1::mcaptcha

source ·

Modules

Functions

\ No newline at end of file +mcaptcha::api::v1::mcaptcha - Rust

Module mcaptcha::api::v1::mcaptcha

source ·

Modules

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/routes/index.html b/mcaptcha/api/v1/mcaptcha/routes/index.html index 5c9db6cb..d8aab146 100644 --- a/mcaptcha/api/v1/mcaptcha/routes/index.html +++ b/mcaptcha/api/v1/mcaptcha/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::routes - Rust

Module mcaptcha::api::v1::mcaptcha::routes

source ·

Structs

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::routes - Rust

Module mcaptcha::api::v1::mcaptcha::routes

source ·

Structs

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/routes/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/routes/sidebar-items.js index 7195c923..f4c3970e 100644 --- a/mcaptcha/api/v1/mcaptcha/routes/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Captcha",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Captcha"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/routes/struct.Captcha.html b/mcaptcha/api/v1/mcaptcha/routes/struct.Captcha.html index 276e7ff7..05560f1d 100644 --- a/mcaptcha/api/v1/mcaptcha/routes/struct.Captcha.html +++ b/mcaptcha/api/v1/mcaptcha/routes/struct.Captcha.html @@ -1,17 +1,25 @@ -Captcha in mcaptcha::api::v1::mcaptcha::routes - Rust
pub struct Captcha {
-    pub create: &'static str,
-    pub update: &'static str,
-    pub get: &'static str,
-    pub delete: &'static str,
-    pub update_key: &'static str,
+Captcha in mcaptcha::api::v1::mcaptcha::routes - Rust
pub struct Captcha {
+    pub create: &'static str,
+    pub update: &'static str,
+    pub get: &'static str,
+    pub delete: &'static str,
+    pub update_key: &'static str,
     pub easy: Easy,
     pub stats: Stats,
-}

Fields§

§create: &'static str§update: &'static str§get: &'static str§delete: &'static str§update_key: &'static str§easy: Easy§stats: Stats

Implementations§

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).

+}

Fields§

§create: &'static str§update: &'static str§get: &'static str§delete: &'static str§update_key: &'static str§easy: Easy§stats: Stats

Implementations§

source§

impl Captcha

source

pub const fn new() -> Self

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/sidebar-items.js index e5420593..c5636a9c 100644 --- a/mcaptcha/api/v1/mcaptcha/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["get_random",""],["services",""]],"mod":[["create",""],["delete",""],["easy",""],["get",""],["routes",""],["stats",""],["update",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["get_random","services"],"mod":["create","delete","easy","get","routes","stats","update"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/constant.FIELDS.html b/mcaptcha/api/v1/mcaptcha/stats/constant.FIELDS.html new file mode 100644 index 00000000..57e59e83 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/stats/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::mcaptcha::stats - Rust

Constant mcaptcha::api::v1::mcaptcha::stats::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/enum.__Field.html b/mcaptcha/api/v1/mcaptcha/stats/enum.__Field.html new file mode 100644 index 00000000..0e8abd54 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/stats/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::mcaptcha::stats - Rust
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/fn.get.html b/mcaptcha/api/v1/mcaptcha/stats/fn.get.html new file mode 100644 index 00000000..740f9395 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/stats/fn.get.html @@ -0,0 +1,5 @@ +get in mcaptcha::api::v1::mcaptcha::stats - Rust

Function mcaptcha::api::v1::mcaptcha::stats::get

source ·
pub async fn get(
+    payload: Json<StatsPayload>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/index.html b/mcaptcha/api/v1/mcaptcha/stats/index.html index fbdf2ae7..b3ab8ccf 100644 --- a/mcaptcha/api/v1/mcaptcha/stats/index.html +++ b/mcaptcha/api/v1/mcaptcha/stats/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::stats - Rust

Module mcaptcha::api::v1::mcaptcha::stats

source ·

Modules

Structs

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::stats - Rust

Module mcaptcha::api::v1::mcaptcha::stats

source ·

Modules

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/routes/index.html b/mcaptcha/api/v1/mcaptcha/stats/routes/index.html index 511399a3..7aa58324 100644 --- a/mcaptcha/api/v1/mcaptcha/stats/routes/index.html +++ b/mcaptcha/api/v1/mcaptcha/stats/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::stats::routes - Rust

Module mcaptcha::api::v1::mcaptcha::stats::routes

source ·

Structs

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::stats::routes - Rust

Module mcaptcha::api::v1::mcaptcha::stats::routes

source ·

Structs

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/routes/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/stats/routes/sidebar-items.js index 72a775ea..74febcb2 100644 --- a/mcaptcha/api/v1/mcaptcha/stats/routes/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/stats/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Stats",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Stats"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/routes/struct.Stats.html b/mcaptcha/api/v1/mcaptcha/stats/routes/struct.Stats.html index fe7e8003..ed89e678 100644 --- a/mcaptcha/api/v1/mcaptcha/stats/routes/struct.Stats.html +++ b/mcaptcha/api/v1/mcaptcha/stats/routes/struct.Stats.html @@ -1,11 +1,19 @@ -Stats in mcaptcha::api::v1::mcaptcha::stats::routes - Rust
pub struct Stats {
-    pub get: &'static str,
-}

Fields§

§get: &'static str

Implementations§

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).

+Stats in mcaptcha::api::v1::mcaptcha::stats::routes - Rust
pub struct Stats {
+    pub get: &'static str,
+}

Fields§

§get: &'static str

Implementations§

source§

impl Stats

source

pub const fn new() -> Self

Auto Trait Implementations§

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/stats/sidebar-items.js index 572ebd2a..9f14eb55 100644 --- a/mcaptcha/api/v1/mcaptcha/stats/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/stats/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"mod":[["routes",""]],"struct":[["StatsPayload",""],["get",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["get"],"mod":["routes"],"struct":["StatsPayload","__FieldVisitor","__Visitor","get"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/struct.StatsPayload.html b/mcaptcha/api/v1/mcaptcha/stats/struct.StatsPayload.html index c2943830..cee98529 100644 --- a/mcaptcha/api/v1/mcaptcha/stats/struct.StatsPayload.html +++ b/mcaptcha/api/v1/mcaptcha/stats/struct.StatsPayload.html @@ -1,11 +1,23 @@ -StatsPayload in mcaptcha::api::v1::mcaptcha::stats - Rust
pub struct StatsPayload {
-    pub key: String,
-}

Fields§

§key: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+StatsPayload in mcaptcha::api::v1::mcaptcha::stats - Rust
pub struct StatsPayload {
+    pub key: String,
+}

Fields§

§key: String

Trait Implementations§

source§

impl Clone for StatsPayload

source§

fn clone(&self) -> StatsPayload

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 StatsPayload

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for StatsPayload

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 Serialize for StatsPayload

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/struct.__FieldVisitor.html b/mcaptcha/api/v1/mcaptcha/stats/struct.__FieldVisitor.html new file mode 100644 index 00000000..16c24fa0 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/stats/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::mcaptcha::stats - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/struct.__Visitor.html b/mcaptcha/api/v1/mcaptcha/stats/struct.__Visitor.html new file mode 100644 index 00000000..04cae5e8 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/stats/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::mcaptcha::stats - Rust
struct __Visitor<'de> {
+    marker: PhantomData<StatsPayload>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<StatsPayload>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = StatsPayload

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/stats/struct.get.html b/mcaptcha/api/v1/mcaptcha/stats/struct.get.html index d20450b4..78d31886 100644 --- a/mcaptcha/api/v1/mcaptcha/stats/struct.get.html +++ b/mcaptcha/api/v1/mcaptcha/stats/struct.get.html @@ -1,9 +1,17 @@ -get in mcaptcha::api::v1::mcaptcha::stats - Rust

Struct mcaptcha::api::v1::mcaptcha::stats::get

source ·
pub struct get;

Trait Implementations§

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).

+get in mcaptcha::api::v1::mcaptcha::stats - Rust

Struct mcaptcha::api::v1::mcaptcha::stats::get

source ·
pub struct get;

Trait Implementations§

source§

impl HttpServiceFactory for get

source§

fn register(self, __config: &mut AppService)

Auto Trait Implementations§

§

impl RefUnwindSafe for get

§

impl Send for get

§

impl Sync for get

§

impl Unpin for get

§

impl UnwindSafe for get

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/constant.FIELDS.html b/mcaptcha/api/v1/mcaptcha/update/constant.FIELDS.html new file mode 100644 index 00000000..1f29a978 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/update/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::mcaptcha::update - Rust

Constant mcaptcha::api::v1::mcaptcha::update::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/enum.__Field.html b/mcaptcha/api/v1/mcaptcha/update/enum.__Field.html new file mode 100644 index 00000000..b2fee165 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/update/enum.__Field.html @@ -0,0 +1,25 @@ +__Field in mcaptcha::api::v1::mcaptcha::update - Rust
enum __Field {
+    __field0,
+    __field1,
+    __field2,
+    __field3,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__field2

§

__field3

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/fn.update_captcha.html b/mcaptcha/api/v1/mcaptcha/update/fn.update_captcha.html new file mode 100644 index 00000000..b07ad935 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/update/fn.update_captcha.html @@ -0,0 +1,5 @@ +update_captcha in mcaptcha::api::v1::mcaptcha::update - Rust
pub async fn update_captcha(
+    payload: Json<UpdateCaptcha>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/fn.update_key.html b/mcaptcha/api/v1/mcaptcha/update/fn.update_key.html new file mode 100644 index 00000000..c972a3e5 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/update/fn.update_key.html @@ -0,0 +1,5 @@ +update_key in mcaptcha::api::v1::mcaptcha::update - Rust
pub async fn update_key(
+    payload: Json<MCaptchaDetails>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/index.html b/mcaptcha/api/v1/mcaptcha/update/index.html index 742ec97e..7a313b58 100644 --- a/mcaptcha/api/v1/mcaptcha/update/index.html +++ b/mcaptcha/api/v1/mcaptcha/update/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::update - Rust

Module mcaptcha::api::v1::mcaptcha::update

source ·

Modules

Structs

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::update - Rust

Module mcaptcha::api::v1::mcaptcha::update

source ·

Modules

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/runner/fn.update_captcha.html b/mcaptcha/api/v1/mcaptcha/update/runner/fn.update_captcha.html index 29387abd..5d552e83 100644 --- a/mcaptcha/api/v1/mcaptcha/update/runner/fn.update_captcha.html +++ b/mcaptcha/api/v1/mcaptcha/update/runner/fn.update_captcha.html @@ -1 +1,5 @@ -update_captcha in mcaptcha::api::v1::mcaptcha::update::runner - Rust
pub async fn update_captcha(
    payload: &UpdateCaptcha,
    data: &AppData,
    username: &str
) -> Result<(), ServiceError>
\ No newline at end of file +update_captcha in mcaptcha::api::v1::mcaptcha::update::runner - Rust
pub async fn update_captcha(
+    payload: &UpdateCaptcha,
+    data: &AppData,
+    username: &str
+) -> Result<(), ServiceError>
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/runner/index.html b/mcaptcha/api/v1/mcaptcha/update/runner/index.html index 878f0d33..03a0af56 100644 --- a/mcaptcha/api/v1/mcaptcha/update/runner/index.html +++ b/mcaptcha/api/v1/mcaptcha/update/runner/index.html @@ -1 +1 @@ -mcaptcha::api::v1::mcaptcha::update::runner - Rust

Module mcaptcha::api::v1::mcaptcha::update::runner

source ·

Functions

\ No newline at end of file +mcaptcha::api::v1::mcaptcha::update::runner - Rust

Module mcaptcha::api::v1::mcaptcha::update::runner

source ·

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/runner/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/update/runner/sidebar-items.js index 76492d85..9f72d07f 100644 --- a/mcaptcha/api/v1/mcaptcha/update/runner/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/update/runner/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["update_captcha",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["update_captcha"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/sidebar-items.js b/mcaptcha/api/v1/mcaptcha/update/sidebar-items.js index 639b998a..f045eb3d 100644 --- a/mcaptcha/api/v1/mcaptcha/update/sidebar-items.js +++ b/mcaptcha/api/v1/mcaptcha/update/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"mod":[["runner",""]],"struct":[["UpdateCaptcha",""],["update_captcha",""],["update_key",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["update_captcha","update_key"],"mod":["runner"],"struct":["UpdateCaptcha","__FieldVisitor","__Visitor","update_captcha","update_key"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/struct.UpdateCaptcha.html b/mcaptcha/api/v1/mcaptcha/update/struct.UpdateCaptcha.html index 461bd9cf..648facb6 100644 --- a/mcaptcha/api/v1/mcaptcha/update/struct.UpdateCaptcha.html +++ b/mcaptcha/api/v1/mcaptcha/update/struct.UpdateCaptcha.html @@ -1,14 +1,25 @@ -UpdateCaptcha in mcaptcha::api::v1::mcaptcha::update - Rust
pub struct UpdateCaptcha {
-    pub levels: Vec<Level>,
-    pub duration: u32,
-    pub description: String,
-    pub key: String,
-}

Fields§

§levels: Vec<Level>§duration: u32§description: String§key: String

Trait Implementations§

Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+UpdateCaptcha in mcaptcha::api::v1::mcaptcha::update - Rust
pub struct UpdateCaptcha {
+    pub levels: Vec<Level>,
+    pub duration: u32,
+    pub description: String,
+    pub key: String,
+}

Fields§

§levels: Vec<Level>§duration: u32§description: String§key: String

Trait Implementations§

source§

impl<'de> Deserialize<'de> for UpdateCaptcha

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 Serialize for UpdateCaptcha

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/struct.__FieldVisitor.html b/mcaptcha/api/v1/mcaptcha/update/struct.__FieldVisitor.html new file mode 100644 index 00000000..32f0278d --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/update/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::mcaptcha::update - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/struct.__Visitor.html b/mcaptcha/api/v1/mcaptcha/update/struct.__Visitor.html new file mode 100644 index 00000000..c3af8293 --- /dev/null +++ b/mcaptcha/api/v1/mcaptcha/update/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::mcaptcha::update - Rust
struct __Visitor<'de> {
+    marker: PhantomData<UpdateCaptcha>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<UpdateCaptcha>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = UpdateCaptcha

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/struct.update_captcha.html b/mcaptcha/api/v1/mcaptcha/update/struct.update_captcha.html index 3d3b11c6..c4bb5176 100644 --- a/mcaptcha/api/v1/mcaptcha/update/struct.update_captcha.html +++ b/mcaptcha/api/v1/mcaptcha/update/struct.update_captcha.html @@ -1,9 +1,17 @@ -update_captcha in mcaptcha::api::v1::mcaptcha::update - Rust
pub struct update_captcha;

Trait Implementations§

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).

+update_captcha in mcaptcha::api::v1::mcaptcha::update - Rust
pub struct update_captcha;

Trait Implementations§

source§

impl HttpServiceFactory for update_captcha

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/mcaptcha/update/struct.update_key.html b/mcaptcha/api/v1/mcaptcha/update/struct.update_key.html index ece017fe..28143337 100644 --- a/mcaptcha/api/v1/mcaptcha/update/struct.update_key.html +++ b/mcaptcha/api/v1/mcaptcha/update/struct.update_key.html @@ -1,9 +1,17 @@ -update_key in mcaptcha::api::v1::mcaptcha::update - Rust
pub struct update_key;

Trait Implementations§

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).

+update_key in mcaptcha::api::v1::mcaptcha::update - Rust
pub struct update_key;

Trait Implementations§

source§

impl HttpServiceFactory for update_key

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/constant.FIELDS.html b/mcaptcha/api/v1/meta/constant.FIELDS.html new file mode 100644 index 00000000..e985c154 --- /dev/null +++ b/mcaptcha/api/v1/meta/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::meta - Rust

Constant mcaptcha::api::v1::meta::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/enum.BuildDetailsBuilderError.html b/mcaptcha/api/v1/meta/enum.BuildDetailsBuilderError.html index 3624f403..b77f96e5 100644 --- a/mcaptcha/api/v1/meta/enum.BuildDetailsBuilderError.html +++ b/mcaptcha/api/v1/meta/enum.BuildDetailsBuilderError.html @@ -1,17 +1,27 @@ -BuildDetailsBuilderError in mcaptcha::api::v1::meta - Rust
#[non_exhaustive]
+BuildDetailsBuilderError in mcaptcha::api::v1::meta - Rust
#[non_exhaustive]
 pub enum BuildDetailsBuilderError {
-    UninitializedField(&'static str),
-    ValidationError(String),
-}
Expand description

Error type for BuildDetailsBuilder

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UninitializedField(&'static str)

Uninitialized field

-
§

ValidationError(String)

Custom validation error

-

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.

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).

+ UninitializedField(&'static str), + ValidationError(String), +}
Expand description

Error type for BuildDetailsBuilder

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UninitializedField(&'static str)

Uninitialized field

+
§

ValidationError(String)

Custom validation error

+

Trait Implementations§

source§

impl Debug for BuildDetailsBuilderError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BuildDetailsBuilderError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for BuildDetailsBuilderError

1.30.0 · 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, demand: &mut Demand<'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<String> for BuildDetailsBuilderError

source§

fn from(s: String) -> Self

Converts to this type from the input type.
source§

impl From<UninitializedFieldError> for BuildDetailsBuilderError

source§

fn from(s: UninitializedFieldError) -> 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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/enum.HealthBuilderError.html b/mcaptcha/api/v1/meta/enum.HealthBuilderError.html index 84026400..94711960 100644 --- a/mcaptcha/api/v1/meta/enum.HealthBuilderError.html +++ b/mcaptcha/api/v1/meta/enum.HealthBuilderError.html @@ -1,17 +1,27 @@ -HealthBuilderError in mcaptcha::api::v1::meta - Rust
#[non_exhaustive]
+HealthBuilderError in mcaptcha::api::v1::meta - Rust
#[non_exhaustive]
 pub enum HealthBuilderError {
-    UninitializedField(&'static str),
-    ValidationError(String),
-}
Expand description

Error type for HealthBuilder

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UninitializedField(&'static str)

Uninitialized field

-
§

ValidationError(String)

Custom validation error

-

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.

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).

+ UninitializedField(&'static str), + ValidationError(String), +}
Expand description

Error type for HealthBuilder

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UninitializedField(&'static str)

Uninitialized field

+
§

ValidationError(String)

Custom validation error

+

Trait Implementations§

source§

impl Debug for HealthBuilderError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for HealthBuilderError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for HealthBuilderError

1.30.0 · 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, demand: &mut Demand<'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<String> for HealthBuilderError

source§

fn from(s: String) -> Self

Converts to this type from the input type.
source§

impl From<UninitializedFieldError> for HealthBuilderError

source§

fn from(s: UninitializedFieldError) -> 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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/enum.__Field.html b/mcaptcha/api/v1/meta/enum.__Field.html new file mode 100644 index 00000000..d3c72b7e --- /dev/null +++ b/mcaptcha/api/v1/meta/enum.__Field.html @@ -0,0 +1,23 @@ +__Field in mcaptcha::api::v1::meta - Rust

Enum mcaptcha::api::v1::meta::__Field

source ·
enum __Field {
+    __field0,
+    __field1,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/fn.build_details.html b/mcaptcha/api/v1/meta/fn.build_details.html new file mode 100644 index 00000000..f866a321 --- /dev/null +++ b/mcaptcha/api/v1/meta/fn.build_details.html @@ -0,0 +1,2 @@ +build_details in mcaptcha::api::v1::meta - Rust

Function mcaptcha::api::v1::meta::build_details

source ·
async fn build_details() -> impl Responder
Expand description

emits build details of the bninary

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/fn.health.html b/mcaptcha/api/v1/meta/fn.health.html new file mode 100644 index 00000000..7fecd155 --- /dev/null +++ b/mcaptcha/api/v1/meta/fn.health.html @@ -0,0 +1,2 @@ +health in mcaptcha::api::v1::meta - Rust

Function mcaptcha::api::v1::meta::health

source ·
async fn health(data: AppData) -> impl Responder
Expand description

checks all components of the system

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/fn.services.html b/mcaptcha/api/v1/meta/fn.services.html index aab67c44..fca4fbe1 100644 --- a/mcaptcha/api/v1/meta/fn.services.html +++ b/mcaptcha/api/v1/meta/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::meta - Rust

Function mcaptcha::api::v1::meta::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::meta - Rust

Function mcaptcha::api::v1::meta::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/index.html b/mcaptcha/api/v1/meta/index.html index 2bc9ad9e..53597ca5 100644 --- a/mcaptcha/api/v1/meta/index.html +++ b/mcaptcha/api/v1/meta/index.html @@ -1 +1 @@ -mcaptcha::api::v1::meta - Rust

Module mcaptcha::api::v1::meta

source ·

Modules

Structs

Health check return datatype
Builder for Health.
emits build details of the bninary
checks all components of the system

Enums

Error type for BuildDetailsBuilder
Error type for HealthBuilder

Functions

\ No newline at end of file +mcaptcha::api::v1::meta - Rust

Module mcaptcha::api::v1::meta

source ·

Modules

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/routes/index.html b/mcaptcha/api/v1/meta/routes/index.html index f23bdfda..bd206cb2 100644 --- a/mcaptcha/api/v1/meta/routes/index.html +++ b/mcaptcha/api/v1/meta/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::meta::routes - Rust

Module mcaptcha::api::v1::meta::routes

source ·

Structs

\ No newline at end of file +mcaptcha::api::v1::meta::routes - Rust

Module mcaptcha::api::v1::meta::routes

source ·

Structs

\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/routes/sidebar-items.js b/mcaptcha/api/v1/meta/routes/sidebar-items.js index e777ce8e..d5a98d5b 100644 --- a/mcaptcha/api/v1/meta/routes/sidebar-items.js +++ b/mcaptcha/api/v1/meta/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Meta",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Meta"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/meta/routes/struct.Meta.html b/mcaptcha/api/v1/meta/routes/struct.Meta.html index 63777d1f..e8219081 100644 --- a/mcaptcha/api/v1/meta/routes/struct.Meta.html +++ b/mcaptcha/api/v1/meta/routes/struct.Meta.html @@ -1,12 +1,20 @@ -Meta in mcaptcha::api::v1::meta::routes - Rust

Struct mcaptcha::api::v1::meta::routes::Meta

source ·
pub struct Meta {
-    pub build_details: &'static str,
-    pub health: &'static str,
-}

Fields§

§build_details: &'static str§health: &'static str

Implementations§

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).

+Meta in mcaptcha::api::v1::meta::routes - Rust

Struct mcaptcha::api::v1::meta::routes::Meta

source ·
pub struct Meta {
+    pub build_details: &'static str,
+    pub health: &'static str,
+}

Fields§

§build_details: &'static str§health: &'static str

Implementations§

source§

impl Meta

source

pub const fn new() -> Self

Auto Trait Implementations§

§

impl RefUnwindSafe for Meta

§

impl Send for Meta

§

impl Sync for Meta

§

impl Unpin for Meta

§

impl UnwindSafe for Meta

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/sidebar-items.js b/mcaptcha/api/v1/meta/sidebar-items.js index 71166e90..cb5f6146 100644 --- a/mcaptcha/api/v1/meta/sidebar-items.js +++ b/mcaptcha/api/v1/meta/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["BuildDetailsBuilderError","Error type for BuildDetailsBuilder"],["HealthBuilderError","Error type for HealthBuilder"]],"fn":[["services",""]],"mod":[["routes",""]],"struct":[["BuildDetails",""],["BuildDetailsBuilder","Builder for `BuildDetails`."],["Health","Health check return datatype"],["HealthBuilder","Builder for `Health`."],["build_details","emits build details of the bninary"],["health","checks all components of the system"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["BuildDetailsBuilderError","HealthBuilderError","__Field"],"fn":["build_details","health","services"],"mod":["routes"],"struct":["BuildDetails","BuildDetailsBuilder","Health","HealthBuilder","__FieldVisitor","__Visitor","build_details","health"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/meta/struct.BuildDetails.html b/mcaptcha/api/v1/meta/struct.BuildDetails.html index 9039a5c8..a2a6d77f 100644 --- a/mcaptcha/api/v1/meta/struct.BuildDetails.html +++ b/mcaptcha/api/v1/meta/struct.BuildDetails.html @@ -1,12 +1,23 @@ -BuildDetails in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::BuildDetails

source ·
pub struct BuildDetails {
-    pub version: &'static str,
-    pub git_commit_hash: &'static str,
-}

Fields§

§version: &'static str§git_commit_hash: &'static str

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+BuildDetails in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::BuildDetails

source ·
pub struct BuildDetails {
+    pub version: &'static str,
+    pub git_commit_hash: &'static str,
+}

Fields§

§version: &'static str§git_commit_hash: &'static str

Trait Implementations§

source§

impl Clone for BuildDetails

source§

fn clone(&self) -> BuildDetails

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 BuildDetails

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deserialize<'static> for BuildDetails

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'static>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for BuildDetails

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/struct.BuildDetailsBuilder.html b/mcaptcha/api/v1/meta/struct.BuildDetailsBuilder.html index db5c5d97..ad9098c2 100644 --- a/mcaptcha/api/v1/meta/struct.BuildDetailsBuilder.html +++ b/mcaptcha/api/v1/meta/struct.BuildDetailsBuilder.html @@ -1,17 +1,26 @@ -BuildDetailsBuilder in mcaptcha::api::v1::meta - Rust
pub struct BuildDetailsBuilder {
-    version: Option<&'static str>,
-    git_commit_hash: Option<&'static str>,
-}
Expand description

Builder for BuildDetails.

-

Fields§

§version: Option<&'static str>§git_commit_hash: Option<&'static str>

Implementations§

Builds a new BuildDetails.

+BuildDetailsBuilder in mcaptcha::api::v1::meta - Rust
pub struct BuildDetailsBuilder {
+    version: Option<&'static str>,
+    git_commit_hash: Option<&'static str>,
+}
Expand description

Builder for BuildDetails.

+

Fields§

§version: Option<&'static str>§git_commit_hash: Option<&'static str>

Implementations§

source§

impl BuildDetailsBuilder

source

pub fn version(&mut self, value: &'static str) -> &mut Self

source

pub fn git_commit_hash(&mut self, value: &'static str) -> &mut Self

source

pub fn build(&self) -> Result<BuildDetails, BuildDetailsBuilderError>

Builds a new BuildDetails.

Errors

If a required field has not been initialized.

-

Create an empty builder, with all fields set to None or PhantomData.

-

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

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).

+
source

fn create_empty() -> Self

Create an empty builder, with all fields set to None or PhantomData.

+

Trait Implementations§

source§

impl Clone for BuildDetailsBuilder

source§

fn clone(&self) -> BuildDetailsBuilder

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 BuildDetailsBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/struct.Health.html b/mcaptcha/api/v1/meta/struct.Health.html index 79acd192..526c357a 100644 --- a/mcaptcha/api/v1/meta/struct.Health.html +++ b/mcaptcha/api/v1/meta/struct.Health.html @@ -1,13 +1,25 @@ -Health in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::Health

source ·
pub struct Health {
-    db: bool,
-    redis: Option<bool>,
-}
Expand description

Health check return datatype

-

Fields§

§db: bool§redis: Option<bool>

Implementations§

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+Health in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::Health

source ·
pub struct Health {
+    db: bool,
+    redis: Option<bool>,
+}
Expand description

Health check return datatype

+

Fields§

§db: bool§redis: Option<bool>

Implementations§

Trait Implementations§

source§

impl Clone for Health

source§

fn clone(&self) -> Health

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 Health

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Health

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 Serialize for Health

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/struct.HealthBuilder.html b/mcaptcha/api/v1/meta/struct.HealthBuilder.html index baf74066..70a4c7a7 100644 --- a/mcaptcha/api/v1/meta/struct.HealthBuilder.html +++ b/mcaptcha/api/v1/meta/struct.HealthBuilder.html @@ -1,17 +1,26 @@ -HealthBuilder in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::HealthBuilder

source ·
pub struct HealthBuilder {
-    db: Option<bool>,
-    redis: Option<Option<bool>>,
-}
Expand description

Builder for Health.

-

Fields§

§db: Option<bool>§redis: Option<Option<bool>>

Implementations§

Builds a new Health.

+HealthBuilder in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::HealthBuilder

source ·
pub struct HealthBuilder {
+    db: Option<bool>,
+    redis: Option<Option<bool>>,
+}
Expand description

Builder for Health.

+

Fields§

§db: Option<bool>§redis: Option<Option<bool>>

Implementations§

source§

impl HealthBuilder

source

pub fn db(&mut self, value: bool) -> &mut Self

source

pub fn redis(&mut self, value: Option<bool>) -> &mut Self

source

pub fn build(&self) -> Result<Health, HealthBuilderError>

Builds a new Health.

Errors

If a required field has not been initialized.

-

Create an empty builder, with all fields set to None or PhantomData.

-

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

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).

+
source

fn create_empty() -> Self

Create an empty builder, with all fields set to None or PhantomData.

+

Trait Implementations§

source§

impl Clone for HealthBuilder

source§

fn clone(&self) -> HealthBuilder

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 HealthBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/struct.__FieldVisitor.html b/mcaptcha/api/v1/meta/struct.__FieldVisitor.html new file mode 100644 index 00000000..ff9c9cce --- /dev/null +++ b/mcaptcha/api/v1/meta/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::meta - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/struct.__Visitor.html b/mcaptcha/api/v1/meta/struct.__Visitor.html new file mode 100644 index 00000000..663fed3d --- /dev/null +++ b/mcaptcha/api/v1/meta/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::__Visitor

source ·
struct __Visitor {
+    marker: PhantomData<BuildDetails>,
+    lifetime: PhantomData<&'static ()>,
+}

Fields§

§marker: PhantomData<BuildDetails>§lifetime: PhantomData<&'static ()>

Trait Implementations§

source§

impl Visitor<'static> for __Visitor

§

type Value = BuildDetails

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'static>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'static>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/struct.build_details.html b/mcaptcha/api/v1/meta/struct.build_details.html index 6bcd1544..8d8e0b09 100644 --- a/mcaptcha/api/v1/meta/struct.build_details.html +++ b/mcaptcha/api/v1/meta/struct.build_details.html @@ -1,10 +1,18 @@ -build_details in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::build_details

source ·
pub struct build_details;
Expand description

emits build details of the bninary

-

Trait Implementations§

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).

+build_details in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::build_details

source ·
pub struct build_details;
Expand description

emits build details of the bninary

+

Trait Implementations§

source§

impl HttpServiceFactory for build_details

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/meta/struct.health.html b/mcaptcha/api/v1/meta/struct.health.html index 8b4abc8c..c5e2dfac 100644 --- a/mcaptcha/api/v1/meta/struct.health.html +++ b/mcaptcha/api/v1/meta/struct.health.html @@ -1,10 +1,18 @@ -health in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::health

source ·
pub struct health;
Expand description

checks all components of the system

-

Trait Implementations§

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).

+health in mcaptcha::api::v1::meta - Rust

Struct mcaptcha::api::v1::meta::health

source ·
pub struct health;
Expand description

checks all components of the system

+

Trait Implementations§

source§

impl HttpServiceFactory for health

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/constant.FIELDS.html b/mcaptcha/api/v1/notifications/add/constant.FIELDS.html new file mode 100644 index 00000000..3b8a464d --- /dev/null +++ b/mcaptcha/api/v1/notifications/add/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::notifications::add - Rust

Constant mcaptcha::api::v1::notifications::add::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/enum.__Field.html b/mcaptcha/api/v1/notifications/add/enum.__Field.html new file mode 100644 index 00000000..35345fcc --- /dev/null +++ b/mcaptcha/api/v1/notifications/add/enum.__Field.html @@ -0,0 +1,24 @@ +__Field in mcaptcha::api::v1::notifications::add - Rust
enum __Field {
+    __field0,
+    __field1,
+    __field2,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__field2

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/fn.add_notification.html b/mcaptcha/api/v1/notifications/add/fn.add_notification.html new file mode 100644 index 00000000..b28f604b --- /dev/null +++ b/mcaptcha/api/v1/notifications/add/fn.add_notification.html @@ -0,0 +1,6 @@ +add_notification in mcaptcha::api::v1::notifications::add - Rust
pub async fn add_notification(
+    payload: Json<AddNotificationRequest>,
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
Expand description

route handler that adds a notification message

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/index.html b/mcaptcha/api/v1/notifications/add/index.html index a5126589..3bb7cc12 100644 --- a/mcaptcha/api/v1/notifications/add/index.html +++ b/mcaptcha/api/v1/notifications/add/index.html @@ -1 +1 @@ -mcaptcha::api::v1::notifications::add - Rust

Module mcaptcha::api::v1::notifications::add

source ·

Structs

route handler that adds a notification message
\ No newline at end of file +mcaptcha::api::v1::notifications::add - Rust

Module mcaptcha::api::v1::notifications::add

source ·

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/sidebar-items.js b/mcaptcha/api/v1/notifications/add/sidebar-items.js index 1b681a6e..af899e46 100644 --- a/mcaptcha/api/v1/notifications/add/sidebar-items.js +++ b/mcaptcha/api/v1/notifications/add/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["AddNotificationRequest",""],["add_notification","route handler that adds a notification message"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["add_notification"],"struct":["AddNotificationRequest","__FieldVisitor","__Visitor","add_notification"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/struct.AddNotificationRequest.html b/mcaptcha/api/v1/notifications/add/struct.AddNotificationRequest.html index 11f5cb07..b4cbc147 100644 --- a/mcaptcha/api/v1/notifications/add/struct.AddNotificationRequest.html +++ b/mcaptcha/api/v1/notifications/add/struct.AddNotificationRequest.html @@ -1,15 +1,27 @@ -AddNotificationRequest in mcaptcha::api::v1::notifications::add - Rust
pub struct AddNotificationRequest {
-    pub to: String,
-    pub heading: String,
-    pub message: String,
-}

Fields§

§to: String§heading: String§message: String

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
This method tests for self and other values to be equal, and is used -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+AddNotificationRequest in mcaptcha::api::v1::notifications::add - Rust
pub struct AddNotificationRequest {
+    pub to: String,
+    pub heading: String,
+    pub message: String,
+}

Fields§

§to: String§heading: String§message: String

Trait Implementations§

source§

impl Clone for AddNotificationRequest

source§

fn clone(&self) -> AddNotificationRequest

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 AddNotificationRequest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for AddNotificationRequest

source§

fn default() -> AddNotificationRequest

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AddNotificationRequest

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 PartialEq<AddNotificationRequest> for AddNotificationRequest

source§

fn eq(&self, other: &AddNotificationRequest) -> 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 AddNotificationRequest

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 AddNotificationRequest

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/struct.__FieldVisitor.html b/mcaptcha/api/v1/notifications/add/struct.__FieldVisitor.html new file mode 100644 index 00000000..01cb7a87 --- /dev/null +++ b/mcaptcha/api/v1/notifications/add/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::notifications::add - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/struct.__Visitor.html b/mcaptcha/api/v1/notifications/add/struct.__Visitor.html new file mode 100644 index 00000000..3116f99f --- /dev/null +++ b/mcaptcha/api/v1/notifications/add/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::notifications::add - Rust
struct __Visitor<'de> {
+    marker: PhantomData<AddNotificationRequest>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<AddNotificationRequest>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = AddNotificationRequest

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/add/struct.add_notification.html b/mcaptcha/api/v1/notifications/add/struct.add_notification.html index 74fc221b..d04c3902 100644 --- a/mcaptcha/api/v1/notifications/add/struct.add_notification.html +++ b/mcaptcha/api/v1/notifications/add/struct.add_notification.html @@ -1,10 +1,18 @@ -add_notification in mcaptcha::api::v1::notifications::add - Rust
pub struct add_notification;
Expand description

route handler that adds a notification message

-

Trait Implementations§

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).

+add_notification in mcaptcha::api::v1::notifications::add - Rust
pub struct add_notification;
Expand description

route handler that adds a notification message

+

Trait Implementations§

source§

impl HttpServiceFactory for add_notification

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/fn.services.html b/mcaptcha/api/v1/notifications/fn.services.html index aaa3d63f..c4b646f6 100644 --- a/mcaptcha/api/v1/notifications/fn.services.html +++ b/mcaptcha/api/v1/notifications/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::notifications - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::notifications - Rust
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/constant.FIELDS.html b/mcaptcha/api/v1/notifications/get/constant.FIELDS.html new file mode 100644 index 00000000..cd80776e --- /dev/null +++ b/mcaptcha/api/v1/notifications/get/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::notifications::get - Rust

Constant mcaptcha::api::v1::notifications::get::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/enum.__Field.html b/mcaptcha/api/v1/notifications/get/enum.__Field.html new file mode 100644 index 00000000..50f4225a --- /dev/null +++ b/mcaptcha/api/v1/notifications/get/enum.__Field.html @@ -0,0 +1,26 @@ +__Field in mcaptcha::api::v1::notifications::get - Rust
enum __Field {
+    __field0,
+    __field1,
+    __field2,
+    __field3,
+    __field4,
+    __ignore,
+}

Variants§

§

__field0

§

__field1

§

__field2

§

__field3

§

__field4

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/fn.get_notification.html b/mcaptcha/api/v1/notifications/get/fn.get_notification.html new file mode 100644 index 00000000..f2f51133 --- /dev/null +++ b/mcaptcha/api/v1/notifications/get/fn.get_notification.html @@ -0,0 +1,5 @@ +get_notification in mcaptcha::api::v1::notifications::get - Rust
pub async fn get_notification(
+    data: AppData,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
Expand description

route handler that gets all unread notifications

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/index.html b/mcaptcha/api/v1/notifications/get/index.html index 7c2e8a2a..0f80d499 100644 --- a/mcaptcha/api/v1/notifications/get/index.html +++ b/mcaptcha/api/v1/notifications/get/index.html @@ -1 +1 @@ -mcaptcha::api::v1::notifications::get - Rust

Module mcaptcha::api::v1::notifications::get

source ·

Structs

route handler that gets all unread notifications
\ No newline at end of file +mcaptcha::api::v1::notifications::get - Rust

Module mcaptcha::api::v1::notifications::get

source ·

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/sidebar-items.js b/mcaptcha/api/v1/notifications/get/sidebar-items.js index 56d6d836..89612947 100644 --- a/mcaptcha/api/v1/notifications/get/sidebar-items.js +++ b/mcaptcha/api/v1/notifications/get/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["NotificationResp",""],["get_notification","route handler that gets all unread notifications"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["get_notification"],"struct":["NotificationResp","__FieldVisitor","__Visitor","get_notification"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html b/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html index d9ac2869..3476d090 100644 --- a/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html +++ b/mcaptcha/api/v1/notifications/get/struct.NotificationResp.html @@ -1,17 +1,29 @@ -NotificationResp in mcaptcha::api::v1::notifications::get - Rust
pub struct NotificationResp {
-    pub name: String,
-    pub heading: String,
-    pub message: String,
-    pub received: i64,
-    pub id: i32,
-}

Fields§

§name: String§heading: String§message: String§received: i64§id: 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 ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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).

+NotificationResp in mcaptcha::api::v1::notifications::get - Rust
pub struct NotificationResp {
+    pub name: String,
+    pub heading: String,
+    pub message: String,
+    pub received: i64,
+    pub id: i32,
+}

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 + 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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/struct.__FieldVisitor.html b/mcaptcha/api/v1/notifications/get/struct.__FieldVisitor.html new file mode 100644 index 00000000..c07a12ee --- /dev/null +++ b/mcaptcha/api/v1/notifications/get/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::notifications::get - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/struct.__Visitor.html b/mcaptcha/api/v1/notifications/get/struct.__Visitor.html new file mode 100644 index 00000000..0cfd27d8 --- /dev/null +++ b/mcaptcha/api/v1/notifications/get/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::notifications::get - Rust
struct __Visitor<'de> {
+    marker: PhantomData<NotificationResp>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<NotificationResp>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = NotificationResp

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/get/struct.get_notification.html b/mcaptcha/api/v1/notifications/get/struct.get_notification.html index f52442ec..1cea7fa5 100644 --- a/mcaptcha/api/v1/notifications/get/struct.get_notification.html +++ b/mcaptcha/api/v1/notifications/get/struct.get_notification.html @@ -1,10 +1,18 @@ -get_notification in mcaptcha::api::v1::notifications::get - Rust
pub struct get_notification;
Expand description

route handler that gets all unread notifications

-

Trait Implementations§

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).

+get_notification in mcaptcha::api::v1::notifications::get - Rust
pub struct get_notification;
Expand description

route handler that gets all unread notifications

+

Trait Implementations§

source§

impl HttpServiceFactory for get_notification

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/index.html b/mcaptcha/api/v1/notifications/index.html index 880a25f8..90dc97f7 100644 --- a/mcaptcha/api/v1/notifications/index.html +++ b/mcaptcha/api/v1/notifications/index.html @@ -1 +1 @@ -mcaptcha::api::v1::notifications - Rust

Module mcaptcha::api::v1::notifications

source ·

Modules

Functions

\ No newline at end of file +mcaptcha::api::v1::notifications - Rust

Module mcaptcha::api::v1::notifications

source ·

Modules

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/constant.FIELDS.html b/mcaptcha/api/v1/notifications/mark_read/constant.FIELDS.html new file mode 100644 index 00000000..e33cff6d --- /dev/null +++ b/mcaptcha/api/v1/notifications/mark_read/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::notifications::mark_read - Rust
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/enum.__Field.html b/mcaptcha/api/v1/notifications/mark_read/enum.__Field.html new file mode 100644 index 00000000..3a331667 --- /dev/null +++ b/mcaptcha/api/v1/notifications/mark_read/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::notifications::mark_read - Rust
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/fn.mark_read.html b/mcaptcha/api/v1/notifications/mark_read/fn.mark_read.html new file mode 100644 index 00000000..18ae2adc --- /dev/null +++ b/mcaptcha/api/v1/notifications/mark_read/fn.mark_read.html @@ -0,0 +1,6 @@ +mark_read in mcaptcha::api::v1::notifications::mark_read - Rust
pub async fn mark_read(
+    data: AppData,
+    payload: Json<MarkReadReq>,
+    id: Identity
+) -> Result<impl Responder, ServiceError>
Expand description

route handler that marks a notification read

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/index.html b/mcaptcha/api/v1/notifications/mark_read/index.html index 59920f4d..79991edb 100644 --- a/mcaptcha/api/v1/notifications/mark_read/index.html +++ b/mcaptcha/api/v1/notifications/mark_read/index.html @@ -1 +1 @@ -mcaptcha::api::v1::notifications::mark_read - Rust

Structs

route handler that marks a notification read
\ No newline at end of file +mcaptcha::api::v1::notifications::mark_read - Rust

Structs

Enums

Constants

Functions

  • route handler that marks a notification read
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/sidebar-items.js b/mcaptcha/api/v1/notifications/mark_read/sidebar-items.js index a1f55bc1..5462cfc6 100644 --- a/mcaptcha/api/v1/notifications/mark_read/sidebar-items.js +++ b/mcaptcha/api/v1/notifications/mark_read/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["MarkReadReq",""],["mark_read","route handler that marks a notification read"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["mark_read"],"struct":["MarkReadReq","__FieldVisitor","__Visitor","mark_read"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/struct.MarkReadReq.html b/mcaptcha/api/v1/notifications/mark_read/struct.MarkReadReq.html index 1415a303..f058ce7d 100644 --- a/mcaptcha/api/v1/notifications/mark_read/struct.MarkReadReq.html +++ b/mcaptcha/api/v1/notifications/mark_read/struct.MarkReadReq.html @@ -1,11 +1,22 @@ -MarkReadReq in mcaptcha::api::v1::notifications::mark_read - Rust
pub struct MarkReadReq {
-    pub id: i32,
-}

Fields§

§id: i32

Trait Implementations§

Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+MarkReadReq in mcaptcha::api::v1::notifications::mark_read - Rust
pub struct MarkReadReq {
+    pub id: i32,
+}

Fields§

§id: i32

Trait Implementations§

source§

impl<'de> Deserialize<'de> for MarkReadReq

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 Serialize for MarkReadReq

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/struct.__FieldVisitor.html b/mcaptcha/api/v1/notifications/mark_read/struct.__FieldVisitor.html new file mode 100644 index 00000000..f5ef0cd0 --- /dev/null +++ b/mcaptcha/api/v1/notifications/mark_read/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::notifications::mark_read - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/struct.__Visitor.html b/mcaptcha/api/v1/notifications/mark_read/struct.__Visitor.html new file mode 100644 index 00000000..7a8a99e3 --- /dev/null +++ b/mcaptcha/api/v1/notifications/mark_read/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::notifications::mark_read - Rust
struct __Visitor<'de> {
+    marker: PhantomData<MarkReadReq>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<MarkReadReq>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = MarkReadReq

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/mark_read/struct.mark_read.html b/mcaptcha/api/v1/notifications/mark_read/struct.mark_read.html index a7ce2db7..fa2e0306 100644 --- a/mcaptcha/api/v1/notifications/mark_read/struct.mark_read.html +++ b/mcaptcha/api/v1/notifications/mark_read/struct.mark_read.html @@ -1,10 +1,18 @@ -mark_read in mcaptcha::api::v1::notifications::mark_read - Rust
pub struct mark_read;
Expand description

route handler that marks a notification read

-

Trait Implementations§

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).

+mark_read in mcaptcha::api::v1::notifications::mark_read - Rust
pub struct mark_read;
Expand description

route handler that marks a notification read

+

Trait Implementations§

source§

impl HttpServiceFactory for mark_read

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/routes/index.html b/mcaptcha/api/v1/notifications/routes/index.html index 989ad5da..c51b9db4 100644 --- a/mcaptcha/api/v1/notifications/routes/index.html +++ b/mcaptcha/api/v1/notifications/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::notifications::routes - Rust

Structs

\ No newline at end of file +mcaptcha::api::v1::notifications::routes - Rust

Structs

\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/routes/sidebar-items.js b/mcaptcha/api/v1/notifications/routes/sidebar-items.js index 689bf166..499d6b12 100644 --- a/mcaptcha/api/v1/notifications/routes/sidebar-items.js +++ b/mcaptcha/api/v1/notifications/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Notifications",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Notifications"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/routes/struct.Notifications.html b/mcaptcha/api/v1/notifications/routes/struct.Notifications.html index d052ba16..b132e28d 100644 --- a/mcaptcha/api/v1/notifications/routes/struct.Notifications.html +++ b/mcaptcha/api/v1/notifications/routes/struct.Notifications.html @@ -1,13 +1,21 @@ -Notifications in mcaptcha::api::v1::notifications::routes - Rust
pub struct Notifications {
-    pub add: &'static str,
-    pub mark_read: &'static str,
-    pub get: &'static str,
-}

Fields§

§add: &'static str§mark_read: &'static str§get: &'static str

Implementations§

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).

+Notifications in mcaptcha::api::v1::notifications::routes - Rust
pub struct Notifications {
+    pub add: &'static str,
+    pub mark_read: &'static str,
+    pub get: &'static str,
+}

Fields§

§add: &'static str§mark_read: &'static str§get: &'static str

Implementations§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/notifications/sidebar-items.js b/mcaptcha/api/v1/notifications/sidebar-items.js index 9e078eca..88de688b 100644 --- a/mcaptcha/api/v1/notifications/sidebar-items.js +++ b/mcaptcha/api/v1/notifications/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["add",""],["get",""],["mark_read",""],["routes",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["services"],"mod":["add","get","mark_read","routes"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/pow/fn.services.html b/mcaptcha/api/v1/pow/fn.services.html index d976862f..4604ed5f 100644 --- a/mcaptcha/api/v1/pow/fn.services.html +++ b/mcaptcha/api/v1/pow/fn.services.html @@ -1 +1 @@ -services in mcaptcha::api::v1::pow - Rust

Function mcaptcha::api::v1::pow::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::api::v1::pow - Rust

Function mcaptcha::api::v1::pow::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/constant.FIELDS.html b/mcaptcha/api/v1/pow/get_config/constant.FIELDS.html new file mode 100644 index 00000000..a02c0cb5 --- /dev/null +++ b/mcaptcha/api/v1/pow/get_config/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::pow::get_config - Rust

Constant mcaptcha::api::v1::pow::get_config::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/enum.__Field.html b/mcaptcha/api/v1/pow/get_config/enum.__Field.html new file mode 100644 index 00000000..8a7e5e73 --- /dev/null +++ b/mcaptcha/api/v1/pow/get_config/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::pow::get_config - Rust
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/fn.get_config.html b/mcaptcha/api/v1/pow/get_config/fn.get_config.html new file mode 100644 index 00000000..94195fa6 --- /dev/null +++ b/mcaptcha/api/v1/pow/get_config/fn.get_config.html @@ -0,0 +1,5 @@ +get_config in mcaptcha::api::v1::pow::get_config - Rust

Function mcaptcha::api::v1::pow::get_config::get_config

source ·
pub async fn get_config(
+    payload: Json<GetConfigPayload>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
Expand description

get PoW configuration for an mcaptcha key

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/fn.init_mcaptcha.html b/mcaptcha/api/v1/pow/get_config/fn.init_mcaptcha.html index 60f9201e..98c2fce2 100644 --- a/mcaptcha/api/v1/pow/get_config/fn.init_mcaptcha.html +++ b/mcaptcha/api/v1/pow/get_config/fn.init_mcaptcha.html @@ -1,4 +1,4 @@ -init_mcaptcha in mcaptcha::api::v1::pow::get_config - Rust
pub async fn init_mcaptcha(data: &AppData, key: &str) -> Result<(), ServiceError>
Expand description

Call this when [MCaptcha][libmcaptcha::MCaptcha] is not in master.

+init_mcaptcha in mcaptcha::api::v1::pow::get_config - Rust
pub async fn init_mcaptcha(data: &AppData, key: &str) -> Result<(), ServiceError>
Expand description

Call this when [MCaptcha][libmcaptcha::MCaptcha] is not in master.

This fn gets mcaptcha config from database, builds [Defense][libmcaptcha::Defense], creates [MCaptcha][libmcaptcha::MCaptcha] and adds it to [Master][libmcaptcha::Defense]

-
\ No newline at end of file +
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/index.html b/mcaptcha/api/v1/pow/get_config/index.html index a8a6c82d..3edee6d1 100644 --- a/mcaptcha/api/v1/pow/get_config/index.html +++ b/mcaptcha/api/v1/pow/get_config/index.html @@ -1 +1 @@ -mcaptcha::api::v1::pow::get_config - Rust

Module mcaptcha::api::v1::pow::get_config

source ·

Structs

get PoW configuration for an mcaptcha key

Functions

Call this when [MCaptcha][libmcaptcha::MCaptcha] is not in master.
\ No newline at end of file +mcaptcha::api::v1::pow::get_config - Rust

Module mcaptcha::api::v1::pow::get_config

source ·

Structs

Enums

Constants

Functions

  • get PoW configuration for an mcaptcha key
  • Call this when [MCaptcha][libmcaptcha::MCaptcha] is not in master.
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/sidebar-items.js b/mcaptcha/api/v1/pow/get_config/sidebar-items.js index c461efbc..fd29625b 100644 --- a/mcaptcha/api/v1/pow/get_config/sidebar-items.js +++ b/mcaptcha/api/v1/pow/get_config/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["init_mcaptcha","Call this when [MCaptcha][libmcaptcha::MCaptcha] is not in master."]],"struct":[["GetConfigPayload",""],["get_config","get PoW configuration for an mcaptcha key"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["get_config","init_mcaptcha"],"struct":["GetConfigPayload","__FieldVisitor","__Visitor","get_config"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/struct.GetConfigPayload.html b/mcaptcha/api/v1/pow/get_config/struct.GetConfigPayload.html index 7a057b6b..c8eb071d 100644 --- a/mcaptcha/api/v1/pow/get_config/struct.GetConfigPayload.html +++ b/mcaptcha/api/v1/pow/get_config/struct.GetConfigPayload.html @@ -1,11 +1,23 @@ -GetConfigPayload in mcaptcha::api::v1::pow::get_config - Rust
pub struct GetConfigPayload {
-    pub key: String,
-}

Fields§

§key: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+GetConfigPayload in mcaptcha::api::v1::pow::get_config - Rust
pub struct GetConfigPayload {
+    pub key: String,
+}

Fields§

§key: String

Trait Implementations§

source§

impl Clone for GetConfigPayload

source§

fn clone(&self) -> GetConfigPayload

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 GetConfigPayload

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for GetConfigPayload

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 Serialize for GetConfigPayload

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/struct.__FieldVisitor.html b/mcaptcha/api/v1/pow/get_config/struct.__FieldVisitor.html new file mode 100644 index 00000000..d84697ed --- /dev/null +++ b/mcaptcha/api/v1/pow/get_config/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::pow::get_config - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/struct.__Visitor.html b/mcaptcha/api/v1/pow/get_config/struct.__Visitor.html new file mode 100644 index 00000000..43e65452 --- /dev/null +++ b/mcaptcha/api/v1/pow/get_config/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::pow::get_config - Rust
struct __Visitor<'de> {
+    marker: PhantomData<GetConfigPayload>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<GetConfigPayload>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = GetConfigPayload

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/get_config/struct.get_config.html b/mcaptcha/api/v1/pow/get_config/struct.get_config.html index ff0baa7c..670f919e 100644 --- a/mcaptcha/api/v1/pow/get_config/struct.get_config.html +++ b/mcaptcha/api/v1/pow/get_config/struct.get_config.html @@ -1,10 +1,18 @@ -get_config in mcaptcha::api::v1::pow::get_config - Rust
pub struct get_config;
Expand description

get PoW configuration for an mcaptcha key

-

Trait Implementations§

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).

+get_config in mcaptcha::api::v1::pow::get_config - Rust
pub struct get_config;
Expand description

get PoW configuration for an mcaptcha key

+

Trait Implementations§

source§

impl HttpServiceFactory for get_config

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/index.html b/mcaptcha/api/v1/pow/index.html index 91215aab..3b881fe8 100644 --- a/mcaptcha/api/v1/pow/index.html +++ b/mcaptcha/api/v1/pow/index.html @@ -1 +1 @@ -mcaptcha::api::v1::pow - Rust

Module mcaptcha::api::v1::pow

source ·

Re-exports

pub use super::mcaptcha::get::I32Levels;

Modules

PoW Verification module
PoW success token module

Functions

\ No newline at end of file +mcaptcha::api::v1::pow - Rust

Module mcaptcha::api::v1::pow

source ·

Re-exports

Modules

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/routes/index.html b/mcaptcha/api/v1/pow/routes/index.html index 728b4601..67def6e6 100644 --- a/mcaptcha/api/v1/pow/routes/index.html +++ b/mcaptcha/api/v1/pow/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::pow::routes - Rust

Module mcaptcha::api::v1::pow::routes

source ·

Macros

rm_scope 🔒

Structs

\ No newline at end of file +mcaptcha::api::v1::pow::routes - Rust

Module mcaptcha::api::v1::pow::routes

source ·

Macros

Structs

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/routes/macro.rm_scope.html b/mcaptcha/api/v1/pow/routes/macro.rm_scope.html index bdb90ff7..1c9332fd 100644 --- a/mcaptcha/api/v1/pow/routes/macro.rm_scope.html +++ b/mcaptcha/api/v1/pow/routes/macro.rm_scope.html @@ -1,4 +1,3 @@ -rm_scope in mcaptcha::api::v1::pow::routes - Rust

Macro mcaptcha::api::v1::pow::routes::rm_scope

source ·
macro_rules! rm_scope {
+rm_scope in mcaptcha::api::v1::pow::routes - Rust

Macro mcaptcha::api::v1::pow::routes::rm_scope

source ·
macro_rules! rm_scope {
     ($name:ident) => { ... };
-}
-
\ No newline at end of file +}
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/routes/sidebar-items.js b/mcaptcha/api/v1/pow/routes/sidebar-items.js index 67712a35..5de5bc03 100644 --- a/mcaptcha/api/v1/pow/routes/sidebar-items.js +++ b/mcaptcha/api/v1/pow/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"macro":[["rm_scope",""]],"struct":[["PoW",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"macro":["rm_scope"],"struct":["PoW"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/pow/routes/struct.PoW.html b/mcaptcha/api/v1/pow/routes/struct.PoW.html index a4e800b5..71950e97 100644 --- a/mcaptcha/api/v1/pow/routes/struct.PoW.html +++ b/mcaptcha/api/v1/pow/routes/struct.PoW.html @@ -1,17 +1,25 @@ -PoW in mcaptcha::api::v1::pow::routes - Rust

Struct mcaptcha::api::v1::pow::routes::PoW

source ·
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 str

Implementations§

remove scope for $name route

-

remove scope for $name route

-

remove scope for $name route

-

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).

+PoW in mcaptcha::api::v1::pow::routes - Rust

Struct mcaptcha::api::v1::pow::routes::PoW

source ·
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 str

Implementations§

source§

impl PoW

source

pub const fn new() -> Self

source

pub fn get_config(&self) -> &str

remove scope for $name route

+
source

pub fn verify_pow(&self) -> &str

remove scope for $name route

+
source

pub fn validate_captcha_token(&self) -> &str

remove scope for $name route

+

Auto Trait Implementations§

§

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> 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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/sidebar-items.js b/mcaptcha/api/v1/pow/sidebar-items.js index 4acee2f6..a49deab9 100644 --- a/mcaptcha/api/v1/pow/sidebar-items.js +++ b/mcaptcha/api/v1/pow/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["get_config",""],["routes",""],["verify_pow","PoW Verification module"],["verify_token","PoW success token module"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["services"],"mod":["get_config","routes","verify_pow","verify_token"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/constant.FIELDS.html b/mcaptcha/api/v1/pow/verify_pow/constant.FIELDS.html new file mode 100644 index 00000000..d0cde818 --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_pow/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::pow::verify_pow - Rust

Constant mcaptcha::api::v1::pow::verify_pow::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/enum.__Field.html b/mcaptcha/api/v1/pow/verify_pow/enum.__Field.html new file mode 100644 index 00000000..b0a0d72b --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_pow/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::pow::verify_pow - Rust
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/fn.verify_pow.html b/mcaptcha/api/v1/pow/verify_pow/fn.verify_pow.html new file mode 100644 index 00000000..396acf4b --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_pow/fn.verify_pow.html @@ -0,0 +1,7 @@ +verify_pow in mcaptcha::api::v1::pow::verify_pow - Rust

Function mcaptcha::api::v1::pow::verify_pow::verify_pow

source ·
pub async fn verify_pow(
+    req: HttpRequest,
+    payload: Json<Work>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
Expand description

route handler that verifies PoW and issues a solution token +if verification is successful

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/index.html b/mcaptcha/api/v1/pow/verify_pow/index.html index 047b30bf..fa6f6b03 100644 --- a/mcaptcha/api/v1/pow/verify_pow/index.html +++ b/mcaptcha/api/v1/pow/verify_pow/index.html @@ -1,4 +1,5 @@ -mcaptcha::api::v1::pow::verify_pow - Rust

Module mcaptcha::api::v1::pow::verify_pow

source ·
Expand description

PoW Verification module

-

Structs

validation token that clients receive as proof for submiting -valid PoW
route handler that verifies PoW and issues a solution token -if verification is successful
\ No newline at end of file +mcaptcha::api::v1::pow::verify_pow - Rust

Module mcaptcha::api::v1::pow::verify_pow

source ·
Expand description

PoW Verification module

+

Structs

Enums

Constants

Functions

  • route handler that verifies PoW and issues a solution token +if verification is successful
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/sidebar-items.js b/mcaptcha/api/v1/pow/verify_pow/sidebar-items.js index 1d0aa61d..20eeef2f 100644 --- a/mcaptcha/api/v1/pow/verify_pow/sidebar-items.js +++ b/mcaptcha/api/v1/pow/verify_pow/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["ValidationToken","validation token that clients receive as proof for submiting valid PoW"],["verify_pow","route handler that verifies PoW and issues a solution token if verification is successful"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["verify_pow"],"struct":["ValidationToken","__FieldVisitor","__Visitor","verify_pow"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/struct.ValidationToken.html b/mcaptcha/api/v1/pow/verify_pow/struct.ValidationToken.html index c75622c4..23a33957 100644 --- a/mcaptcha/api/v1/pow/verify_pow/struct.ValidationToken.html +++ b/mcaptcha/api/v1/pow/verify_pow/struct.ValidationToken.html @@ -1,13 +1,25 @@ -ValidationToken in mcaptcha::api::v1::pow::verify_pow - Rust
pub struct ValidationToken {
-    pub token: String,
-}
Expand description

validation token that clients receive as proof for submiting +ValidationToken in mcaptcha::api::v1::pow::verify_pow - Rust

pub struct ValidationToken {
+    pub token: String,
+}
Expand description

validation token that clients receive as proof for submiting valid PoW

-

Fields§

§token: String

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+

Fields§

§token: String

Trait Implementations§

source§

impl Clone for ValidationToken

source§

fn clone(&self) -> ValidationToken

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 ValidationToken

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ValidationToken

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 Serialize for ValidationToken

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/struct.__FieldVisitor.html b/mcaptcha/api/v1/pow/verify_pow/struct.__FieldVisitor.html new file mode 100644 index 00000000..b5d3bae3 --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_pow/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::pow::verify_pow - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/struct.__Visitor.html b/mcaptcha/api/v1/pow/verify_pow/struct.__Visitor.html new file mode 100644 index 00000000..01b2e3be --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_pow/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::pow::verify_pow - Rust
struct __Visitor<'de> {
+    marker: PhantomData<ValidationToken>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<ValidationToken>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = ValidationToken

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_pow/struct.verify_pow.html b/mcaptcha/api/v1/pow/verify_pow/struct.verify_pow.html index 5798a706..3a3f3e37 100644 --- a/mcaptcha/api/v1/pow/verify_pow/struct.verify_pow.html +++ b/mcaptcha/api/v1/pow/verify_pow/struct.verify_pow.html @@ -1,11 +1,19 @@ -verify_pow in mcaptcha::api::v1::pow::verify_pow - Rust
pub struct verify_pow;
Expand description

route handler that verifies PoW and issues a solution token +verify_pow in mcaptcha::api::v1::pow::verify_pow - Rust

pub struct verify_pow;
Expand description

route handler that verifies PoW and issues a solution token if verification is successful

-

Trait Implementations§

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).

+

Trait Implementations§

source§

impl HttpServiceFactory for verify_pow

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/constant.FIELDS.html b/mcaptcha/api/v1/pow/verify_token/constant.FIELDS.html new file mode 100644 index 00000000..ace75823 --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_token/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::api::v1::pow::verify_token - Rust

Constant mcaptcha::api::v1::pow::verify_token::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/enum.__Field.html b/mcaptcha/api/v1/pow/verify_token/enum.__Field.html new file mode 100644 index 00000000..6547be5d --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_token/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::api::v1::pow::verify_token - Rust
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/fn.validate_captcha_token.html b/mcaptcha/api/v1/pow/verify_token/fn.validate_captcha_token.html new file mode 100644 index 00000000..4f72ce82 --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_token/fn.validate_captcha_token.html @@ -0,0 +1,5 @@ +validate_captcha_token in mcaptcha::api::v1::pow::verify_token - Rust
pub async fn validate_captcha_token(
+    payload: Json<VerifyCaptchaResultPayload>,
+    data: AppData
+) -> Result<impl Responder, ServiceError>
Expand description

route handler that validates a PoW solution token

+
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/index.html b/mcaptcha/api/v1/pow/verify_token/index.html index ab229b58..8753a6c4 100644 --- a/mcaptcha/api/v1/pow/verify_token/index.html +++ b/mcaptcha/api/v1/pow/verify_token/index.html @@ -1,2 +1,2 @@ -mcaptcha::api::v1::pow::verify_token - Rust

Module mcaptcha::api::v1::pow::verify_token

source ·
Expand description

PoW success token module

-

Structs

route handler that validates a PoW solution token
\ No newline at end of file +mcaptcha::api::v1::pow::verify_token - Rust

Module mcaptcha::api::v1::pow::verify_token

source ·
Expand description

PoW success token module

+

Structs

Enums

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/sidebar-items.js b/mcaptcha/api/v1/pow/verify_token/sidebar-items.js index 26fa3060..600bf09a 100644 --- a/mcaptcha/api/v1/pow/verify_token/sidebar-items.js +++ b/mcaptcha/api/v1/pow/verify_token/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["CaptchaValidateResp",""],["VerifyCaptchaResultPayload",""],["validate_captcha_token","route handler that validates a PoW solution token"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["validate_captcha_token"],"struct":["CaptchaValidateResp","VerifyCaptchaResultPayload","__FieldVisitor","__Visitor","validate_captcha_token"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/struct.CaptchaValidateResp.html b/mcaptcha/api/v1/pow/verify_token/struct.CaptchaValidateResp.html index 161d8c68..885fc6fe 100644 --- a/mcaptcha/api/v1/pow/verify_token/struct.CaptchaValidateResp.html +++ b/mcaptcha/api/v1/pow/verify_token/struct.CaptchaValidateResp.html @@ -1,11 +1,23 @@ -CaptchaValidateResp in mcaptcha::api::v1::pow::verify_token - Rust
pub struct CaptchaValidateResp {
-    pub valid: bool,
-}

Fields§

§valid: bool

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
Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+CaptchaValidateResp in mcaptcha::api::v1::pow::verify_token - Rust
pub struct CaptchaValidateResp {
+    pub valid: bool,
+}

Fields§

§valid: bool

Trait Implementations§

source§

impl Clone for CaptchaValidateResp

source§

fn clone(&self) -> CaptchaValidateResp

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 CaptchaValidateResp

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for CaptchaValidateResp

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 Serialize for CaptchaValidateResp

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/struct.VerifyCaptchaResultPayload.html b/mcaptcha/api/v1/pow/verify_token/struct.VerifyCaptchaResultPayload.html index d3a7009b..8ef84d24 100644 --- a/mcaptcha/api/v1/pow/verify_token/struct.VerifyCaptchaResultPayload.html +++ b/mcaptcha/api/v1/pow/verify_token/struct.VerifyCaptchaResultPayload.html @@ -1,13 +1,25 @@ -VerifyCaptchaResultPayload in mcaptcha::api::v1::pow::verify_token - Rust
pub struct VerifyCaptchaResultPayload {
-    pub secret: String,
-    pub key: String,
-    pub token: String,
-}

Fields§

§secret: String§key: String§token: String

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
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).

+VerifyCaptchaResultPayload in mcaptcha::api::v1::pow::verify_token - Rust
pub struct VerifyCaptchaResultPayload {
+    pub secret: String,
+    pub key: String,
+    pub token: String,
+}

Fields§

§secret: String§key: String§token: String

Trait Implementations§

source§

impl Clone for VerifyCaptchaResultPayload

source§

fn clone(&self) -> VerifyCaptchaResultPayload

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 VerifyCaptchaResultPayload

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for VerifyCaptchaResultPayload

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<VerifyCaptchaResultPayload> for VerifyCaptchaResult

source§

fn from(m: VerifyCaptchaResultPayload) -> Self

Converts to this type from the input type.
source§

impl Serialize for VerifyCaptchaResultPayload

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/struct.__FieldVisitor.html b/mcaptcha/api/v1/pow/verify_token/struct.__FieldVisitor.html new file mode 100644 index 00000000..22d04b20 --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_token/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1::pow::verify_token - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/struct.__Visitor.html b/mcaptcha/api/v1/pow/verify_token/struct.__Visitor.html new file mode 100644 index 00000000..753767c0 --- /dev/null +++ b/mcaptcha/api/v1/pow/verify_token/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1::pow::verify_token - Rust
struct __Visitor<'de> {
+    marker: PhantomData<CaptchaValidateResp>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<CaptchaValidateResp>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = CaptchaValidateResp

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/pow/verify_token/struct.validate_captcha_token.html b/mcaptcha/api/v1/pow/verify_token/struct.validate_captcha_token.html index e8ae388f..3e49fafc 100644 --- a/mcaptcha/api/v1/pow/verify_token/struct.validate_captcha_token.html +++ b/mcaptcha/api/v1/pow/verify_token/struct.validate_captcha_token.html @@ -1,10 +1,18 @@ -validate_captcha_token in mcaptcha::api::v1::pow::verify_token - Rust
pub struct validate_captcha_token;
Expand description

route handler that validates a PoW solution token

-

Trait Implementations§

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).

+validate_captcha_token in mcaptcha::api::v1::pow::verify_token - Rust
pub struct validate_captcha_token;
Expand description

route handler that validates a PoW solution token

+

Trait Implementations§

source§

impl HttpServiceFactory for validate_captcha_token

source§

fn register(self, __config: &mut AppService)

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/routes/constant.ROUTES.html b/mcaptcha/api/v1/routes/constant.ROUTES.html index 12360794..9cd8da64 100644 --- a/mcaptcha/api/v1/routes/constant.ROUTES.html +++ b/mcaptcha/api/v1/routes/constant.ROUTES.html @@ -1 +1 @@ -ROUTES in mcaptcha::api::v1::routes - Rust

Constant mcaptcha::api::v1::routes::ROUTES

source ·
pub const ROUTES: Routes;
\ No newline at end of file +ROUTES in mcaptcha::api::v1::routes - Rust

Constant mcaptcha::api::v1::routes::ROUTES

source ·
pub const ROUTES: Routes;
\ No newline at end of file diff --git a/mcaptcha/api/v1/routes/index.html b/mcaptcha/api/v1/routes/index.html index 051c56ef..eb732538 100644 --- a/mcaptcha/api/v1/routes/index.html +++ b/mcaptcha/api/v1/routes/index.html @@ -1 +1 @@ -mcaptcha::api::v1::routes - Rust

Module mcaptcha::api::v1::routes

source ·

Structs

Constants

\ No newline at end of file +mcaptcha::api::v1::routes - Rust

Module mcaptcha::api::v1::routes

source ·

Structs

Constants

\ No newline at end of file diff --git a/mcaptcha/api/v1/routes/sidebar-items.js b/mcaptcha/api/v1/routes/sidebar-items.js index e8b484a1..f4cd0cb2 100644 --- a/mcaptcha/api/v1/routes/sidebar-items.js +++ b/mcaptcha/api/v1/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["ROUTES",""]],"struct":[["Routes",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["ROUTES"],"struct":["Routes"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/routes/struct.Routes.html b/mcaptcha/api/v1/routes/struct.Routes.html index d8b71f45..978a46a0 100644 --- a/mcaptcha/api/v1/routes/struct.Routes.html +++ b/mcaptcha/api/v1/routes/struct.Routes.html @@ -1,16 +1,24 @@ -Routes in mcaptcha::api::v1::routes - Rust

Struct mcaptcha::api::v1::routes::Routes

source ·
pub struct Routes {
+Routes in mcaptcha::api::v1::routes - Rust

Struct mcaptcha::api::v1::routes::Routes

source ·
pub struct Routes {
     pub auth: Auth,
     pub account: Account,
     pub captcha: Captcha,
     pub meta: Meta,
     pub pow: PoW,
     pub notifications: Notifications,
-}

Fields§

§auth: Auth§account: Account§captcha: Captcha§meta: Meta§pow: PoW§notifications: Notifications

Implementations§

Trait Implementations§

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).

+}

Fields§

§auth: Auth§account: Account§captcha: Captcha§meta: Meta§pow: PoW§notifications: Notifications

Implementations§

source§

impl Routes

source

const fn new() -> Routes

Trait Implementations§

source§

impl GetLoginRoute for Routes

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/sidebar-items.js b/mcaptcha/api/v1/sidebar-items.js index 9d377002..5a3e892a 100644 --- a/mcaptcha/api/v1/sidebar-items.js +++ b/mcaptcha/api/v1/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["get_middleware",""],["services",""]],"mod":[["account",""],["auth",""],["mcaptcha",""],["meta",""],["notifications",""],["pow",""],["routes",""]],"struct":[["RedirectQuery",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"fn":["get_middleware","services"],"mod":["account","auth","mcaptcha","meta","notifications","pow","routes"],"struct":["RedirectQuery","__FieldVisitor","__Visitor"]}; \ No newline at end of file diff --git a/mcaptcha/api/v1/struct.RedirectQuery.html b/mcaptcha/api/v1/struct.RedirectQuery.html index 0d9269e0..75aa0d24 100644 --- a/mcaptcha/api/v1/struct.RedirectQuery.html +++ b/mcaptcha/api/v1/struct.RedirectQuery.html @@ -1,11 +1,21 @@ -RedirectQuery in mcaptcha::api::v1 - Rust

Struct mcaptcha::api::v1::RedirectQuery

source ·
pub struct RedirectQuery {
-    pub redirect_to: Option<String>,
-}

Fields§

§redirect_to: Option<String>

Trait Implementations§

Deserialize this value from the given Serde deserializer. 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).

+RedirectQuery in mcaptcha::api::v1 - Rust

Struct mcaptcha::api::v1::RedirectQuery

source ·
pub struct RedirectQuery {
+    pub redirect_to: Option<String>,
+}

Fields§

§redirect_to: Option<String>

Trait Implementations§

source§

impl<'de> Deserialize<'de> for RedirectQuery

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/api/v1/struct.__FieldVisitor.html b/mcaptcha/api/v1/struct.__FieldVisitor.html new file mode 100644 index 00000000..2bae2991 --- /dev/null +++ b/mcaptcha/api/v1/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::api::v1 - Rust

Struct mcaptcha::api::v1::__FieldVisitor

source ·
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/api/v1/struct.__Visitor.html b/mcaptcha/api/v1/struct.__Visitor.html new file mode 100644 index 00000000..4dee658a --- /dev/null +++ b/mcaptcha/api/v1/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::api::v1 - Rust

Struct mcaptcha::api::v1::__Visitor

source ·
struct __Visitor<'de> {
+    marker: PhantomData<RedirectQuery>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<RedirectQuery>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = RedirectQuery

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/constant.CACHE_AGE.html b/mcaptcha/constant.CACHE_AGE.html index 8be302cd..38b172df 100644 --- a/mcaptcha/constant.CACHE_AGE.html +++ b/mcaptcha/constant.CACHE_AGE.html @@ -1 +1 @@ -CACHE_AGE in mcaptcha - Rust

Constant mcaptcha::CACHE_AGE

source ·
pub const CACHE_AGE: u32 = 604800;
\ No newline at end of file +CACHE_AGE in mcaptcha - Rust

Constant mcaptcha::CACHE_AGE

source ·
pub const CACHE_AGE: u32 = 604800;
\ No newline at end of file diff --git a/mcaptcha/constant.COMPILED_DATE.html b/mcaptcha/constant.COMPILED_DATE.html index ab88d625..dad3f5bd 100644 --- a/mcaptcha/constant.COMPILED_DATE.html +++ b/mcaptcha/constant.COMPILED_DATE.html @@ -1 +1 @@ -COMPILED_DATE in mcaptcha - Rust

Constant mcaptcha::COMPILED_DATE

source ·
pub const COMPILED_DATE: &str = _;
\ No newline at end of file +COMPILED_DATE in mcaptcha - Rust

Constant mcaptcha::COMPILED_DATE

source ·
pub const COMPILED_DATE: &str = _;
\ No newline at end of file diff --git a/mcaptcha/constant.DOCS.html b/mcaptcha/constant.DOCS.html index b1829412..e35184af 100644 --- a/mcaptcha/constant.DOCS.html +++ b/mcaptcha/constant.DOCS.html @@ -1 +1 @@ -DOCS in mcaptcha - Rust

Constant mcaptcha::DOCS

source ·
pub const DOCS: Docs;
\ No newline at end of file +DOCS in mcaptcha - Rust

Constant mcaptcha::DOCS

source ·
pub const DOCS: Docs;
\ No newline at end of file diff --git a/mcaptcha/constant.GIT_COMMIT_HASH.html b/mcaptcha/constant.GIT_COMMIT_HASH.html index 3179aa5a..46f8f876 100644 --- a/mcaptcha/constant.GIT_COMMIT_HASH.html +++ b/mcaptcha/constant.GIT_COMMIT_HASH.html @@ -1 +1 @@ -GIT_COMMIT_HASH in mcaptcha - Rust

Constant mcaptcha::GIT_COMMIT_HASH

source ·
pub const GIT_COMMIT_HASH: &str = _;
\ No newline at end of file +GIT_COMMIT_HASH in mcaptcha - Rust

Constant mcaptcha::GIT_COMMIT_HASH

source ·
pub const GIT_COMMIT_HASH: &str = _;
\ No newline at end of file diff --git a/mcaptcha/constant.PAGES.html b/mcaptcha/constant.PAGES.html index abaf5faa..a08b29da 100644 --- a/mcaptcha/constant.PAGES.html +++ b/mcaptcha/constant.PAGES.html @@ -1 +1 @@ -PAGES in mcaptcha - Rust

Constant mcaptcha::PAGES

source ·
pub const PAGES: Routes;
\ No newline at end of file +PAGES in mcaptcha - Rust

Constant mcaptcha::PAGES

source ·
pub const PAGES: Routes;
\ No newline at end of file diff --git a/mcaptcha/constant.PKG_DESCRIPTION.html b/mcaptcha/constant.PKG_DESCRIPTION.html index 1af9392d..523e8ed3 100644 --- a/mcaptcha/constant.PKG_DESCRIPTION.html +++ b/mcaptcha/constant.PKG_DESCRIPTION.html @@ -1 +1 @@ -PKG_DESCRIPTION in mcaptcha - Rust

Constant mcaptcha::PKG_DESCRIPTION

source ·
pub const PKG_DESCRIPTION: &str = _;
\ No newline at end of file +PKG_DESCRIPTION in mcaptcha - Rust

Constant mcaptcha::PKG_DESCRIPTION

source ·
pub const PKG_DESCRIPTION: &str = _;
\ No newline at end of file diff --git a/mcaptcha/constant.PKG_HOMEPAGE.html b/mcaptcha/constant.PKG_HOMEPAGE.html index 366a7549..e54d7a84 100644 --- a/mcaptcha/constant.PKG_HOMEPAGE.html +++ b/mcaptcha/constant.PKG_HOMEPAGE.html @@ -1 +1 @@ -PKG_HOMEPAGE in mcaptcha - Rust

Constant mcaptcha::PKG_HOMEPAGE

source ·
pub const PKG_HOMEPAGE: &str = _;
\ No newline at end of file +PKG_HOMEPAGE in mcaptcha - Rust

Constant mcaptcha::PKG_HOMEPAGE

source ·
pub const PKG_HOMEPAGE: &str = _;
\ No newline at end of file diff --git a/mcaptcha/constant.PKG_NAME.html b/mcaptcha/constant.PKG_NAME.html index 17e1d218..7cf40a95 100644 --- a/mcaptcha/constant.PKG_NAME.html +++ b/mcaptcha/constant.PKG_NAME.html @@ -1 +1 @@ -PKG_NAME in mcaptcha - Rust

Constant mcaptcha::PKG_NAME

source ·
pub const PKG_NAME: &str = _;
\ No newline at end of file +PKG_NAME in mcaptcha - Rust

Constant mcaptcha::PKG_NAME

source ·
pub const PKG_NAME: &str = _;
\ No newline at end of file diff --git a/mcaptcha/constant.V1_API_ROUTES.html b/mcaptcha/constant.V1_API_ROUTES.html index f0df96b3..1e2bd999 100644 --- a/mcaptcha/constant.V1_API_ROUTES.html +++ b/mcaptcha/constant.V1_API_ROUTES.html @@ -1 +1 @@ -V1_API_ROUTES in mcaptcha - Rust

Constant mcaptcha::V1_API_ROUTES

source ·
pub const V1_API_ROUTES: Routes;
\ No newline at end of file +V1_API_ROUTES in mcaptcha - Rust

Constant mcaptcha::V1_API_ROUTES

source ·
pub const V1_API_ROUTES: Routes;
\ No newline at end of file diff --git a/mcaptcha/constant.VERSION.html b/mcaptcha/constant.VERSION.html index 81030ef5..fb47c2fd 100644 --- a/mcaptcha/constant.VERSION.html +++ b/mcaptcha/constant.VERSION.html @@ -1 +1 @@ -VERSION in mcaptcha - Rust

Constant mcaptcha::VERSION

source ·
pub const VERSION: &str = _;
\ No newline at end of file +VERSION in mcaptcha - Rust

Constant mcaptcha::VERSION

source ·
pub const VERSION: &str = _;
\ No newline at end of file diff --git a/mcaptcha/constant.WIDGET_ROUTES.html b/mcaptcha/constant.WIDGET_ROUTES.html index 334f9d25..d4d9626d 100644 --- a/mcaptcha/constant.WIDGET_ROUTES.html +++ b/mcaptcha/constant.WIDGET_ROUTES.html @@ -1 +1 @@ -WIDGET_ROUTES in mcaptcha - Rust

Constant mcaptcha::WIDGET_ROUTES

source ·
pub const WIDGET_ROUTES: Widget;
\ No newline at end of file +WIDGET_ROUTES in mcaptcha - Rust

Constant mcaptcha::WIDGET_ROUTES

source ·
pub const WIDGET_ROUTES: Widget;
\ No newline at end of file diff --git a/mcaptcha/data/enum.SystemGroup.html b/mcaptcha/data/enum.SystemGroup.html index 12df7496..1416b115 100644 --- a/mcaptcha/data/enum.SystemGroup.html +++ b/mcaptcha/data/enum.SystemGroup.html @@ -1,15 +1,30 @@ -SystemGroup in mcaptcha::data - Rust
pub enum SystemGroup {
+SystemGroup in mcaptcha::data - Rust
pub enum SystemGroup {
     Embedded(System<HashCache, EmbeddedMaster>),
     Redis(System<RedisCache, RedisMaster>),
-}
Expand description

Represents mCaptcha cache and master system. -When Redis is configured, SystemGroup::Redis is used and -in its absence, SystemGroup::Embedded is used

-

Variants§

§

Embedded(System<HashCache, EmbeddedMaster>)

§

Redis(System<RedisCache, RedisMaster>)

Implementations§

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).

+}
Expand description

Represents mCaptcha cache and master system. +When Redis is configured, SystemGroup::Redis is used and +in its absence, SystemGroup::Embedded is used

+

Variants§

§

Embedded(System<HashCache, EmbeddedMaster>)

§

Redis(System<RedisCache, RedisMaster>)

Implementations§

source§

impl SystemGroup

source

pub async fn get_pow(&self, msg: String) -> CaptchaResult<Option<PoWConfig>>

source

pub async fn verify_pow(&self, msg: Work, ip: String) -> CaptchaResult<String>

source

pub async fn validate_verification_tokens( + &self, + msg: VerifyCaptchaResult +) -> CaptchaResult<bool>

source

pub async fn add_site(&self, msg: AddSite) -> Result<(), ServiceError>

source

pub async fn rename(&self, msg: Rename) -> Result<(), ServiceError>

source

pub async fn remove(&self, msg: RemoveCaptcha) -> Result<(), ServiceError>

source

fn new_system<A: Save, B: MasterTrait>( + s: &Settings, + m: Addr<B>, + c: Addr<A> +) -> System<A, B>

source

async fn new(s: &Settings) -> Self

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/data/index.html b/mcaptcha/data/index.html index cf3d8036..a88dbf6c 100644 --- a/mcaptcha/data/index.html +++ b/mcaptcha/data/index.html @@ -1,4 +1,4 @@ -mcaptcha::data - Rust

Module mcaptcha::data

source ·
Expand description

App data: redis cache, database connections, etc.

-

Macros

Structs

App data

Enums

Represents mCaptcha cache and master system. -When Redis is configured, SystemGroup::Redis is used and -in its absence, SystemGroup::Embedded is used

Type Definitions

Mailer data type AsyncSmtpTransport
\ No newline at end of file +mcaptcha::data - Rust

Module mcaptcha::data

source ·
Expand description

App data: redis cache, database connections, etc.

+

Macros

Structs

Enums

Type Definitions

  • Mailer data type AsyncSmtpTransport
\ No newline at end of file diff --git a/mcaptcha/data/macro.enum_system_actor.html b/mcaptcha/data/macro.enum_system_actor.html index 9bbce487..043caf67 100644 --- a/mcaptcha/data/macro.enum_system_actor.html +++ b/mcaptcha/data/macro.enum_system_actor.html @@ -1,4 +1,3 @@ -enum_system_actor in mcaptcha::data - Rust
macro_rules! enum_system_actor {
+enum_system_actor in mcaptcha::data - Rust
macro_rules! enum_system_actor {
     ($name:ident, $type:ident) => { ... };
-}
-
\ No newline at end of file +}
\ No newline at end of file diff --git a/mcaptcha/data/macro.enum_system_wrapper.html b/mcaptcha/data/macro.enum_system_wrapper.html index 0d2499a2..91a1155c 100644 --- a/mcaptcha/data/macro.enum_system_wrapper.html +++ b/mcaptcha/data/macro.enum_system_wrapper.html @@ -1,4 +1,3 @@ -enum_system_wrapper in mcaptcha::data - Rust
macro_rules! enum_system_wrapper {
+enum_system_wrapper in mcaptcha::data - Rust
macro_rules! enum_system_wrapper {
     ($name:ident, $type:ty, $return_type:ty) => { ... };
-}
-
\ No newline at end of file +}
\ No newline at end of file diff --git a/mcaptcha/data/sidebar-items.js b/mcaptcha/data/sidebar-items.js index 9c5bb020..9b6a7e58 100644 --- a/mcaptcha/data/sidebar-items.js +++ b/mcaptcha/data/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["SystemGroup","Represents mCaptcha cache and master system. When Redis is configured, [SystemGroup::Redis] is used and in its absence, [SystemGroup::Embedded] is used"]],"macro":[["enum_system_actor",""],["enum_system_wrapper",""]],"struct":[["Data","App data"]],"type":[["Mailer","Mailer data type AsyncSmtpTransport"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["SystemGroup"],"macro":["enum_system_actor","enum_system_wrapper"],"struct":["Data"],"type":["Mailer"]}; \ No newline at end of file diff --git a/mcaptcha/data/struct.Data.html b/mcaptcha/data/struct.Data.html index 4eb5b541..8600f984 100644 --- a/mcaptcha/data/struct.Data.html +++ b/mcaptcha/data/struct.Data.html @@ -1,24 +1,32 @@ -Data in mcaptcha::data - Rust

Struct mcaptcha::data::Data

source ·
pub struct Data {
-    pub db: Box<dyn MCDatabase>,
+Data in mcaptcha::data - Rust

Struct mcaptcha::data::Data

source ·
pub struct Data {
+    pub db: Box<dyn MCDatabase>,
     pub creds: Config,
     pub captcha: SystemGroup,
-    pub mailer: Option<AsyncSmtpTransport<Tokio1Executor>>,
+    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

+ pub stats: Box<dyn Stats>, +}
Expand description

App data

+

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

+
§mailer: Option<AsyncSmtpTransport<Tokio1Executor>>

email client

§settings: Settings

app settings

-
§stats: Box<dyn Stats>

stats recorder

-

Implementations§

create new instance of app data

-

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).

+
§stats: Box<dyn Stats>

stats recorder

+

Implementations§

source§

impl Data

source

pub fn get_creds() -> Config

source

pub async fn new(s: &Settings) -> Arc<Self>

create new instance of app data

+
source

fn get_mailer(s: &Settings) -> Option<AsyncSmtpTransport<Tokio1Executor>>

Auto Trait Implementations§

§

impl !RefUnwindSafe for Data

§

impl Send for Data

§

impl Sync for Data

§

impl Unpin for Data

§

impl !UnwindSafe for Data

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/data/type.Mailer.html b/mcaptcha/data/type.Mailer.html index a5324180..a8d28143 100644 --- a/mcaptcha/data/type.Mailer.html +++ b/mcaptcha/data/type.Mailer.html @@ -1,2 +1,2 @@ -Mailer in mcaptcha::data - Rust

Type Definition mcaptcha::data::Mailer

source ·
Expand description

Mailer data type AsyncSmtpTransport

-
\ No newline at end of file +Mailer in mcaptcha::data - Rust

Type Definition mcaptcha::data::Mailer

source ·
pub type Mailer = AsyncSmtpTransport<Tokio1Executor>;
Expand description

Mailer data type AsyncSmtpTransport

+
\ No newline at end of file diff --git a/mcaptcha/date/constant.DAY.html b/mcaptcha/date/constant.DAY.html index 10ffec64..7ed8cb9e 100644 --- a/mcaptcha/date/constant.DAY.html +++ b/mcaptcha/date/constant.DAY.html @@ -1 +1 @@ -DAY in mcaptcha::date - Rust

Constant mcaptcha::date::DAY

source ·
pub const DAY: i64 = _; // 86_400i64
\ No newline at end of file +DAY in mcaptcha::date - Rust

Constant mcaptcha::date::DAY

source ·
pub const DAY: i64 = _; // 86_400i64
\ No newline at end of file diff --git a/mcaptcha/date/constant.HOUR.html b/mcaptcha/date/constant.HOUR.html index f72befe2..853503c4 100644 --- a/mcaptcha/date/constant.HOUR.html +++ b/mcaptcha/date/constant.HOUR.html @@ -1 +1 @@ -HOUR in mcaptcha::date - Rust

Constant mcaptcha::date::HOUR

source ·
pub const HOUR: i64 = _; // 3_600i64
\ No newline at end of file +HOUR in mcaptcha::date - Rust

Constant mcaptcha::date::HOUR

source ·
pub const HOUR: i64 = _; // 3_600i64
\ No newline at end of file diff --git a/mcaptcha/date/constant.MINUTE.html b/mcaptcha/date/constant.MINUTE.html index b5413907..4b0615ec 100644 --- a/mcaptcha/date/constant.MINUTE.html +++ b/mcaptcha/date/constant.MINUTE.html @@ -1 +1 @@ -MINUTE in mcaptcha::date - Rust

Constant mcaptcha::date::MINUTE

source ·
pub const MINUTE: i64 = 60;
\ No newline at end of file +MINUTE in mcaptcha::date - Rust

Constant mcaptcha::date::MINUTE

source ·
pub const MINUTE: i64 = 60;
\ No newline at end of file diff --git a/mcaptcha/date/constant.WEEK.html b/mcaptcha/date/constant.WEEK.html index 2762ae58..95119b16 100644 --- a/mcaptcha/date/constant.WEEK.html +++ b/mcaptcha/date/constant.WEEK.html @@ -1 +1 @@ -WEEK in mcaptcha::date - Rust

Constant mcaptcha::date::WEEK

source ·
pub const WEEK: i64 = _; // 604_800i64
\ No newline at end of file +WEEK in mcaptcha::date - Rust

Constant mcaptcha::date::WEEK

source ·
pub const WEEK: i64 = _; // 604_800i64
\ No newline at end of file diff --git a/mcaptcha/date/index.html b/mcaptcha/date/index.html index 32dc2e74..9ecc372c 100644 --- a/mcaptcha/date/index.html +++ b/mcaptcha/date/index.html @@ -1 +1 @@ -mcaptcha::date - Rust

Module mcaptcha::date

source ·

Structs

Constants

\ No newline at end of file +mcaptcha::date - Rust

Module mcaptcha::date

source ·

Structs

Constants

\ No newline at end of file diff --git a/mcaptcha/date/sidebar-items.js b/mcaptcha/date/sidebar-items.js index c31296d0..d3bdf257 100644 --- a/mcaptcha/date/sidebar-items.js +++ b/mcaptcha/date/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["DAY",""],["HOUR",""],["MINUTE",""],["WEEK",""]],"struct":[["Date",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["DAY","HOUR","MINUTE","WEEK"],"struct":["Date"]}; \ No newline at end of file diff --git a/mcaptcha/date/struct.Date.html b/mcaptcha/date/struct.Date.html index 78aea730..284b732e 100644 --- a/mcaptcha/date/struct.Date.html +++ b/mcaptcha/date/struct.Date.html @@ -1,13 +1,22 @@ -Date in mcaptcha::date - Rust

Struct mcaptcha::date::Date

source ·
pub struct Date {
+Date in mcaptcha::date - Rust

Struct mcaptcha::date::Date

source ·
pub struct Date {
     pub time: OffsetDateTime,
-}

Fields§

§time: OffsetDateTime

Implementations§

print relative time from date

-

print date

-

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

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).

+}

Fields§

§time: OffsetDateTime

Implementations§

source§

impl Date

source

pub fn format(date: &OffsetDateTime) -> String

source

pub fn print_date(&self) -> String

print relative time from date

+
source

pub fn date(&self) -> String

print date

+
source

pub fn new(unix: i64) -> Self

Trait Implementations§

source§

impl Clone for Date

source§

fn clone(&self) -> Date

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 Date

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Date

§

impl Send for Date

§

impl Sync for Date

§

impl Unpin for Date

§

impl UnwindSafe for Date

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/db/index.html b/mcaptcha/db/index.html index 0996b160..5ef30aa2 100644 --- a/mcaptcha/db/index.html +++ b/mcaptcha/db/index.html @@ -1 +1 @@ -mcaptcha::db - Rust

Module mcaptcha::db

source ·

Modules

Type Definitions

\ No newline at end of file +mcaptcha::db - Rust

Module mcaptcha::db

source ·

Modules

Type Definitions

\ No newline at end of file diff --git a/mcaptcha/db/maria/fn.get_data.html b/mcaptcha/db/maria/fn.get_data.html index 79505541..b59a9ceb 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/maria/index.html b/mcaptcha/db/maria/index.html index 9c3ba9be..d75979b1 100644 --- a/mcaptcha/db/maria/index.html +++ b/mcaptcha/db/maria/index.html @@ -1 +1 @@ -mcaptcha::db::maria - Rust

Module mcaptcha::db::maria

source ·

Functions

\ No newline at end of file +mcaptcha::db::maria - Rust

Module mcaptcha::db::maria

source ·

Functions

\ No newline at end of file diff --git a/mcaptcha/db/maria/sidebar-items.js b/mcaptcha/db/maria/sidebar-items.js index 60fe8219..2784ae8b 100644 --- a/mcaptcha/db/maria/sidebar-items.js +++ b/mcaptcha/db/maria/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["get_data",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["get_data"]}; \ 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 fbc8b6cd..1aff4555 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/pg/index.html b/mcaptcha/db/pg/index.html index 22107731..5a91300b 100644 --- a/mcaptcha/db/pg/index.html +++ b/mcaptcha/db/pg/index.html @@ -1 +1 @@ -mcaptcha::db::pg - Rust

Module mcaptcha::db::pg

source ·

Functions

\ No newline at end of file +mcaptcha::db::pg - Rust

Module mcaptcha::db::pg

source ·

Functions

\ No newline at end of file diff --git a/mcaptcha/db/pg/sidebar-items.js b/mcaptcha/db/pg/sidebar-items.js index 60fe8219..2784ae8b 100644 --- a/mcaptcha/db/pg/sidebar-items.js +++ b/mcaptcha/db/pg/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["get_data",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["get_data"]}; \ No newline at end of file diff --git a/mcaptcha/db/sidebar-items.js b/mcaptcha/db/sidebar-items.js index 54395f50..ee3d03ba 100644 --- a/mcaptcha/db/sidebar-items.js +++ b/mcaptcha/db/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"mod":[["maria",""],["pg",""]],"type":[["BoxDB",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"mod":["maria","pg"],"type":["BoxDB"]}; \ No newline at end of file diff --git a/mcaptcha/db/type.BoxDB.html b/mcaptcha/db/type.BoxDB.html index e7a0a92f..64b9ad81 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/demo/constant.DEMO_PASSWORD.html b/mcaptcha/demo/constant.DEMO_PASSWORD.html index 1b9b54ed..40db1f3c 100644 --- a/mcaptcha/demo/constant.DEMO_PASSWORD.html +++ b/mcaptcha/demo/constant.DEMO_PASSWORD.html @@ -1,2 +1,2 @@ -DEMO_PASSWORD in mcaptcha::demo - Rust

Constant mcaptcha::demo::DEMO_PASSWORD

source ·
pub const DEMO_PASSWORD: &str = "password";
Expand description

Demo password

-
\ No newline at end of file +DEMO_PASSWORD in mcaptcha::demo - Rust

Constant mcaptcha::demo::DEMO_PASSWORD

source ·
pub const DEMO_PASSWORD: &str = "password";
Expand description

Demo password

+
\ No newline at end of file diff --git a/mcaptcha/demo/constant.DEMO_USER.html b/mcaptcha/demo/constant.DEMO_USER.html index 40341b5e..bcf728bc 100644 --- a/mcaptcha/demo/constant.DEMO_USER.html +++ b/mcaptcha/demo/constant.DEMO_USER.html @@ -1,2 +1,2 @@ -DEMO_USER in mcaptcha::demo - Rust

Constant mcaptcha::demo::DEMO_USER

source ·
pub const DEMO_USER: &str = "aaronsw";
Expand description

Demo username

-
\ No newline at end of file +DEMO_USER in mcaptcha::demo - Rust

Constant mcaptcha::demo::DEMO_USER

source ·
pub const DEMO_USER: &str = "aaronsw";
Expand description

Demo username

+
\ No newline at end of file diff --git a/mcaptcha/demo/index.html b/mcaptcha/demo/index.html index b6fe57e7..d5a14ca9 100644 --- a/mcaptcha/demo/index.html +++ b/mcaptcha/demo/index.html @@ -1 +1 @@ -mcaptcha::demo - Rust

Module mcaptcha::demo

source ·

Structs

Constants

Demo password
Demo username
\ No newline at end of file +mcaptcha::demo - Rust

Module mcaptcha::demo

source ·

Structs

Constants

\ No newline at end of file diff --git a/mcaptcha/demo/sidebar-items.js b/mcaptcha/demo/sidebar-items.js index f1e4f550..c0a2d795 100644 --- a/mcaptcha/demo/sidebar-items.js +++ b/mcaptcha/demo/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["DEMO_PASSWORD","Demo password"],["DEMO_USER","Demo username"]],"struct":[["DemoUser",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["DEMO_PASSWORD","DEMO_USER"],"struct":["DemoUser"]}; \ No newline at end of file diff --git a/mcaptcha/demo/struct.DemoUser.html b/mcaptcha/demo/struct.DemoUser.html index 4b99807d..cfa82086 100644 --- a/mcaptcha/demo/struct.DemoUser.html +++ b/mcaptcha/demo/struct.DemoUser.html @@ -1,12 +1,26 @@ -DemoUser in mcaptcha::demo - Rust

Struct mcaptcha::demo::DemoUser

source ·
pub struct DemoUser {
-    handle: JoinHandle<()>,
-}

Fields§

§handle: JoinHandle<()>

Implementations§

register demo user runner

-

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).

+DemoUser in mcaptcha::demo - Rust

Struct mcaptcha::demo::DemoUser

source ·
pub struct DemoUser {
+    handle: JoinHandle<()>,
+}

Fields§

§handle: JoinHandle<()>

Implementations§

source§

impl DemoUser

source

pub async fn spawn( + data: AppData, + duration: Duration +) -> Result<Self, ServiceError>

source

pub fn abort(&self)

source

async fn register_demo_user(data: &AppData) -> Result<(), ServiceError>

register demo user runner

+
source

async fn delete_demo_user(data: &AppData) -> Result<(), ServiceError>

source

pub async fn run( + data: AppData, + duration: Duration +) -> Result<JoinHandle<()>, 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 + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/docs/constant.DOCS.html b/mcaptcha/docs/constant.DOCS.html index 76999c0e..53cc79e8 100644 --- a/mcaptcha/docs/constant.DOCS.html +++ b/mcaptcha/docs/constant.DOCS.html @@ -1 +1 @@ -DOCS in mcaptcha::docs - Rust

Constant mcaptcha::docs::DOCS

source ·
pub const DOCS: Docs;
\ No newline at end of file +DOCS in mcaptcha::docs - Rust

Constant mcaptcha::docs::DOCS

source ·
pub const DOCS: Docs;
\ No newline at end of file diff --git a/mcaptcha/docs/constant.OPEN_API_SPEC.html b/mcaptcha/docs/constant.OPEN_API_SPEC.html index 19c07242..a9674f04 100644 --- a/mcaptcha/docs/constant.OPEN_API_SPEC.html +++ b/mcaptcha/docs/constant.OPEN_API_SPEC.html @@ -1 +1 @@ -OPEN_API_SPEC in mcaptcha::docs - Rust

Constant mcaptcha::docs::OPEN_API_SPEC

source ·
const OPEN_API_SPEC: &str = _;
\ No newline at end of file +OPEN_API_SPEC in mcaptcha::docs - Rust

Constant mcaptcha::docs::OPEN_API_SPEC

source ·
const OPEN_API_SPEC: &str = _;
\ No newline at end of file diff --git a/mcaptcha/docs/constant.excludes.html b/mcaptcha/docs/constant.excludes.html new file mode 100644 index 00000000..4a6caf77 --- /dev/null +++ b/mcaptcha/docs/constant.excludes.html @@ -0,0 +1 @@ +excludes in mcaptcha::docs - Rust

Constant mcaptcha::docs::excludes

source ·
const excludes: &[&str];
\ No newline at end of file diff --git a/mcaptcha/docs/constant.includes.html b/mcaptcha/docs/constant.includes.html new file mode 100644 index 00000000..5b514a80 --- /dev/null +++ b/mcaptcha/docs/constant.includes.html @@ -0,0 +1 @@ +includes in mcaptcha::docs - Rust

Constant mcaptcha::docs::includes

source ·
const includes: &[&str];
\ No newline at end of file diff --git a/mcaptcha/docs/fn.dist.html b/mcaptcha/docs/fn.dist.html new file mode 100644 index 00000000..c4ee00b5 --- /dev/null +++ b/mcaptcha/docs/fn.dist.html @@ -0,0 +1 @@ +dist in mcaptcha::docs - Rust

Function mcaptcha::docs::dist

source ·
async fn dist(path: Path<String>) -> impl Responder
\ No newline at end of file diff --git a/mcaptcha/docs/fn.handle_embedded_file.html b/mcaptcha/docs/fn.handle_embedded_file.html index a5b4b2d7..8a92c12c 100644 --- a/mcaptcha/docs/fn.handle_embedded_file.html +++ b/mcaptcha/docs/fn.handle_embedded_file.html @@ -1 +1 @@ -handle_embedded_file in mcaptcha::docs - Rust
pub fn handle_embedded_file(path: &str) -> HttpResponse
\ No newline at end of file +handle_embedded_file in mcaptcha::docs - Rust
pub fn handle_embedded_file(path: &str) -> HttpResponse
\ No newline at end of file diff --git a/mcaptcha/docs/fn.index.html b/mcaptcha/docs/fn.index.html new file mode 100644 index 00000000..ca2ee576 --- /dev/null +++ b/mcaptcha/docs/fn.index.html @@ -0,0 +1 @@ +index in mcaptcha::docs - Rust

Function mcaptcha::docs::index

source ·
async fn index() -> HttpResponse
\ No newline at end of file diff --git a/mcaptcha/docs/fn.services.html b/mcaptcha/docs/fn.services.html index 17470618..e63715a9 100644 --- a/mcaptcha/docs/fn.services.html +++ b/mcaptcha/docs/fn.services.html @@ -1 +1 @@ -services in mcaptcha::docs - Rust

Function mcaptcha::docs::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::docs - Rust

Function mcaptcha::docs::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/docs/fn.spec.html b/mcaptcha/docs/fn.spec.html new file mode 100644 index 00000000..7e9c1fcf --- /dev/null +++ b/mcaptcha/docs/fn.spec.html @@ -0,0 +1 @@ +spec in mcaptcha::docs - Rust

Function mcaptcha::docs::spec

source ·
async fn spec() -> HttpResponse
\ No newline at end of file diff --git a/mcaptcha/docs/index.html b/mcaptcha/docs/index.html index 4783c749..80b334ee 100644 --- a/mcaptcha/docs/index.html +++ b/mcaptcha/docs/index.html @@ -1 +1 @@ -mcaptcha::docs - Rust

Module mcaptcha::docs

source ·

Modules

Structs

Constants

Functions

\ No newline at end of file +mcaptcha::docs - Rust

Module mcaptcha::docs

source ·

Modules

Structs

Constants

Functions

\ No newline at end of file diff --git a/mcaptcha/docs/routes/index.html b/mcaptcha/docs/routes/index.html index 94207573..827988c2 100644 --- a/mcaptcha/docs/routes/index.html +++ b/mcaptcha/docs/routes/index.html @@ -1 +1 @@ -mcaptcha::docs::routes - Rust

Module mcaptcha::docs::routes

source ·

Structs

\ No newline at end of file +mcaptcha::docs::routes - Rust

Module mcaptcha::docs::routes

source ·

Structs

\ No newline at end of file diff --git a/mcaptcha/docs/routes/sidebar-items.js b/mcaptcha/docs/routes/sidebar-items.js index 3e6993e3..a322480c 100644 --- a/mcaptcha/docs/routes/sidebar-items.js +++ b/mcaptcha/docs/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Docs",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Docs"]}; \ No newline at end of file diff --git a/mcaptcha/docs/routes/struct.Docs.html b/mcaptcha/docs/routes/struct.Docs.html index ec921057..3cde25eb 100644 --- a/mcaptcha/docs/routes/struct.Docs.html +++ b/mcaptcha/docs/routes/struct.Docs.html @@ -1,13 +1,21 @@ -Docs in mcaptcha::docs::routes - Rust

Struct mcaptcha::docs::routes::Docs

source ·
pub struct Docs {
-    pub home: &'static str,
-    pub spec: &'static str,
-    pub assets: &'static str,
-}

Fields§

§home: &'static str§spec: &'static str§assets: &'static str

Implementations§

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).

+Docs in mcaptcha::docs::routes - Rust

Struct mcaptcha::docs::routes::Docs

source ·
pub struct Docs {
+    pub home: &'static str,
+    pub spec: &'static str,
+    pub assets: &'static str,
+}

Fields§

§home: &'static str§spec: &'static str§assets: &'static str

Implementations§

source§

impl Docs

source

pub const fn new() -> Self

Auto Trait Implementations§

§

impl RefUnwindSafe for Docs

§

impl Send for Docs

§

impl Sync for Docs

§

impl Unpin for Docs

§

impl UnwindSafe for Docs

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/docs/sidebar-items.js b/mcaptcha/docs/sidebar-items.js index 33097dd5..66779218 100644 --- a/mcaptcha/docs/sidebar-items.js +++ b/mcaptcha/docs/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["DOCS",""],["OPEN_API_SPEC",""]],"fn":[["handle_embedded_file",""],["services",""]],"mod":[["routes",""]],"struct":[["Asset",""],["dist",""],["index",""],["spec",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["DOCS","OPEN_API_SPEC","excludes","includes"],"fn":["dist","handle_embedded_file","index","services","spec"],"mod":["routes"],"struct":["Asset","dist","index","spec"]}; \ No newline at end of file diff --git a/mcaptcha/docs/struct.Asset.html b/mcaptcha/docs/struct.Asset.html index b4b2388a..d3751f67 100644 --- a/mcaptcha/docs/struct.Asset.html +++ b/mcaptcha/docs/struct.Asset.html @@ -1,11 +1,19 @@ -Asset in mcaptcha::docs - Rust

Struct mcaptcha::docs::Asset

source ·
struct Asset;

Implementations§

Get an embedded file and its metadata.

-

Iterates over the file paths in the folder.

-

Trait Implementations§

Get an embedded file and its metadata. Read more
Iterates over the file paths in the folder. 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).

+Asset in mcaptcha::docs - Rust

Struct mcaptcha::docs::Asset

source ·
struct Asset;

Implementations§

source§

impl Asset

source

pub fn get(file_path: &str) -> Option<EmbeddedFile>

Get an embedded file and its metadata.

+
source

pub fn iter() -> impl Iterator<Item = Cow<'static, str>>

Iterates over the file paths in the folder.

+

Trait Implementations§

source§

impl RustEmbed for Asset

source§

fn get(file_path: &str) -> Option<EmbeddedFile>

Get an embedded file and its metadata. Read more
source§

fn iter() -> Filenames

Iterates over the file paths in the folder. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Asset

§

impl Send for Asset

§

impl Sync for Asset

§

impl Unpin for Asset

§

impl UnwindSafe for Asset

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/docs/struct.dist.html b/mcaptcha/docs/struct.dist.html index 0a331f4b..f2049717 100644 --- a/mcaptcha/docs/struct.dist.html +++ b/mcaptcha/docs/struct.dist.html @@ -1,9 +1,17 @@ -dist in mcaptcha::docs - Rust

Struct mcaptcha::docs::dist

source ·
pub struct dist;

Trait Implementations§

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).

+dist in mcaptcha::docs - Rust

Struct mcaptcha::docs::dist

source ·
pub struct dist;

Trait Implementations§

source§

impl HttpServiceFactory for dist

source§

fn register(self, __config: &mut AppService)

Auto Trait Implementations§

§

impl RefUnwindSafe for dist

§

impl Send for dist

§

impl Sync for dist

§

impl Unpin for dist

§

impl UnwindSafe for dist

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/docs/struct.index.html b/mcaptcha/docs/struct.index.html index 18c627f6..36c29331 100644 --- a/mcaptcha/docs/struct.index.html +++ b/mcaptcha/docs/struct.index.html @@ -1,9 +1,17 @@ -index in mcaptcha::docs - Rust

Struct mcaptcha::docs::index

source ·
pub struct index;

Trait Implementations§

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).

+index in mcaptcha::docs - Rust

Struct mcaptcha::docs::index

source ·
pub struct index;

Trait Implementations§

source§

impl HttpServiceFactory for index

source§

fn register(self, __config: &mut AppService)

Auto Trait Implementations§

§

impl RefUnwindSafe for index

§

impl Send for index

§

impl Sync for index

§

impl Unpin for index

§

impl UnwindSafe for index

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/docs/struct.spec.html b/mcaptcha/docs/struct.spec.html index bf1401aa..e014d168 100644 --- a/mcaptcha/docs/struct.spec.html +++ b/mcaptcha/docs/struct.spec.html @@ -1,9 +1,17 @@ -spec in mcaptcha::docs - Rust

Struct mcaptcha::docs::spec

source ·
pub struct spec;

Trait Implementations§

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).

+spec in mcaptcha::docs - Rust

Struct mcaptcha::docs::spec

source ·
pub struct spec;

Trait Implementations§

source§

impl HttpServiceFactory for spec

source§

fn register(self, __config: &mut AppService)

Auto Trait Implementations§

§

impl RefUnwindSafe for spec

§

impl Send for spec

§

impl Sync for spec

§

impl Unpin for spec

§

impl UnwindSafe for spec

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/email/index.html b/mcaptcha/email/index.html index 43719599..ca606424 100644 --- a/mcaptcha/email/index.html +++ b/mcaptcha/email/index.html @@ -1 +1 @@ -mcaptcha::email - Rust

Module mcaptcha::email

source ·

Modules

Email operations: verification, notification, etc
\ No newline at end of file +mcaptcha::email - Rust

Module mcaptcha::email

source ·

Modules

  • Email operations: verification, notification, etc
\ No newline at end of file diff --git a/mcaptcha/email/sidebar-items.js b/mcaptcha/email/sidebar-items.js index e612dd08..b52c7fdf 100644 --- a/mcaptcha/email/sidebar-items.js +++ b/mcaptcha/email/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"mod":[["verification","Email operations: verification, notification, etc"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"mod":["verification"]}; \ No newline at end of file diff --git a/mcaptcha/email/verification/constant.PAGE.html b/mcaptcha/email/verification/constant.PAGE.html index 0d28b710..53f2c7e3 100644 --- a/mcaptcha/email/verification/constant.PAGE.html +++ b/mcaptcha/email/verification/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::email::verification - Rust

Constant mcaptcha::email::verification::PAGE

source ·
const PAGE: &str = "Login";
\ No newline at end of file +PAGE in mcaptcha::email::verification - Rust

Constant mcaptcha::email::verification::PAGE

source ·
const PAGE: &str = "Login";
\ No newline at end of file diff --git a/mcaptcha/email/verification/constant.SUBJECT.html b/mcaptcha/email/verification/constant.SUBJECT.html new file mode 100644 index 00000000..e191c366 --- /dev/null +++ b/mcaptcha/email/verification/constant.SUBJECT.html @@ -0,0 +1 @@ +SUBJECT in mcaptcha::email::verification - Rust
const SUBJECT: &str = "[mCaptcha] Please verify your email";
\ No newline at end of file diff --git a/mcaptcha/email/verification/fn.verification.html b/mcaptcha/email/verification/fn.verification.html index 724428d8..5275a622 100644 --- a/mcaptcha/email/verification/fn.verification.html +++ b/mcaptcha/email/verification/fn.verification.html @@ -1 +1,5 @@ -verification in mcaptcha::email::verification - Rust
async fn verification(
    data: &Data,
    to: &str,
    verification_link: &str
) -> Result<(), ServiceError>
\ No newline at end of file +verification in mcaptcha::email::verification - Rust
async fn verification(
+    data: &Data,
+    to: &str,
+    verification_link: &str
+) -> Result<(), ServiceError>
\ No newline at end of file diff --git a/mcaptcha/email/verification/index.html b/mcaptcha/email/verification/index.html index 8c38a6fd..17a50394 100644 --- a/mcaptcha/email/verification/index.html +++ b/mcaptcha/email/verification/index.html @@ -1,2 +1,2 @@ -mcaptcha::email::verification - Rust
Expand description

Email operations: verification, notification, etc

-

Structs

IndexPage 🔒

Constants

PAGE 🔒

Functions

\ No newline at end of file +mcaptcha::email::verification - Rust
Expand description

Email operations: verification, notification, etc

+

Structs

Constants

Statics

Functions

\ No newline at end of file diff --git a/mcaptcha/email/verification/sidebar-items.js b/mcaptcha/email/verification/sidebar-items.js index ee6df7e6..ec69d0ec 100644 --- a/mcaptcha/email/verification/sidebar-items.js +++ b/mcaptcha/email/verification/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"fn":[["verification",""]],"struct":[["IndexPage",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE","SUBJECT"],"fn":["verification"],"static":["SIZE_HINT"],"struct":["IndexPage"]}; \ No newline at end of file diff --git a/mcaptcha/email/verification/static.SIZE_HINT.html b/mcaptcha/email/verification/static.SIZE_HINT.html new file mode 100644 index 00000000..9fe8bd4e --- /dev/null +++ b/mcaptcha/email/verification/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::email::verification - Rust
static SIZE_HINT: SizeHint
\ No newline at end of file diff --git a/mcaptcha/email/verification/struct.IndexPage.html b/mcaptcha/email/verification/struct.IndexPage.html index 8e83aa39..f157527e 100644 --- a/mcaptcha/email/verification/struct.IndexPage.html +++ b/mcaptcha/email/verification/struct.IndexPage.html @@ -1,11 +1,20 @@ -IndexPage in mcaptcha::email::verification - Rust
struct IndexPage<'a> {
-    verification_link: &'a str,
-}

Fields§

§verification_link: &'a str

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).

+IndexPage in mcaptcha::email::verification - Rust
struct IndexPage<'a> {
+    verification_link: &'a str,
+}

Fields§

§verification_link: &'a str

Implementations§

source§

impl<'a> IndexPage<'a>

source

fn new(verification_link: &'a str) -> Self

Trait Implementations§

source§

impl<'a> Clone for IndexPage<'a>

source§

fn clone(&self) -> IndexPage<'a>

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<'a> TemplateOnce for IndexPage<'a>

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<'a> Sealed for IndexPage<'a>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for IndexPage<'a>

§

impl<'a> Send for IndexPage<'a>

§

impl<'a> Sync for IndexPage<'a>

§

impl<'a> Unpin for IndexPage<'a>

§

impl<'a> UnwindSafe for IndexPage<'a>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/errors/constant.FIELDS.html b/mcaptcha/errors/constant.FIELDS.html new file mode 100644 index 00000000..12889c1c --- /dev/null +++ b/mcaptcha/errors/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::errors - Rust

Constant mcaptcha::errors::FIELDS

source ·
const FIELDS: &'static [&'static str];
\ No newline at end of file diff --git a/mcaptcha/errors/enum.PageError.html b/mcaptcha/errors/enum.PageError.html index f469c189..7b256ced 100644 --- a/mcaptcha/errors/enum.PageError.html +++ b/mcaptcha/errors/enum.PageError.html @@ -1,15 +1,25 @@ -PageError in mcaptcha::errors - Rust
pub enum PageError {
+PageError in mcaptcha::errors - Rust
pub enum PageError {
     InternalServerError,
     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 -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+}

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, demand: &mut Demand<'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 + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/errors/enum.ServiceError.html b/mcaptcha/errors/enum.ServiceError.html index cd8b0886..0c463e33 100644 --- a/mcaptcha/errors/enum.ServiceError.html +++ b/mcaptcha/errors/enum.ServiceError.html @@ -1,4 +1,4 @@ -ServiceError in mcaptcha::errors - Rust
pub enum ServiceError {
+ServiceError in mcaptcha::errors - Rust
pub enum ServiceError {
 
Show 21 variants InternalServerError, ClosedForRegistration, NotAnEmail, @@ -20,7 +20,7 @@ DBError(DBErrorWrapper), CaptchaNotFound, TrafficPatternNotFound, -
}

Variants§

§

InternalServerError

§

ClosedForRegistration

§

NotAnEmail

§

NotAUrl

§

WrongPassword

§

UsernameNotFound

§

AccountNotFound

§

ProfainityError

when the value passed contains profainity

+}

Variants§

§

InternalServerError

§

ClosedForRegistration

§

NotAnEmail

§

NotAUrl

§

WrongPassword

§

UsernameNotFound

§

AccountNotFound

§

ProfainityError

when the value passed contains profainity

§

BlacklistError

when the value passed contains blacklisted words see blacklist

§

UsernameCaseMappedError

when the value passed contains characters not present @@ -32,15 +32,25 @@ profile

§

TokenNotFound

token not found

§

CaptchaError(CaptchaError)

§

DBError(DBErrorWrapper)

§

CaptchaNotFound

captcha not found

§

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 -by ==.
This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+

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, demand: &mut Demand<'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 + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/errors/enum.__Field.html b/mcaptcha/errors/enum.__Field.html new file mode 100644 index 00000000..603b9a12 --- /dev/null +++ b/mcaptcha/errors/enum.__Field.html @@ -0,0 +1,22 @@ +__Field in mcaptcha::errors - Rust

Enum mcaptcha::errors::__Field

source ·
enum __Field {
+    __field0,
+    __ignore,
+}

Variants§

§

__field0

§

__ignore

Trait Implementations§

source§

impl<'de> Deserialize<'de> for __Field

source§

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/errors/index.html b/mcaptcha/errors/index.html index 5af0bd5e..37119a1f 100644 --- a/mcaptcha/errors/index.html +++ b/mcaptcha/errors/index.html @@ -1 +1 @@ -mcaptcha::errors - Rust

Module mcaptcha::errors

source ·

Structs

Enums

Type Definitions

\ No newline at end of file +mcaptcha::errors - Rust

Module mcaptcha::errors

source ·

Structs

Enums

Constants

Type Definitions

\ No newline at end of file diff --git a/mcaptcha/errors/sidebar-items.js b/mcaptcha/errors/sidebar-items.js index 5e3d8674..c9d10c7e 100644 --- a/mcaptcha/errors/sidebar-items.js +++ b/mcaptcha/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["PageError",""],["ServiceError",""]],"struct":[["DBErrorWrapper",""],["ErrorToResponse",""],["SmtpErrorWrapper",""]],"type":[["PageResult",""],["ServiceResult",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["PageError","ServiceError","__Field"],"struct":["DBErrorWrapper","ErrorToResponse","SmtpErrorWrapper","__FieldVisitor","__Visitor"],"type":["PageResult","ServiceResult"]}; \ No newline at end of file diff --git a/mcaptcha/errors/struct.DBErrorWrapper.html b/mcaptcha/errors/struct.DBErrorWrapper.html index 246a7912..67dad48d 100644 --- a/mcaptcha/errors/struct.DBErrorWrapper.html +++ b/mcaptcha/errors/struct.DBErrorWrapper.html @@ -1,12 +1,22 @@ -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 ==.
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§

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).

+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, demand: &mut Demand<'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 + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/errors/struct.ErrorToResponse.html b/mcaptcha/errors/struct.ErrorToResponse.html index 63ab1799..74cf2020 100644 --- a/mcaptcha/errors/struct.ErrorToResponse.html +++ b/mcaptcha/errors/struct.ErrorToResponse.html @@ -1,11 +1,22 @@ -ErrorToResponse in mcaptcha::errors - Rust
pub struct ErrorToResponse {
-    pub error: String,
-}

Fields§

§error: String

Trait Implementations§

Deserialize this value from the given Serde deserializer. 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 -Instrumented wrapper. Read more
Instruments this type with the current Span, returning an -Instrumented wrapper. Read more

Calls U::from(self).

+ErrorToResponse in mcaptcha::errors - Rust
pub struct ErrorToResponse {
+    pub error: String,
+}

Fields§

§error: String

Trait Implementations§

source§

impl<'de> Deserialize<'de> for ErrorToResponse

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 Serialize for ErrorToResponse

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§

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

\ No newline at end of file diff --git a/mcaptcha/errors/struct.SmtpErrorWrapper.html b/mcaptcha/errors/struct.SmtpErrorWrapper.html index a8311f50..0bf9ad60 100644 --- a/mcaptcha/errors/struct.SmtpErrorWrapper.html +++ b/mcaptcha/errors/struct.SmtpErrorWrapper.html @@ -1,12 +1,22 @@ -SmtpErrorWrapper in mcaptcha::errors - Rust
pub struct SmtpErrorWrapper(SmtpError);

Tuple Fields§

§0: SmtpError

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 ==.
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§

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).

+SmtpErrorWrapper in mcaptcha::errors - Rust
pub struct SmtpErrorWrapper(SmtpError);

Tuple Fields§

§0: SmtpError

Trait Implementations§

source§

impl Debug for SmtpErrorWrapper

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SmtpErrorWrapper

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SmtpErrorWrapper

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, demand: &mut Demand<'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<SmtpErrorWrapper> for SmtpErrorWrapper

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 + T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to -provide by using demand. Read more
Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file +From<T> for U chooses to do.

+
source§

impl<E> Provider for Ewhere + E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to +provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/errors/struct.__FieldVisitor.html b/mcaptcha/errors/struct.__FieldVisitor.html new file mode 100644 index 00000000..b8560ecf --- /dev/null +++ b/mcaptcha/errors/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::errors - Rust
struct __FieldVisitor;

Trait Implementations§

source§

impl<'de> Visitor<'de> for __FieldVisitor

§

type Value = __Field

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

The input contains a u64. Read more
source§

fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/errors/struct.__Visitor.html b/mcaptcha/errors/struct.__Visitor.html new file mode 100644 index 00000000..83077733 --- /dev/null +++ b/mcaptcha/errors/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::errors - Rust

Struct mcaptcha::errors::__Visitor

source ·
struct __Visitor<'de> {
+    marker: PhantomData<ErrorToResponse>,
+    lifetime: PhantomData<&'de ()>,
+}

Fields§

§marker: PhantomData<ErrorToResponse>§lifetime: PhantomData<&'de ()>

Trait Implementations§

source§

impl<'de> Visitor<'de> for __Visitor<'de>

§

type Value = ErrorToResponse

The value produced by this visitor.
source§

fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

Format a message stating what data this Visitor expects to receive. Read more
source§

fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

The input contains a sequence of elements. Read more
source§

fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

The input contains a key-value map. Read more
source§

fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

The input contains a boolean. Read more
source§

fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

The input contains an i8. Read more
source§

fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

The input contains an i16. Read more
source§

fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

The input contains an i32. Read more
source§

fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

The input contains an i64. Read more
source§

fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

The input contains a i128. Read more
source§

fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

The input contains a u8. Read more
source§

fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

The input contains a u16. Read more
source§

fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

The input contains a u32. Read more
source§

fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

The input contains a u64. Read more
source§

fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

The input contains a u128. Read more
source§

fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

The input contains an f32. Read more
source§

fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

The input contains an f64. Read more
source§

fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

The input contains a char. Read more
source§

fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

The input contains a string that lives at least as long as the +Deserializer. Read more
source§

fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

The input contains a string and ownership of the string is being given +to the Visitor. Read more
source§

fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
source§

fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array that lives at least as long as the +Deserializer. Read more
source§

fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
source§

fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains an optional that is absent. Read more
source§

fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains an optional that is present. Read more
source§

fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

The input contains a unit (). Read more
source§

fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

The input contains a newtype struct. Read more
source§

fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

The input contains an enum. Read more

Auto Trait Implementations§

§

impl<'de> RefUnwindSafe for __Visitor<'de>

§

impl<'de> Send for __Visitor<'de>

§

impl<'de> Sync for __Visitor<'de>

§

impl<'de> Unpin for __Visitor<'de>

§

impl<'de> UnwindSafe for __Visitor<'de>

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<'de, T> Expected for Twhere + T: Visitor<'de>,

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/mcaptcha/errors/type.PageResult.html b/mcaptcha/errors/type.PageResult.html index f4c7e6c5..b6f5efa3 100644 --- a/mcaptcha/errors/type.PageResult.html +++ b/mcaptcha/errors/type.PageResult.html @@ -1 +1 @@ -PageResult in mcaptcha::errors - Rust

Type Definition mcaptcha::errors::PageResult

source ·
pub type PageResult<V> = Result<V, PageError>;
\ No newline at end of file +PageResult in mcaptcha::errors - Rust

Type Definition mcaptcha::errors::PageResult

source ·
pub type PageResult<V> = Result<V, PageError>;
\ No newline at end of file diff --git a/mcaptcha/errors/type.ServiceResult.html b/mcaptcha/errors/type.ServiceResult.html index 64f99a7b..9b3ca22b 100644 --- a/mcaptcha/errors/type.ServiceResult.html +++ b/mcaptcha/errors/type.ServiceResult.html @@ -1 +1 @@ -ServiceResult in mcaptcha::errors - Rust

Type Definition mcaptcha::errors::ServiceResult

source ·
pub type ServiceResult<V> = Result<V, ServiceError>;
\ No newline at end of file +ServiceResult in mcaptcha::errors - Rust

Type Definition mcaptcha::errors::ServiceResult

source ·
pub type ServiceResult<V> = Result<V, ServiceError>;
\ No newline at end of file diff --git a/mcaptcha/fn.__stability.html b/mcaptcha/fn.__stability.html new file mode 100644 index 00000000..01d28c8a --- /dev/null +++ b/mcaptcha/fn.__stability.html @@ -0,0 +1 @@ +__stability in mcaptcha - Rust

Function mcaptcha::__stability

source ·
pub(crate) fn __stability() -> &'static Settings
\ No newline at end of file diff --git a/mcaptcha/fn.__static_ref_initialize.html b/mcaptcha/fn.__static_ref_initialize.html new file mode 100644 index 00000000..aff1b2ba --- /dev/null +++ b/mcaptcha/fn.__static_ref_initialize.html @@ -0,0 +1 @@ +__static_ref_initialize in mcaptcha - Rust
pub(crate) fn __static_ref_initialize() -> Settings
\ No newline at end of file diff --git a/mcaptcha/fn.get_identity_service.html b/mcaptcha/fn.get_identity_service.html index fd61ba36..37765bd4 100644 --- a/mcaptcha/fn.get_identity_service.html +++ b/mcaptcha/fn.get_identity_service.html @@ -1 +1,3 @@ -get_identity_service in mcaptcha - Rust
pub fn get_identity_service(
    settings: &Settings
) -> IdentityService<CookieIdentityPolicy>
\ No newline at end of file +get_identity_service in mcaptcha - Rust
pub fn get_identity_service(
+    settings: &Settings
+) -> IdentityService<CookieIdentityPolicy>
\ No newline at end of file diff --git a/mcaptcha/fn.get_json_err.html b/mcaptcha/fn.get_json_err.html index 817af2c4..85569017 100644 --- a/mcaptcha/fn.get_json_err.html +++ b/mcaptcha/fn.get_json_err.html @@ -1 +1 @@ -get_json_err in mcaptcha - Rust

Function mcaptcha::get_json_err

source ·
pub fn get_json_err() -> JsonConfig
\ No newline at end of file +get_json_err in mcaptcha - Rust

Function mcaptcha::get_json_err

source ·
pub fn get_json_err() -> JsonConfig
\ No newline at end of file diff --git a/mcaptcha/fn.main.html b/mcaptcha/fn.main.html index ab027a4b..7c51b262 100644 --- a/mcaptcha/fn.main.html +++ b/mcaptcha/fn.main.html @@ -1 +1 @@ -main in mcaptcha - Rust

Function mcaptcha::main

source ·
pub(crate) fn main() -> Result<()>
\ No newline at end of file +main in mcaptcha - Rust

Function mcaptcha::main

source ·
pub(crate) fn main() -> Result<()>
\ No newline at end of file diff --git a/mcaptcha/index.html b/mcaptcha/index.html index 0169a7d5..5b74f0e9 100644 --- a/mcaptcha/index.html +++ b/mcaptcha/index.html @@ -1 +1 @@ -mcaptcha - Rust

Crate mcaptcha

source ·

Modules

api 🔒
data 🔒
App data: redis cache, database connections, etc.
date 🔒
db 🔒
demo 🔒
docs 🔒
email 🔒
errors 🔒
pages 🔒
routes 🔒
settings 🔒
stats 🔒
widget 🔒
User facing CAPTCHA widget

Structs

Constants

Functions

Type Definitions

\ No newline at end of file +mcaptcha - Rust

Crate mcaptcha

source ·

Modules

Structs

Constants

Statics

Functions

Type Definitions

\ No newline at end of file diff --git a/mcaptcha/pages/auth/fn.services.html b/mcaptcha/pages/auth/fn.services.html index 69e57859..ba5607a7 100644 --- a/mcaptcha/pages/auth/fn.services.html +++ b/mcaptcha/pages/auth/fn.services.html @@ -1 +1 @@ -services in mcaptcha::pages::auth - Rust

Function mcaptcha::pages::auth::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file +services in mcaptcha::pages::auth - Rust

Function mcaptcha::pages::auth::services

source ·
pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/mcaptcha/pages/auth/index.html b/mcaptcha/pages/auth/index.html index 697599aa..b4399484 100644 --- a/mcaptcha/pages/auth/index.html +++ b/mcaptcha/pages/auth/index.html @@ -1 +1 @@ -mcaptcha::pages::auth - Rust

Module mcaptcha::pages::auth

source ·

Modules

Functions

\ No newline at end of file +mcaptcha::pages::auth - Rust

Module mcaptcha::pages::auth

source ·

Modules

Functions

\ No newline at end of file diff --git a/mcaptcha/pages/auth/login/constant.PAGE.html b/mcaptcha/pages/auth/login/constant.PAGE.html index 51d781b2..f424827c 100644 --- a/mcaptcha/pages/auth/login/constant.PAGE.html +++ b/mcaptcha/pages/auth/login/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::auth::login - Rust

Constant mcaptcha::pages::auth::login::PAGE

source ·
const PAGE: &str = "Login";
\ No newline at end of file +PAGE in mcaptcha::pages::auth::login - Rust

Constant mcaptcha::pages::auth::login::PAGE

source ·
const PAGE: &str = "Login";
\ No newline at end of file diff --git a/mcaptcha/pages/auth/login/fn.__stability.html b/mcaptcha/pages/auth/login/fn.__stability.html new file mode 100644 index 00000000..2b7b2ab8 --- /dev/null +++ b/mcaptcha/pages/auth/login/fn.__stability.html @@ -0,0 +1 @@ +__stability in mcaptcha::pages::auth::login - Rust

Function mcaptcha::pages::auth::login::__stability

source ·
fn __stability() -> &'static String
\ No newline at end of file diff --git a/mcaptcha/pages/auth/login/fn.__static_ref_initialize.html b/mcaptcha/pages/auth/login/fn.__static_ref_initialize.html new file mode 100644 index 00000000..e18724ea --- /dev/null +++ b/mcaptcha/pages/auth/login/fn.__static_ref_initialize.html @@ -0,0 +1 @@ +__static_ref_initialize in mcaptcha::pages::auth::login - Rust
fn __static_ref_initialize() -> String
\ No newline at end of file diff --git a/mcaptcha/pages/auth/login/fn.login.html b/mcaptcha/pages/auth/login/fn.login.html new file mode 100644 index 00000000..b6c40820 --- /dev/null +++ b/mcaptcha/pages/auth/login/fn.login.html @@ -0,0 +1 @@ +login in mcaptcha::pages::auth::login - Rust

Function mcaptcha::pages::auth::login::login

source ·
pub async fn login() -> impl Responder
\ No newline at end of file diff --git a/mcaptcha/pages/auth/login/index.html b/mcaptcha/pages/auth/login/index.html index abd9c818..83038edb 100644 --- a/mcaptcha/pages/auth/login/index.html +++ b/mcaptcha/pages/auth/login/index.html @@ -1 +1 @@ -mcaptcha::pages::auth::login - Rust

Module mcaptcha::pages::auth::login

source ·

Structs

INDEX 🔒
IndexPage 🔒

Constants

PAGE 🔒
\ No newline at end of file +mcaptcha::pages::auth::login - Rust

Module mcaptcha::pages::auth::login

source ·

Structs

Constants

Statics

Functions

\ No newline at end of file diff --git a/mcaptcha/pages/auth/login/sidebar-items.js b/mcaptcha/pages/auth/login/sidebar-items.js index b7f08a60..baafaa19 100644 --- a/mcaptcha/pages/auth/login/sidebar-items.js +++ b/mcaptcha/pages/auth/login/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"struct":[["INDEX",""],["IndexPage",""],["login",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE"],"fn":["__stability","__static_ref_initialize","login"],"static":["LAZY","SIZE_HINT"],"struct":["INDEX","IndexPage","login"]}; \ No newline at end of file diff --git a/mcaptcha/pages/auth/login/static.LAZY.html b/mcaptcha/pages/auth/login/static.LAZY.html new file mode 100644 index 00000000..8d3f11d9 --- /dev/null +++ b/mcaptcha/pages/auth/login/static.LAZY.html @@ -0,0 +1 @@ +LAZY in mcaptcha::pages::auth::login - Rust

Static mcaptcha::pages::auth::login::LAZY

source ·
static LAZY: Lazy<String>
\ No newline at end of file diff --git a/mcaptcha/pages/auth/login/static.SIZE_HINT.html b/mcaptcha/pages/auth/login/static.SIZE_HINT.html new file mode 100644 index 00000000..163dccd6 --- /dev/null +++ b/mcaptcha/pages/auth/login/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::auth::login - Rust
static SIZE_HINT: SizeHint
\ No newline at end of file diff --git a/mcaptcha/pages/auth/login/struct.INDEX.html b/mcaptcha/pages/auth/login/struct.INDEX.html index 348af045..f4bbd63e 100644 --- a/mcaptcha/pages/auth/login/struct.INDEX.html +++ b/mcaptcha/pages/auth/login/struct.INDEX.html @@ -1,28 +1,28 @@ -INDEX in mcaptcha::pages::auth::login - Rust

Struct mcaptcha::pages::auth::login::INDEX

source ·
struct INDEX {
-    __private_field: (),
-}

Fields§

§__private_field: ()

Methods from Deref<Target = String>§

Extracts a string slice containing the entire String.

+INDEX in mcaptcha::pages::auth::login - Rust

Struct mcaptcha::pages::auth::login::INDEX

source ·
struct INDEX {
+    __private_field: (),
+}

Fields§

§__private_field: ()

Methods from Deref<Target = String>§

1.7.0 · source

pub fn as_str(&self) -> &str

Extracts a string slice containing the entire String.

Examples

Basic usage:

let s = String::from("foo");
 
 assert_eq!("foo", s.as_str());
-

Returns this String’s capacity, in bytes.

+
1.0.0 · source

pub fn capacity(&self) -> usize

Returns this String’s capacity, in bytes.

Examples

Basic usage:

let s = String::with_capacity(10);
 
 assert!(s.capacity() >= 10);
-

Returns a byte slice of this String’s contents.

-

The inverse of this method is from_utf8.

+
1.0.0 · source

pub fn as_bytes(&self) -> &[u8]

Returns a byte slice of this String’s contents.

+

The inverse of this method is from_utf8.

Examples

Basic usage:

let s = String::from("hello");
 
 assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
-

Returns the length of this String, in bytes, not chars or +

1.0.0 · source

pub fn len(&self) -> usize

Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

Examples
@@ -34,7 +34,7 @@ length of the string.

let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
-

Returns true if this String has a length of zero, and false otherwise.

+
1.0.0 · source

pub fn is_empty(&self) -> bool

Returns true if this String has a length of zero, and false otherwise.

Examples

Basic usage:

@@ -43,8 +43,8 @@ length of the string.

v.push('a'); assert!(!v.is_empty());
-

Methods from Deref<Target = str>§

Returns the length of self.

-

This length is in bytes, not chars or graphemes. In other words, +

Methods from Deref<Target = str>§

1.0.0 · source

pub fn len(&self) -> usize

Returns the length of self.

+

This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

Examples

Basic usage:

@@ -54,7 +54,7 @@ it might not be what a human considers the length of the string.

assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
-

Returns true if self has a length of zero bytes.

+
1.0.0 · source

pub fn is_empty(&self) -> bool

Returns true if self has a length of zero bytes.

Examples

Basic usage:

@@ -63,7 +63,7 @@ it might not be what a human considers the length of the string.

let s = "not empty"; assert!(!s.is_empty());
-

Checks that index-th byte is the first byte in a UTF-8 code point +

1.9.0 · source

pub fn is_char_boundary(&self, index: usize) -> bool

Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

The start and end of the string (when index == self.len()) are considered to be boundaries.

@@ -80,7 +80,7 @@ considered to be boundaries.

// third byte of `老` assert!(!s.is_char_boundary(8));
-
🔬This is a nightly-only experimental API. (round_char_boundary)

Finds the closest x not exceeding index where is_char_boundary(x) is true.

+
source

pub fn floor_char_boundary(&self, index: usize) -> usize

🔬This is a nightly-only experimental API. (round_char_boundary)

Finds the closest x not exceeding index where is_char_boundary(x) is true.

This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -95,8 +95,8 @@ includes 🧑 (person) instead.

let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
-
🔬This is a nightly-only experimental API. (round_char_boundary)

Finds the closest x not below index where is_char_boundary(x) is true.

-

This method is the natural complement to floor_char_boundary. See that method +

source

pub fn ceil_char_boundary(&self, index: usize) -> usize

🔬This is a nightly-only experimental API. (round_char_boundary)

Finds the closest x not below index where is_char_boundary(x) is true.

+

This method is the natural complement to floor_char_boundary. See that method for more details.

Panics

Panics if index > self.len().

@@ -109,14 +109,14 @@ for more details.

let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
-

Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

+
1.0.0 · source

pub fn as_bytes(&self) -> &[u8]

Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

Examples

Basic usage:

let bytes = "bors".as_bytes();
 assert_eq!(b"bors", bytes);
-

Converts a mutable string slice to a mutable byte slice.

+
1.20.0 · source

pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

Converts a mutable string slice to a mutable byte slice.

Safety

The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

@@ -142,26 +142,27 @@ before the borrow ends and the underlying str is used.

} assert_eq!("🍔∈🌏", s);
-

Converts a string slice to a raw pointer.

+
1.0.0 · source

pub fn as_ptr(&self) -> *const u8

Converts a string slice to a raw pointer.

As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

+If you need to mutate the contents of the string slice, use as_mut_ptr.

Examples

Basic usage:

let s = "Hello";
 let ptr = s.as_ptr();
-

Converts a mutable string slice to a raw pointer.

+
1.36.0 · source

pub fn as_mut_ptr(&mut self) -> *mut u8

Converts a mutable string slice to a raw pointer.

As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

-

Returns a subslice of str.

+
1.20.0 · source

pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

Returns a subslice of str.

This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

+None whenever equivalent indexing operation would panic.

Examples
let v = String::from("🗻∈🌏");
 
@@ -173,9 +174,10 @@ modified in a way that it remains valid UTF-8.

// out of bounds assert!(v.get(..42).is_none());
-

Returns a mutable subslice of str.

+
1.20.0 · source

pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

Returns a mutable subslice of str.

This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

+None whenever equivalent indexing operation would panic.

Examples
let mut v = String::from("hello");
 // correct length
@@ -194,7 +196,8 @@ modified in a way that it remains valid UTF-8.

assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
-

Returns an unchecked subslice of str.

+
1.20.0 · source

pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

Returns an unchecked subslice of str.

This is the unchecked alternative to indexing the str.

Safety

Callers of this function are responsible that these preconditions are @@ -213,7 +216,11 @@ violate the invariants communicated by the str type.

assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
-

Returns a mutable, unchecked subslice of str.

+
1.20.0 · source

pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

Returns a mutable, unchecked subslice of str.

This is the unchecked alternative to indexing the str.

Safety

Callers of this function are responsible that these preconditions are @@ -232,14 +239,14 @@ violate the invariants communicated by the str type.

assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
-
👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

Creates a string slice from another string slice, bypassing safety +

1.0.0 · source

pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

Creates a string slice from another string slice, bypassing safety checks.

This is generally not recommended, use with caution! For a safe -alternative see str and Index.

+alternative see str and Index.

This new slice goes from begin to end, including begin but excluding end.

To get a mutable string slice instead, see the -slice_mut_unchecked method.

+slice_mut_unchecked method.

Safety

Callers of this function are responsible that three preconditions are satisfied:

@@ -262,14 +269,14 @@ satisfied:

unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
-
👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

Creates a string slice from another string slice, bypassing safety +

1.5.0 · source

pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

+alternative see str and IndexMut.

This new slice goes from begin to end, including begin but excluding end.

To get an immutable string slice instead, see the -slice_unchecked method.

+slice_unchecked method.

Safety

Callers of this function are responsible that three preconditions are satisfied:

@@ -278,12 +285,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -297,12 +304,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -317,10 +324,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -343,7 +350,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -353,12 +360,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -379,7 +386,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -393,7 +400,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -407,12 +414,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -437,10 +444,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -465,7 +472,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -495,8 +502,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -506,10 +513,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -518,10 +526,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -530,10 +539,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -542,10 +553,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -569,10 +581,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -594,16 +608,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -665,13 +680,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -684,15 +700,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -711,20 +729,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -736,11 +755,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -748,7 +769,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -759,16 +780,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -788,17 +810,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -814,29 +838,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -845,15 +873,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -862,18 +892,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -885,17 +916,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -907,7 +940,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -916,7 +949,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -936,7 +969,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -956,7 +989,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -977,7 +1010,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -998,9 +1031,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1013,9 +1048,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1030,29 +1066,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1070,9 +1111,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1087,9 +1129,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1107,15 +1151,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1133,21 +1178,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1158,7 +1203,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1169,7 +1214,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1188,7 +1233,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1205,7 +1250,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1222,8 +1267,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1237,8 +1283,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1252,11 +1299,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1279,11 +1326,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1301,7 +1348,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1310,36 +1357,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for INDEX

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for INDEX

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for INDEX

    §

    impl Send for INDEX

    §

    impl Sync for INDEX

    §

    impl Unpin for INDEX

    §

    impl UnwindSafe for INDEX

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/login/struct.IndexPage.html b/mcaptcha/pages/auth/login/struct.IndexPage.html index 725741ad..325c8174 100644 --- a/mcaptcha/pages/auth/login/struct.IndexPage.html +++ b/mcaptcha/pages/auth/login/struct.IndexPage.html @@ -1,9 +1,18 @@ -IndexPage in mcaptcha::pages::auth::login - Rust
    struct IndexPage;

    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
    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).

    +IndexPage in mcaptcha::pages::auth::login - Rust
    struct IndexPage;

    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 Default for IndexPage

    source§

    fn default() -> Self

    Returns the “default value” for a type. 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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/login/struct.login.html b/mcaptcha/pages/auth/login/struct.login.html index cda7e0c2..a7a227eb 100644 --- a/mcaptcha/pages/auth/login/struct.login.html +++ b/mcaptcha/pages/auth/login/struct.login.html @@ -1,9 +1,17 @@ -login in mcaptcha::pages::auth::login - Rust

    Struct mcaptcha::pages::auth::login::login

    source ·
    pub struct login;

    Trait Implementations§

    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).

    +login in mcaptcha::pages::auth::login - Rust

    Struct mcaptcha::pages::auth::login::login

    source ·
    pub struct login;

    Trait Implementations§

    source§

    impl HttpServiceFactory for login

    source§

    fn register(self, __config: &mut AppService)

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for login

    §

    impl Send for login

    §

    impl Sync for login

    §

    impl Unpin for login

    §

    impl UnwindSafe for login

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/constant.PAGE.html b/mcaptcha/pages/auth/register/constant.PAGE.html index fa413942..346c65f8 100644 --- a/mcaptcha/pages/auth/register/constant.PAGE.html +++ b/mcaptcha/pages/auth/register/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::auth::register - Rust

    Constant mcaptcha::pages::auth::register::PAGE

    source ·
    const PAGE: &str = "Join";
    \ No newline at end of file +PAGE in mcaptcha::pages::auth::register - Rust

    Constant mcaptcha::pages::auth::register::PAGE

    source ·
    const PAGE: &str = "Join";
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/fn.__stability.html b/mcaptcha/pages/auth/register/fn.__stability.html new file mode 100644 index 00000000..9b8cd2b7 --- /dev/null +++ b/mcaptcha/pages/auth/register/fn.__stability.html @@ -0,0 +1 @@ +__stability in mcaptcha::pages::auth::register - Rust
    fn __stability() -> &'static String
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/fn.__static_ref_initialize.html b/mcaptcha/pages/auth/register/fn.__static_ref_initialize.html new file mode 100644 index 00000000..d0405af0 --- /dev/null +++ b/mcaptcha/pages/auth/register/fn.__static_ref_initialize.html @@ -0,0 +1 @@ +__static_ref_initialize in mcaptcha::pages::auth::register - Rust
    fn __static_ref_initialize() -> String
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/fn.join.html b/mcaptcha/pages/auth/register/fn.join.html new file mode 100644 index 00000000..16dd1882 --- /dev/null +++ b/mcaptcha/pages/auth/register/fn.join.html @@ -0,0 +1 @@ +join in mcaptcha::pages::auth::register - Rust

    Function mcaptcha::pages::auth::register::join

    source ·
    pub async fn join() -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/index.html b/mcaptcha/pages/auth/register/index.html index 320bda51..ba772f06 100644 --- a/mcaptcha/pages/auth/register/index.html +++ b/mcaptcha/pages/auth/register/index.html @@ -1 +1 @@ -mcaptcha::pages::auth::register - Rust
    \ No newline at end of file +mcaptcha::pages::auth::register - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/sidebar-items.js b/mcaptcha/pages/auth/register/sidebar-items.js index 21c91dab..97664e52 100644 --- a/mcaptcha/pages/auth/register/sidebar-items.js +++ b/mcaptcha/pages/auth/register/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"struct":[["INDEX",""],["IndexPage",""],["join",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE"],"fn":["__stability","__static_ref_initialize","join"],"static":["LAZY","SIZE_HINT"],"struct":["INDEX","IndexPage","join"]}; \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/static.LAZY.html b/mcaptcha/pages/auth/register/static.LAZY.html new file mode 100644 index 00000000..9486a081 --- /dev/null +++ b/mcaptcha/pages/auth/register/static.LAZY.html @@ -0,0 +1 @@ +LAZY in mcaptcha::pages::auth::register - Rust

    Static mcaptcha::pages::auth::register::LAZY

    source ·
    static LAZY: Lazy<String>
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/static.SIZE_HINT.html b/mcaptcha/pages/auth/register/static.SIZE_HINT.html new file mode 100644 index 00000000..bda1f293 --- /dev/null +++ b/mcaptcha/pages/auth/register/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::auth::register - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/struct.INDEX.html b/mcaptcha/pages/auth/register/struct.INDEX.html index baa2cdb8..ecd49ef0 100644 --- a/mcaptcha/pages/auth/register/struct.INDEX.html +++ b/mcaptcha/pages/auth/register/struct.INDEX.html @@ -1,28 +1,28 @@ -INDEX in mcaptcha::pages::auth::register - Rust

    Struct mcaptcha::pages::auth::register::INDEX

    source ·
    struct INDEX {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    Extracts a string slice containing the entire String.

    +INDEX in mcaptcha::pages::auth::register - Rust

    Struct mcaptcha::pages::auth::register::INDEX

    source ·
    struct INDEX {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    1.7.0 · source

    pub fn as_str(&self) -> &str

    Extracts a string slice containing the entire String.

    Examples

    Basic usage:

    let s = String::from("foo");
     
     assert_eq!("foo", s.as_str());
    -

    Returns this String’s capacity, in bytes.

    +
    1.0.0 · source

    pub fn capacity(&self) -> usize

    Returns this String’s capacity, in bytes.

    Examples

    Basic usage:

    let s = String::with_capacity(10);
     
     assert!(s.capacity() >= 10);
    -

    Returns a byte slice of this String’s contents.

    -

    The inverse of this method is from_utf8.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Returns a byte slice of this String’s contents.

    +

    The inverse of this method is from_utf8.

    Examples

    Basic usage:

    let s = String::from("hello");
     
     assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
    -

    Returns the length of this String, in bytes, not chars or +

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples
    @@ -34,7 +34,7 @@ length of the string.

    let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
    -

    Returns true if this String has a length of zero, and false otherwise.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if this String has a length of zero, and false otherwise.

    Examples

    Basic usage:

    @@ -43,8 +43,8 @@ length of the string.

    v.push('a'); assert!(!v.is_empty());
    -

    Methods from Deref<Target = str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -54,7 +54,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -63,7 +63,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -80,7 +80,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -95,8 +95,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -109,14 +109,14 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a mutable string slice to a mutable byte slice.

    +
    1.20.0 · source

    pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

    Converts a mutable string slice to a mutable byte slice.

    Safety

    The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

    @@ -142,26 +142,27 @@ before the borrow ends and the underlying str is used.

    } assert_eq!("🍔∈🌏", s);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Converts a mutable string slice to a raw pointer.

    +
    1.36.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut u8

    Converts a mutable string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -173,9 +174,10 @@ modified in a way that it remains valid UTF-8.

    // out of bounds assert!(v.get(..42).is_none());
    -

    Returns a mutable subslice of str.

    +
    1.20.0 · source

    pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a mutable subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let mut v = String::from("hello");
     // correct length
    @@ -194,7 +196,8 @@ modified in a way that it remains valid UTF-8.

    assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -213,7 +216,11 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -

    Returns a mutable, unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns a mutable, unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -232,14 +239,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -262,14 +269,14 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.5.0 · source

    pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

    +alternative see str and IndexMut.

    This new slice goes from begin to end, including begin but excluding end.

    To get an immutable string slice instead, see the -slice_unchecked method.

    +slice_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -278,12 +285,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -297,12 +304,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -317,10 +324,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -343,7 +350,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -353,12 +360,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -379,7 +386,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -393,7 +400,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -407,12 +414,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -437,10 +444,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -465,7 +472,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -495,8 +502,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -506,10 +513,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -518,10 +526,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -530,10 +539,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -542,10 +553,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -569,10 +581,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -594,16 +608,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -665,13 +680,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -684,15 +700,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -711,20 +729,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -736,11 +755,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -748,7 +769,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -759,16 +780,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -788,17 +810,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -814,29 +838,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -845,15 +873,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -862,18 +892,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -885,17 +916,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -907,7 +940,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -916,7 +949,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -936,7 +969,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -956,7 +989,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -977,7 +1010,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -998,9 +1031,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1013,9 +1048,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1030,29 +1066,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1070,9 +1111,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1087,9 +1129,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1107,15 +1151,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1133,21 +1178,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1158,7 +1203,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1169,7 +1214,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1188,7 +1233,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1205,7 +1250,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1222,8 +1267,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1237,8 +1283,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1252,11 +1299,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1279,11 +1326,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1301,7 +1348,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1310,36 +1357,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for INDEX

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for INDEX

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for INDEX

    §

    impl Send for INDEX

    §

    impl Sync for INDEX

    §

    impl Unpin for INDEX

    §

    impl UnwindSafe for INDEX

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/struct.IndexPage.html b/mcaptcha/pages/auth/register/struct.IndexPage.html index 74f9eaa5..c9594aff 100644 --- a/mcaptcha/pages/auth/register/struct.IndexPage.html +++ b/mcaptcha/pages/auth/register/struct.IndexPage.html @@ -1,9 +1,18 @@ -IndexPage in mcaptcha::pages::auth::register - Rust
    struct IndexPage;

    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
    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).

    +IndexPage in mcaptcha::pages::auth::register - Rust
    struct IndexPage;

    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 Default for IndexPage

    source§

    fn default() -> Self

    Returns the “default value” for a type. 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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/register/struct.join.html b/mcaptcha/pages/auth/register/struct.join.html index b773670e..dc5680e1 100644 --- a/mcaptcha/pages/auth/register/struct.join.html +++ b/mcaptcha/pages/auth/register/struct.join.html @@ -1,9 +1,17 @@ -join in mcaptcha::pages::auth::register - Rust

    Struct mcaptcha::pages::auth::register::join

    source ·
    pub struct join;

    Trait Implementations§

    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).

    +join in mcaptcha::pages::auth::register - Rust

    Struct mcaptcha::pages::auth::register::join

    source ·
    pub struct join;

    Trait Implementations§

    source§

    impl HttpServiceFactory for join

    source§

    fn register(self, __config: &mut AppService)

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for join

    §

    impl Send for join

    §

    impl Sync for join

    §

    impl Unpin for join

    §

    impl UnwindSafe for join

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/routes/constant.AUTH.html b/mcaptcha/pages/auth/routes/constant.AUTH.html new file mode 100644 index 00000000..dcd89cde --- /dev/null +++ b/mcaptcha/pages/auth/routes/constant.AUTH.html @@ -0,0 +1 @@ +AUTH in mcaptcha::pages::auth::routes - Rust

    Constant mcaptcha::pages::auth::routes::AUTH

    source ·
    const AUTH: Auth;
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/routes/index.html b/mcaptcha/pages/auth/routes/index.html index 8ae1dead..c821d1ea 100644 --- a/mcaptcha/pages/auth/routes/index.html +++ b/mcaptcha/pages/auth/routes/index.html @@ -1 +1 @@ -mcaptcha::pages::auth::routes - Rust
    \ No newline at end of file +mcaptcha::pages::auth::routes - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/routes/sidebar-items.js b/mcaptcha/pages/auth/routes/sidebar-items.js index 57506bd5..3083f263 100644 --- a/mcaptcha/pages/auth/routes/sidebar-items.js +++ b/mcaptcha/pages/auth/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Auth",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["AUTH"],"struct":["Auth"]}; \ No newline at end of file diff --git a/mcaptcha/pages/auth/routes/struct.Auth.html b/mcaptcha/pages/auth/routes/struct.Auth.html index 5750e100..e1b7d3a6 100644 --- a/mcaptcha/pages/auth/routes/struct.Auth.html +++ b/mcaptcha/pages/auth/routes/struct.Auth.html @@ -1,12 +1,20 @@ -Auth in mcaptcha::pages::auth::routes - Rust

    Struct mcaptcha::pages::auth::routes::Auth

    source ·
    pub struct Auth {
    -    pub login: &'static str,
    -    pub join: &'static str,
    -}

    Fields§

    §login: &'static str§join: &'static str

    Implementations§

    Trait Implementations§

    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).

    +Auth in mcaptcha::pages::auth::routes - Rust

    Struct mcaptcha::pages::auth::routes::Auth

    source ·
    pub struct Auth {
    +    pub login: &'static str,
    +    pub join: &'static str,
    +}

    Fields§

    §login: &'static str§join: &'static str

    Implementations§

    source§

    impl Auth

    source

    pub const fn new() -> Auth

    source

    pub const fn get_sitemap() -> [&'static str; 2]

    Trait Implementations§

    source§

    impl GetLoginRoute for Auth

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Auth

    §

    impl Send for Auth

    §

    impl Sync for Auth

    §

    impl Unpin for Auth

    §

    impl UnwindSafe for Auth

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/sidebar-items.js b/mcaptcha/pages/auth/sidebar-items.js index c5aaef1a..79782ef6 100644 --- a/mcaptcha/pages/auth/sidebar-items.js +++ b/mcaptcha/pages/auth/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["login",""],["register",""],["routes",""],["sudo",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["services"],"mod":["login","register","routes","sudo"]}; \ No newline at end of file diff --git a/mcaptcha/pages/auth/sudo/constant.PAGE.html b/mcaptcha/pages/auth/sudo/constant.PAGE.html index 801f58e5..b0de57f4 100644 --- a/mcaptcha/pages/auth/sudo/constant.PAGE.html +++ b/mcaptcha/pages/auth/sudo/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::auth::sudo - Rust

    Constant mcaptcha::pages::auth::sudo::PAGE

    source ·
    pub const PAGE: &str = "Confirm Access";
    \ No newline at end of file +PAGE in mcaptcha::pages::auth::sudo - Rust

    Constant mcaptcha::pages::auth::sudo::PAGE

    source ·
    pub const PAGE: &str = "Confirm Access";
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/sudo/index.html b/mcaptcha/pages/auth/sudo/index.html index 1fba538e..71cd03a5 100644 --- a/mcaptcha/pages/auth/sudo/index.html +++ b/mcaptcha/pages/auth/sudo/index.html @@ -1 +1 @@ -mcaptcha::pages::auth::sudo - Rust
    \ No newline at end of file +mcaptcha::pages::auth::sudo - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/sudo/sidebar-items.js b/mcaptcha/pages/auth/sudo/sidebar-items.js index 8c4ef186..034ec9de 100644 --- a/mcaptcha/pages/auth/sudo/sidebar-items.js +++ b/mcaptcha/pages/auth/sudo/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"struct":[["SudoPage",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE"],"static":["SIZE_HINT"],"struct":["SudoPage"]}; \ No newline at end of file diff --git a/mcaptcha/pages/auth/sudo/static.SIZE_HINT.html b/mcaptcha/pages/auth/sudo/static.SIZE_HINT.html new file mode 100644 index 00000000..9e96ceaf --- /dev/null +++ b/mcaptcha/pages/auth/sudo/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::auth::sudo - Rust

    Static mcaptcha::pages::auth::sudo::SIZE_HINT

    source ·
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/auth/sudo/struct.SudoPage.html b/mcaptcha/pages/auth/sudo/struct.SudoPage.html index 665a7561..d4c8221b 100644 --- a/mcaptcha/pages/auth/sudo/struct.SudoPage.html +++ b/mcaptcha/pages/auth/sudo/struct.SudoPage.html @@ -1,12 +1,41 @@ -SudoPage in mcaptcha::pages::auth::sudo - Rust

    Struct mcaptcha::pages::auth::sudo::SudoPage

    source ·
    pub struct SudoPage<'a, K, V>where
        K: Display + Render,
        V: Display + Render,
    { - url: &'a str, - data: Option<Vec<(K, V)>>, -}

    Fields§

    §url: &'a str§data: Option<Vec<(K, V)>>

    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).

    +SudoPage in mcaptcha::pages::auth::sudo - Rust

    Struct mcaptcha::pages::auth::sudo::SudoPage

    source ·
    pub struct SudoPage<'a, K, V>where
    +    K: Display + Render,
    +    V: Display + Render,{
    +    url: &'a str,
    +    data: Option<Vec<(K, V)>>,
    +}

    Fields§

    §url: &'a str§data: Option<Vec<(K, V)>>

    Implementations§

    source§

    impl<'a, K, V> SudoPage<'a, K, V>where + K: Display + Render, + V: Display + Render,

    source

    pub fn new(url: &'a str, data: Option<Vec<(K, V)>>) -> Self

    Trait Implementations§

    source§

    impl<'a, K, V> Clone for SudoPage<'a, K, V>where + K: Display + Render + Clone, + V: Display + Render + Clone,

    source§

    fn clone(&self) -> SudoPage<'a, K, V>

    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<'a, K, V> TemplateOnce for SudoPage<'a, K, V>where + K: Display + Render, + V: Display + Render,

    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<'a, K, V> Sealed for SudoPage<'a, K, V>where + K: Display + Render, + V: Display + Render,

    Auto Trait Implementations§

    §

    impl<'a, K, V> RefUnwindSafe for SudoPage<'a, K, V>where + K: RefUnwindSafe, + V: RefUnwindSafe,

    §

    impl<'a, K, V> Send for SudoPage<'a, K, V>where + K: Send, + V: Send,

    §

    impl<'a, K, V> Sync for SudoPage<'a, K, V>where + K: Sync, + V: Sync,

    §

    impl<'a, K, V> Unpin for SudoPage<'a, K, V>where + K: Unpin, + V: Unpin,

    §

    impl<'a, K, V> UnwindSafe for SudoPage<'a, K, V>where + K: UnwindSafe, + V: UnwindSafe,

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/constant.NAME.html b/mcaptcha/pages/constant.NAME.html index 7535b55e..dd1aaba6 100644 --- a/mcaptcha/pages/constant.NAME.html +++ b/mcaptcha/pages/constant.NAME.html @@ -1 +1 @@ -NAME in mcaptcha::pages - Rust

    Constant mcaptcha::pages::NAME

    source ·
    pub const NAME: &str = "mCaptcha";
    \ No newline at end of file +NAME in mcaptcha::pages - Rust

    Constant mcaptcha::pages::NAME

    source ·
    pub const NAME: &str = "mCaptcha";
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/constant.ERROR_ROUTE.html b/mcaptcha/pages/errors/constant.ERROR_ROUTE.html index bed0dca6..5a13c3a7 100644 --- a/mcaptcha/pages/errors/constant.ERROR_ROUTE.html +++ b/mcaptcha/pages/errors/constant.ERROR_ROUTE.html @@ -1 +1 @@ -ERROR_ROUTE in mcaptcha::pages::errors - Rust

    Constant mcaptcha::pages::errors::ERROR_ROUTE

    source ·
    const ERROR_ROUTE: &str = "/error/{id}";
    \ No newline at end of file +ERROR_ROUTE in mcaptcha::pages::errors - Rust

    Constant mcaptcha::pages::errors::ERROR_ROUTE

    source ·
    const ERROR_ROUTE: &str = "/error/{id}";
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/constant.PAGE.html b/mcaptcha/pages/errors/constant.PAGE.html index 5beb4023..fae113a4 100644 --- a/mcaptcha/pages/errors/constant.PAGE.html +++ b/mcaptcha/pages/errors/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::errors - Rust

    Constant mcaptcha::pages::errors::PAGE

    source ·
    const PAGE: &str = "Error";
    \ No newline at end of file +PAGE in mcaptcha::pages::errors - Rust

    Constant mcaptcha::pages::errors::PAGE

    source ·
    const PAGE: &str = "Error";
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/fn.__stability.html b/mcaptcha/pages/errors/fn.__stability.html new file mode 100644 index 00000000..de7792a6 --- /dev/null +++ b/mcaptcha/pages/errors/fn.__stability.html @@ -0,0 +1 @@ +__stability in mcaptcha::pages::errors - Rust

    Function mcaptcha::pages::errors::__stability

    source ·
    fn __stability() -> &'static String
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/fn.__static_ref_initialize.html b/mcaptcha/pages/errors/fn.__static_ref_initialize.html new file mode 100644 index 00000000..316db5ab --- /dev/null +++ b/mcaptcha/pages/errors/fn.__static_ref_initialize.html @@ -0,0 +1 @@ +__static_ref_initialize in mcaptcha::pages::errors - Rust
    fn __static_ref_initialize() -> String
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/fn.error.html b/mcaptcha/pages/errors/fn.error.html new file mode 100644 index 00000000..518c6baa --- /dev/null +++ b/mcaptcha/pages/errors/fn.error.html @@ -0,0 +1 @@ +error in mcaptcha::pages::errors - Rust

    Function mcaptcha::pages::errors::error

    source ·
    async fn error(path: Path<usize>) -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/fn.services.html b/mcaptcha/pages/errors/fn.services.html index 6e5d4224..e067f212 100644 --- a/mcaptcha/pages/errors/fn.services.html +++ b/mcaptcha/pages/errors/fn.services.html @@ -1 +1 @@ -services in mcaptcha::pages::errors - Rust

    Function mcaptcha::pages::errors::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file +services in mcaptcha::pages::errors - Rust

    Function mcaptcha::pages::errors::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/index.html b/mcaptcha/pages/errors/index.html index 821e27ee..951a099e 100644 --- a/mcaptcha/pages/errors/index.html +++ b/mcaptcha/pages/errors/index.html @@ -1 +1 @@ -mcaptcha::pages::errors - Rust
    \ No newline at end of file +mcaptcha::pages::errors - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/routes/index.html b/mcaptcha/pages/errors/routes/index.html index ad50f461..b7394b7a 100644 --- a/mcaptcha/pages/errors/routes/index.html +++ b/mcaptcha/pages/errors/routes/index.html @@ -1 +1 @@ -mcaptcha::pages::errors::routes - Rust
    \ No newline at end of file +mcaptcha::pages::errors::routes - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/routes/sidebar-items.js b/mcaptcha/pages/errors/routes/sidebar-items.js index fe108e43..6e03bd8c 100644 --- a/mcaptcha/pages/errors/routes/sidebar-items.js +++ b/mcaptcha/pages/errors/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Errors",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Errors"]}; \ No newline at end of file diff --git a/mcaptcha/pages/errors/routes/struct.Errors.html b/mcaptcha/pages/errors/routes/struct.Errors.html index f22e4ccd..fd9a18d1 100644 --- a/mcaptcha/pages/errors/routes/struct.Errors.html +++ b/mcaptcha/pages/errors/routes/struct.Errors.html @@ -1,12 +1,20 @@ -Errors in mcaptcha::pages::errors::routes - Rust
    pub struct Errors {
    -    pub internal_server_error: &'static str,
    -    pub unknown_error: &'static str,
    -}

    Fields§

    §internal_server_error: &'static str§unknown_error: &'static str

    Implementations§

    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).

    +Errors in mcaptcha::pages::errors::routes - Rust
    pub struct Errors {
    +    pub internal_server_error: &'static str,
    +    pub unknown_error: &'static str,
    +}

    Fields§

    §internal_server_error: &'static str§unknown_error: &'static str

    Implementations§

    source§

    impl Errors

    source

    pub const fn new() -> Self

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/sidebar-items.js b/mcaptcha/pages/errors/sidebar-items.js index 9af14c39..e9a77518 100644 --- a/mcaptcha/pages/errors/sidebar-items.js +++ b/mcaptcha/pages/errors/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["ERROR_ROUTE",""],["PAGE",""]],"fn":[["services",""]],"mod":[["routes",""]],"struct":[["ErrorPage",""],["INTERNAL_SERVER_ERROR_BODY",""],["UNKNOWN_ERROR_BODY",""],["error",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["ERROR_ROUTE","PAGE"],"fn":["__stability","__static_ref_initialize","error","services"],"mod":["routes"],"static":["LAZY","SIZE_HINT"],"struct":["ErrorPage","INTERNAL_SERVER_ERROR_BODY","UNKNOWN_ERROR_BODY","error"]}; \ No newline at end of file diff --git a/mcaptcha/pages/errors/static.LAZY.html b/mcaptcha/pages/errors/static.LAZY.html new file mode 100644 index 00000000..d80b3b11 --- /dev/null +++ b/mcaptcha/pages/errors/static.LAZY.html @@ -0,0 +1 @@ +LAZY in mcaptcha::pages::errors - Rust

    Static mcaptcha::pages::errors::LAZY

    source ·
    static LAZY: Lazy<String>
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/static.SIZE_HINT.html b/mcaptcha/pages/errors/static.SIZE_HINT.html new file mode 100644 index 00000000..85aa4840 --- /dev/null +++ b/mcaptcha/pages/errors/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::errors - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/struct.ErrorPage.html b/mcaptcha/pages/errors/struct.ErrorPage.html index 77184254..36e67a93 100644 --- a/mcaptcha/pages/errors/struct.ErrorPage.html +++ b/mcaptcha/pages/errors/struct.ErrorPage.html @@ -1,12 +1,21 @@ -ErrorPage in mcaptcha::pages::errors - Rust
    struct ErrorPage<'a> {
    -    title: &'a str,
    -    message: &'a str,
    -}

    Fields§

    §title: &'a str§message: &'a str

    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).

    +ErrorPage in mcaptcha::pages::errors - Rust
    struct ErrorPage<'a> {
    +    title: &'a str,
    +    message: &'a str,
    +}

    Fields§

    §title: &'a str§message: &'a str

    Implementations§

    source§

    impl<'a> ErrorPage<'a>

    source

    fn new(title: &'a str, message: &'a str) -> Self

    Trait Implementations§

    source§

    impl<'a> Clone for ErrorPage<'a>

    source§

    fn clone(&self) -> ErrorPage<'a>

    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<'a> TemplateOnce for ErrorPage<'a>

    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<'a> Sealed for ErrorPage<'a>

    Auto Trait Implementations§

    §

    impl<'a> RefUnwindSafe for ErrorPage<'a>

    §

    impl<'a> Send for ErrorPage<'a>

    §

    impl<'a> Sync for ErrorPage<'a>

    §

    impl<'a> Unpin for ErrorPage<'a>

    §

    impl<'a> UnwindSafe for ErrorPage<'a>

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/struct.INTERNAL_SERVER_ERROR_BODY.html b/mcaptcha/pages/errors/struct.INTERNAL_SERVER_ERROR_BODY.html index 28fe8d97..e0e0cfa7 100644 --- a/mcaptcha/pages/errors/struct.INTERNAL_SERVER_ERROR_BODY.html +++ b/mcaptcha/pages/errors/struct.INTERNAL_SERVER_ERROR_BODY.html @@ -1,28 +1,28 @@ -INTERNAL_SERVER_ERROR_BODY in mcaptcha::pages::errors - Rust
    struct INTERNAL_SERVER_ERROR_BODY {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    Extracts a string slice containing the entire String.

    +INTERNAL_SERVER_ERROR_BODY in mcaptcha::pages::errors - Rust
    struct INTERNAL_SERVER_ERROR_BODY {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    1.7.0 · source

    pub fn as_str(&self) -> &str

    Extracts a string slice containing the entire String.

    Examples

    Basic usage:

    let s = String::from("foo");
     
     assert_eq!("foo", s.as_str());
    -

    Returns this String’s capacity, in bytes.

    +
    1.0.0 · source

    pub fn capacity(&self) -> usize

    Returns this String’s capacity, in bytes.

    Examples

    Basic usage:

    let s = String::with_capacity(10);
     
     assert!(s.capacity() >= 10);
    -

    Returns a byte slice of this String’s contents.

    -

    The inverse of this method is from_utf8.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Returns a byte slice of this String’s contents.

    +

    The inverse of this method is from_utf8.

    Examples

    Basic usage:

    let s = String::from("hello");
     
     assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
    -

    Returns the length of this String, in bytes, not chars or +

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples
    @@ -34,7 +34,7 @@ length of the string.

    let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
    -

    Returns true if this String has a length of zero, and false otherwise.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if this String has a length of zero, and false otherwise.

    Examples

    Basic usage:

    @@ -43,8 +43,8 @@ length of the string.

    v.push('a'); assert!(!v.is_empty());
    -

    Methods from Deref<Target = str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -54,7 +54,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -63,7 +63,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -80,7 +80,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -95,8 +95,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -109,14 +109,14 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a mutable string slice to a mutable byte slice.

    +
    1.20.0 · source

    pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

    Converts a mutable string slice to a mutable byte slice.

    Safety

    The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

    @@ -142,26 +142,27 @@ before the borrow ends and the underlying str is used.

    } assert_eq!("🍔∈🌏", s);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Converts a mutable string slice to a raw pointer.

    +
    1.36.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut u8

    Converts a mutable string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -173,9 +174,10 @@ modified in a way that it remains valid UTF-8.

    // out of bounds assert!(v.get(..42).is_none());
    -

    Returns a mutable subslice of str.

    +
    1.20.0 · source

    pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a mutable subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let mut v = String::from("hello");
     // correct length
    @@ -194,7 +196,8 @@ modified in a way that it remains valid UTF-8.

    assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -213,7 +216,11 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -

    Returns a mutable, unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns a mutable, unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -232,14 +239,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -262,14 +269,14 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.5.0 · source

    pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

    +alternative see str and IndexMut.

    This new slice goes from begin to end, including begin but excluding end.

    To get an immutable string slice instead, see the -slice_unchecked method.

    +slice_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -278,12 +285,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -297,12 +304,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -317,10 +324,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -343,7 +350,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -353,12 +360,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -379,7 +386,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -393,7 +400,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -407,12 +414,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -437,10 +444,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -465,7 +472,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -495,8 +502,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -506,10 +513,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -518,10 +526,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -530,10 +539,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -542,10 +553,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -569,10 +581,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -594,16 +608,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -665,13 +680,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -684,15 +700,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -711,20 +729,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -736,11 +755,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -748,7 +769,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -759,16 +780,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -788,17 +810,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -814,29 +838,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -845,15 +873,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -862,18 +892,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -885,17 +916,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -907,7 +940,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -916,7 +949,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -936,7 +969,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -956,7 +989,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -977,7 +1010,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -998,9 +1031,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1013,9 +1048,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1030,29 +1066,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1070,9 +1111,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1087,9 +1129,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1107,15 +1151,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1133,21 +1178,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1158,7 +1203,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1169,7 +1214,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1188,7 +1233,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1205,7 +1250,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1222,8 +1267,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1237,8 +1283,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1252,11 +1299,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1279,11 +1326,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1301,7 +1348,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1310,36 +1357,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for INTERNAL_SERVER_ERROR_BODY

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for INTERNAL_SERVER_ERROR_BODY

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for INTERNAL_SERVER_ERROR_BODY

    §

    impl Send for INTERNAL_SERVER_ERROR_BODY

    §

    impl Sync for INTERNAL_SERVER_ERROR_BODY

    §

    impl Unpin for INTERNAL_SERVER_ERROR_BODY

    §

    impl UnwindSafe for INTERNAL_SERVER_ERROR_BODY

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/struct.UNKNOWN_ERROR_BODY.html b/mcaptcha/pages/errors/struct.UNKNOWN_ERROR_BODY.html index 9d5c4ab3..1889b7f6 100644 --- a/mcaptcha/pages/errors/struct.UNKNOWN_ERROR_BODY.html +++ b/mcaptcha/pages/errors/struct.UNKNOWN_ERROR_BODY.html @@ -1,28 +1,28 @@ -UNKNOWN_ERROR_BODY in mcaptcha::pages::errors - Rust
    struct UNKNOWN_ERROR_BODY {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    Extracts a string slice containing the entire String.

    +UNKNOWN_ERROR_BODY in mcaptcha::pages::errors - Rust
    struct UNKNOWN_ERROR_BODY {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    1.7.0 · source

    pub fn as_str(&self) -> &str

    Extracts a string slice containing the entire String.

    Examples

    Basic usage:

    let s = String::from("foo");
     
     assert_eq!("foo", s.as_str());
    -

    Returns this String’s capacity, in bytes.

    +
    1.0.0 · source

    pub fn capacity(&self) -> usize

    Returns this String’s capacity, in bytes.

    Examples

    Basic usage:

    let s = String::with_capacity(10);
     
     assert!(s.capacity() >= 10);
    -

    Returns a byte slice of this String’s contents.

    -

    The inverse of this method is from_utf8.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Returns a byte slice of this String’s contents.

    +

    The inverse of this method is from_utf8.

    Examples

    Basic usage:

    let s = String::from("hello");
     
     assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
    -

    Returns the length of this String, in bytes, not chars or +

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples
    @@ -34,7 +34,7 @@ length of the string.

    let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
    -

    Returns true if this String has a length of zero, and false otherwise.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if this String has a length of zero, and false otherwise.

    Examples

    Basic usage:

    @@ -43,8 +43,8 @@ length of the string.

    v.push('a'); assert!(!v.is_empty());
    -

    Methods from Deref<Target = str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -54,7 +54,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -63,7 +63,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -80,7 +80,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -95,8 +95,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -109,14 +109,14 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a mutable string slice to a mutable byte slice.

    +
    1.20.0 · source

    pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

    Converts a mutable string slice to a mutable byte slice.

    Safety

    The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

    @@ -142,26 +142,27 @@ before the borrow ends and the underlying str is used.

    } assert_eq!("🍔∈🌏", s);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Converts a mutable string slice to a raw pointer.

    +
    1.36.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut u8

    Converts a mutable string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -173,9 +174,10 @@ modified in a way that it remains valid UTF-8.

    // out of bounds assert!(v.get(..42).is_none());
    -

    Returns a mutable subslice of str.

    +
    1.20.0 · source

    pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a mutable subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let mut v = String::from("hello");
     // correct length
    @@ -194,7 +196,8 @@ modified in a way that it remains valid UTF-8.

    assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -213,7 +216,11 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -

    Returns a mutable, unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns a mutable, unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -232,14 +239,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -262,14 +269,14 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.5.0 · source

    pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

    +alternative see str and IndexMut.

    This new slice goes from begin to end, including begin but excluding end.

    To get an immutable string slice instead, see the -slice_unchecked method.

    +slice_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -278,12 +285,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -297,12 +304,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -317,10 +324,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -343,7 +350,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -353,12 +360,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -379,7 +386,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -393,7 +400,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -407,12 +414,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -437,10 +444,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -465,7 +472,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -495,8 +502,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -506,10 +513,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -518,10 +526,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -530,10 +539,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -542,10 +553,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -569,10 +581,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -594,16 +608,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -665,13 +680,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -684,15 +700,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -711,20 +729,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -736,11 +755,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -748,7 +769,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -759,16 +780,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -788,17 +810,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -814,29 +838,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -845,15 +873,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -862,18 +892,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -885,17 +916,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -907,7 +940,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -916,7 +949,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -936,7 +969,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -956,7 +989,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -977,7 +1010,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -998,9 +1031,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1013,9 +1048,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1030,29 +1066,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1070,9 +1111,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1087,9 +1129,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1107,15 +1151,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1133,21 +1178,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1158,7 +1203,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1169,7 +1214,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1188,7 +1233,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1205,7 +1250,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1222,8 +1267,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1237,8 +1283,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1252,11 +1299,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1279,11 +1326,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1301,7 +1348,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1310,36 +1357,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for UNKNOWN_ERROR_BODY

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for UNKNOWN_ERROR_BODY

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for UNKNOWN_ERROR_BODY

    §

    impl Send for UNKNOWN_ERROR_BODY

    §

    impl Sync for UNKNOWN_ERROR_BODY

    §

    impl Unpin for UNKNOWN_ERROR_BODY

    §

    impl UnwindSafe for UNKNOWN_ERROR_BODY

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/errors/struct.error.html b/mcaptcha/pages/errors/struct.error.html index aca4156c..6aaeadfa 100644 --- a/mcaptcha/pages/errors/struct.error.html +++ b/mcaptcha/pages/errors/struct.error.html @@ -1,9 +1,17 @@ -error in mcaptcha::pages::errors - Rust

    Struct mcaptcha::pages::errors::error

    source ·
    pub struct error;

    Trait Implementations§

    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).

    +error in mcaptcha::pages::errors - Rust

    Struct mcaptcha::pages::errors::error

    source ·
    pub struct error;

    Trait Implementations§

    source§

    impl HttpServiceFactory for error

    source§

    fn register(self, __config: &mut AppService)

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for error

    §

    impl Send for error

    §

    impl Sync for error

    §

    impl Unpin for error

    §

    impl UnwindSafe for error

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/fn.get_middleware.html b/mcaptcha/pages/fn.get_middleware.html index 9b592885..8ced99ad 100644 --- a/mcaptcha/pages/fn.get_middleware.html +++ b/mcaptcha/pages/fn.get_middleware.html @@ -1 +1 @@ -get_middleware in mcaptcha::pages - Rust

    Function mcaptcha::pages::get_middleware

    source ·
    pub fn get_middleware() -> Authentication<Routes>
    \ No newline at end of file +get_middleware in mcaptcha::pages - Rust

    Function mcaptcha::pages::get_middleware

    source ·
    pub fn get_middleware() -> Authentication<Routes>
    \ No newline at end of file diff --git a/mcaptcha/pages/fn.services.html b/mcaptcha/pages/fn.services.html index 26e28c75..506cd3ab 100644 --- a/mcaptcha/pages/fn.services.html +++ b/mcaptcha/pages/fn.services.html @@ -1 +1 @@ -services in mcaptcha::pages - Rust

    Function mcaptcha::pages::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file +services in mcaptcha::pages - Rust

    Function mcaptcha::pages::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file diff --git a/mcaptcha/pages/index.html b/mcaptcha/pages/index.html index a7683e5f..0fd97c36 100644 --- a/mcaptcha/pages/index.html +++ b/mcaptcha/pages/index.html @@ -1 +1 @@ -mcaptcha::pages - Rust
    \ No newline at end of file +mcaptcha::pages - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/constant.COPY_ALT.html b/mcaptcha/pages/panel/constant.COPY_ALT.html new file mode 100644 index 00000000..21c8a091 --- /dev/null +++ b/mcaptcha/pages/panel/constant.COPY_ALT.html @@ -0,0 +1 @@ +COPY_ALT in mcaptcha::pages::panel - Rust

    Constant mcaptcha::pages::panel::COPY_ALT

    source ·
    const COPY_ALT: &str = "copy sitekey";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/constant.COPY_CLASS.html b/mcaptcha/pages/panel/constant.COPY_CLASS.html new file mode 100644 index 00000000..eee2a674 --- /dev/null +++ b/mcaptcha/pages/panel/constant.COPY_CLASS.html @@ -0,0 +1 @@ +COPY_CLASS in mcaptcha::pages::panel - Rust

    Constant mcaptcha::pages::panel::COPY_CLASS

    source ·
    const COPY_CLASS: &str = "sitekey__copy-icon";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/constant.DONE_ALT.html b/mcaptcha/pages/panel/constant.DONE_ALT.html new file mode 100644 index 00000000..2c46022c --- /dev/null +++ b/mcaptcha/pages/panel/constant.DONE_ALT.html @@ -0,0 +1 @@ +DONE_ALT in mcaptcha::pages::panel - Rust

    Constant mcaptcha::pages::panel::DONE_ALT

    source ·
    const DONE_ALT: &str = "sitekey copied";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/constant.DONE_CLASS.html b/mcaptcha/pages/panel/constant.DONE_CLASS.html new file mode 100644 index 00000000..bb1c805f --- /dev/null +++ b/mcaptcha/pages/panel/constant.DONE_CLASS.html @@ -0,0 +1 @@ +DONE_CLASS in mcaptcha::pages::panel - Rust

    Constant mcaptcha::pages::panel::DONE_CLASS

    source ·
    const DONE_CLASS: &str = "sitekey__copy-done-icon";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/constant.PAGE.html b/mcaptcha/pages/panel/constant.PAGE.html index 4a80ac82..4b917767 100644 --- a/mcaptcha/pages/panel/constant.PAGE.html +++ b/mcaptcha/pages/panel/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::panel - Rust

    Constant mcaptcha::pages::panel::PAGE

    source ·
    const PAGE: &str = "Dashboard";
    \ No newline at end of file +PAGE in mcaptcha::pages::panel - Rust

    Constant mcaptcha::pages::panel::PAGE

    source ·
    const PAGE: &str = "Dashboard";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/fn.panel.html b/mcaptcha/pages/panel/fn.panel.html new file mode 100644 index 00000000..89f5a0b5 --- /dev/null +++ b/mcaptcha/pages/panel/fn.panel.html @@ -0,0 +1 @@ +panel in mcaptcha::pages::panel - Rust

    Function mcaptcha::pages::panel::panel

    source ·
    async fn panel(data: AppData, id: Identity) -> Result<impl Responder, PageError>
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/fn.services.html b/mcaptcha/pages/panel/fn.services.html index 9b2a076d..b3b09db3 100644 --- a/mcaptcha/pages/panel/fn.services.html +++ b/mcaptcha/pages/panel/fn.services.html @@ -1 +1 @@ -services in mcaptcha::pages::panel - Rust

    Function mcaptcha::pages::panel::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file +services in mcaptcha::pages::panel - Rust

    Function mcaptcha::pages::panel::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/index.html b/mcaptcha/pages/panel/index.html index c22ce802..045e0c22 100644 --- a/mcaptcha/pages/panel/index.html +++ b/mcaptcha/pages/panel/index.html @@ -1 +1 @@ -mcaptcha::pages::panel - Rust
    \ No newline at end of file +mcaptcha::pages::panel - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/notifications/constant.PAGE.html b/mcaptcha/pages/panel/notifications/constant.PAGE.html index b73e427a..0717eba5 100644 --- a/mcaptcha/pages/panel/notifications/constant.PAGE.html +++ b/mcaptcha/pages/panel/notifications/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::panel::notifications - Rust
    const PAGE: &str = "Notifications";
    \ No newline at end of file +PAGE in mcaptcha::pages::panel::notifications - Rust
    const PAGE: &str = "Notifications";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/notifications/fn.notifications.html b/mcaptcha/pages/panel/notifications/fn.notifications.html new file mode 100644 index 00000000..a025fbed --- /dev/null +++ b/mcaptcha/pages/panel/notifications/fn.notifications.html @@ -0,0 +1,4 @@ +notifications in mcaptcha::pages::panel::notifications - Rust
    pub async fn notifications(
    +    data: AppData,
    +    id: Identity
    +) -> Result<impl Responder, PageError>
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/notifications/index.html b/mcaptcha/pages/panel/notifications/index.html index cc215066..bd7de02e 100644 --- a/mcaptcha/pages/panel/notifications/index.html +++ b/mcaptcha/pages/panel/notifications/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::notifications - Rust
    \ No newline at end of file +mcaptcha::pages::panel::notifications - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/notifications/sidebar-items.js b/mcaptcha/pages/panel/notifications/sidebar-items.js index 7d877d92..ea8abc66 100644 --- a/mcaptcha/pages/panel/notifications/sidebar-items.js +++ b/mcaptcha/pages/panel/notifications/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"struct":[["IndexPage",""],["Notification",""],["notifications",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE"],"fn":["notifications"],"static":["SIZE_HINT"],"struct":["IndexPage","Notification","notifications"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/notifications/static.SIZE_HINT.html b/mcaptcha/pages/panel/notifications/static.SIZE_HINT.html new file mode 100644 index 00000000..0a9ee18f --- /dev/null +++ b/mcaptcha/pages/panel/notifications/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::panel::notifications - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/notifications/struct.IndexPage.html b/mcaptcha/pages/panel/notifications/struct.IndexPage.html index 4b602ca0..0da5d1fb 100644 --- a/mcaptcha/pages/panel/notifications/struct.IndexPage.html +++ b/mcaptcha/pages/panel/notifications/struct.IndexPage.html @@ -1,12 +1,20 @@ -IndexPage in mcaptcha::pages::panel::notifications - Rust
    pub struct IndexPage {
    -    n: Vec<Notification>,
    -}

    Fields§

    §n: Vec<Notification>

    notifications

    -

    Implementations§

    Trait Implementations§

    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).

    +IndexPage in mcaptcha::pages::panel::notifications - Rust
    pub struct IndexPage {
    +    n: Vec<Notification>,
    +}

    Fields§

    §n: Vec<Notification>

    notifications

    +

    Implementations§

    Trait Implementations§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/notifications/struct.Notification.html b/mcaptcha/pages/panel/notifications/struct.Notification.html index e15422bd..beb19553 100644 --- a/mcaptcha/pages/panel/notifications/struct.Notification.html +++ b/mcaptcha/pages/panel/notifications/struct.Notification.html @@ -1,15 +1,23 @@ -Notification in mcaptcha::pages::panel::notifications - Rust
    pub struct Notification {
    -    pub name: String,
    -    pub heading: String,
    -    pub message: String,
    +Notification in mcaptcha::pages::panel::notifications - Rust
    pub struct Notification {
    +    pub name: String,
    +    pub heading: String,
    +    pub message: String,
         pub received: OffsetDateTime,
    -    pub id: i32,
    -}

    Fields§

    §name: String§heading: String§message: String§received: OffsetDateTime§id: 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).

    + 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 + 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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/notifications/struct.notifications.html b/mcaptcha/pages/panel/notifications/struct.notifications.html index 84adead3..a66b7ee3 100644 --- a/mcaptcha/pages/panel/notifications/struct.notifications.html +++ b/mcaptcha/pages/panel/notifications/struct.notifications.html @@ -1,9 +1,17 @@ -notifications in mcaptcha::pages::panel::notifications - Rust
    pub struct notifications;

    Trait Implementations§

    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).

    +notifications in mcaptcha::pages::panel::notifications - Rust
    pub struct notifications;

    Trait Implementations§

    source§

    impl HttpServiceFactory for notifications

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/routes/constant.PANEL.html b/mcaptcha/pages/panel/routes/constant.PANEL.html new file mode 100644 index 00000000..db2d166e --- /dev/null +++ b/mcaptcha/pages/panel/routes/constant.PANEL.html @@ -0,0 +1 @@ +PANEL in mcaptcha::pages::panel::routes - Rust

    Constant mcaptcha::pages::panel::routes::PANEL

    source ·
    const PANEL: Panel;
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/routes/constant.S.html b/mcaptcha/pages/panel/routes/constant.S.html new file mode 100644 index 00000000..28d4c66e --- /dev/null +++ b/mcaptcha/pages/panel/routes/constant.S.html @@ -0,0 +1 @@ +S in mcaptcha::pages::panel::routes - Rust

    Constant mcaptcha::pages::panel::routes::S

    source ·
    const S: [&str; 2];
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/routes/index.html b/mcaptcha/pages/panel/routes/index.html index eaf20ae5..621e46d3 100644 --- a/mcaptcha/pages/panel/routes/index.html +++ b/mcaptcha/pages/panel/routes/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::routes - Rust
    \ No newline at end of file +mcaptcha::pages::panel::routes - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/routes/sidebar-items.js b/mcaptcha/pages/panel/routes/sidebar-items.js index 0c231265..12df2e47 100644 --- a/mcaptcha/pages/panel/routes/sidebar-items.js +++ b/mcaptcha/pages/panel/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Panel",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PANEL","S"],"struct":["Panel"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/routes/struct.Panel.html b/mcaptcha/pages/panel/routes/struct.Panel.html index 1e1e8b43..0c0fe996 100644 --- a/mcaptcha/pages/panel/routes/struct.Panel.html +++ b/mcaptcha/pages/panel/routes/struct.Panel.html @@ -1,14 +1,22 @@ -Panel in mcaptcha::pages::panel::routes - Rust

    Struct mcaptcha::pages::panel::routes::Panel

    source ·
    pub struct Panel {
    -    pub home: &'static str,
    +Panel in mcaptcha::pages::panel::routes - Rust

    Struct mcaptcha::pages::panel::routes::Panel

    source ·
    pub struct Panel {
    +    pub home: &'static str,
         pub sitekey: Sitekey,
    -    pub notifications: &'static str,
    +    pub notifications: &'static str,
         pub settings: Settings,
    -}

    Fields§

    §home: &'static str§sitekey: Sitekey§notifications: &'static str§settings: Settings

    Implementations§

    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).

    +}

    Fields§

    §home: &'static str§sitekey: Sitekey§notifications: &'static str§settings: Settings

    Implementations§

    source§

    impl Panel

    source

    pub const fn new() -> Self

    source

    pub const fn get_sitemap() -> [&'static str; 5]

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Panel

    §

    impl Send for Panel

    §

    impl Sync for Panel

    §

    impl Unpin for Panel

    §

    impl UnwindSafe for Panel

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/constant.COPY_ALT.html b/mcaptcha/pages/panel/settings/constant.COPY_ALT.html new file mode 100644 index 00000000..98af7eb7 --- /dev/null +++ b/mcaptcha/pages/panel/settings/constant.COPY_ALT.html @@ -0,0 +1 @@ +COPY_ALT in mcaptcha::pages::panel::settings - Rust
    const COPY_ALT: &str = "copy secret";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/constant.COPY_CLASS.html b/mcaptcha/pages/panel/settings/constant.COPY_CLASS.html new file mode 100644 index 00000000..936263e3 --- /dev/null +++ b/mcaptcha/pages/panel/settings/constant.COPY_CLASS.html @@ -0,0 +1 @@ +COPY_CLASS in mcaptcha::pages::panel::settings - Rust
    const COPY_CLASS: &str = "settings__secret-copy";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/constant.DONE_ALT.html b/mcaptcha/pages/panel/settings/constant.DONE_ALT.html new file mode 100644 index 00000000..e9496514 --- /dev/null +++ b/mcaptcha/pages/panel/settings/constant.DONE_ALT.html @@ -0,0 +1 @@ +DONE_ALT in mcaptcha::pages::panel::settings - Rust
    const DONE_ALT: &str = "secret copied";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/constant.DONE_CLASS.html b/mcaptcha/pages/panel/settings/constant.DONE_CLASS.html new file mode 100644 index 00000000..c9c352df --- /dev/null +++ b/mcaptcha/pages/panel/settings/constant.DONE_CLASS.html @@ -0,0 +1 @@ +DONE_CLASS in mcaptcha::pages::panel::settings - Rust
    const DONE_CLASS: &str = "settings__secret-copy-done";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/constant.PAGE.html b/mcaptcha/pages/panel/settings/constant.PAGE.html index f3f8e03f..469ac623 100644 --- a/mcaptcha/pages/panel/settings/constant.PAGE.html +++ b/mcaptcha/pages/panel/settings/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::panel::settings - Rust

    Constant mcaptcha::pages::panel::settings::PAGE

    source ·
    const PAGE: &str = "Settings";
    \ No newline at end of file +PAGE in mcaptcha::pages::panel::settings - Rust

    Constant mcaptcha::pages::panel::settings::PAGE

    source ·
    const PAGE: &str = "Settings";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/fn.delete_account.html b/mcaptcha/pages/panel/settings/fn.delete_account.html new file mode 100644 index 00000000..7496bb15 --- /dev/null +++ b/mcaptcha/pages/panel/settings/fn.delete_account.html @@ -0,0 +1 @@ +delete_account in mcaptcha::pages::panel::settings - Rust
    async fn delete_account() -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/fn.services.html b/mcaptcha/pages/panel/settings/fn.services.html index 6a943a23..7332df00 100644 --- a/mcaptcha/pages/panel/settings/fn.services.html +++ b/mcaptcha/pages/panel/settings/fn.services.html @@ -1 +1 @@ -services in mcaptcha::pages::panel::settings - Rust
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file +services in mcaptcha::pages::panel::settings - Rust
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/fn.settings.html b/mcaptcha/pages/panel/settings/fn.settings.html new file mode 100644 index 00000000..4178c817 --- /dev/null +++ b/mcaptcha/pages/panel/settings/fn.settings.html @@ -0,0 +1,4 @@ +settings in mcaptcha::pages::panel::settings - Rust
    async fn settings(
    +    data: AppData,
    +    id: Identity
    +) -> Result<impl Responder, PageError>
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/fn.update_secret.html b/mcaptcha/pages/panel/settings/fn.update_secret.html new file mode 100644 index 00000000..59a93856 --- /dev/null +++ b/mcaptcha/pages/panel/settings/fn.update_secret.html @@ -0,0 +1 @@ +update_secret in mcaptcha::pages::panel::settings - Rust
    async fn update_secret() -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/index.html b/mcaptcha/pages/panel/settings/index.html index 5512ba60..32a65e69 100644 --- a/mcaptcha/pages/panel/settings/index.html +++ b/mcaptcha/pages/panel/settings/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::settings - Rust
    \ No newline at end of file +mcaptcha::pages::panel::settings - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/routes/constant.S.html b/mcaptcha/pages/panel/settings/routes/constant.S.html new file mode 100644 index 00000000..48962200 --- /dev/null +++ b/mcaptcha/pages/panel/settings/routes/constant.S.html @@ -0,0 +1 @@ +S in mcaptcha::pages::panel::settings::routes - Rust

    Constant mcaptcha::pages::panel::settings::routes::S

    source ·
    const S: Settings;
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/routes/index.html b/mcaptcha/pages/panel/settings/routes/index.html index 6e86df1c..f57a51ba 100644 --- a/mcaptcha/pages/panel/settings/routes/index.html +++ b/mcaptcha/pages/panel/settings/routes/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::settings::routes - Rust
    \ No newline at end of file +mcaptcha::pages::panel::settings::routes - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/routes/sidebar-items.js b/mcaptcha/pages/panel/settings/routes/sidebar-items.js index 337f67eb..9e72b545 100644 --- a/mcaptcha/pages/panel/settings/routes/sidebar-items.js +++ b/mcaptcha/pages/panel/settings/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Settings",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["S"],"struct":["Settings"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/routes/struct.Settings.html b/mcaptcha/pages/panel/settings/routes/struct.Settings.html index 5d321a5b..9079678c 100644 --- a/mcaptcha/pages/panel/settings/routes/struct.Settings.html +++ b/mcaptcha/pages/panel/settings/routes/struct.Settings.html @@ -1,13 +1,21 @@ -Settings in mcaptcha::pages::panel::settings::routes - Rust
    pub struct Settings {
    -    pub home: &'static str,
    -    pub delete_account: &'static str,
    -    pub update_secret: &'static str,
    -}

    Fields§

    §home: &'static str§delete_account: &'static str§update_secret: &'static str

    Implementations§

    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).

    +Settings in mcaptcha::pages::panel::settings::routes - Rust
    pub struct Settings {
    +    pub home: &'static str,
    +    pub delete_account: &'static str,
    +    pub update_secret: &'static str,
    +}

    Fields§

    §home: &'static str§delete_account: &'static str§update_secret: &'static str

    Implementations§

    source§

    impl Settings

    source

    pub const fn new() -> Self

    source

    pub const fn get_sitemap() -> [&'static str; 1]

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/sidebar-items.js b/mcaptcha/pages/panel/settings/sidebar-items.js index ff8311e0..9421c8f0 100644 --- a/mcaptcha/pages/panel/settings/sidebar-items.js +++ b/mcaptcha/pages/panel/settings/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"fn":[["services",""]],"mod":[["routes",""]],"struct":[["IndexPage",""],["delete_account",""],["settings",""],["update_secret",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["COPY_ALT","COPY_CLASS","DONE_ALT","DONE_CLASS","PAGE"],"fn":["delete_account","services","settings","update_secret"],"mod":["routes"],"static":["SIZE_HINT"],"struct":["IndexPage","delete_account","settings","update_secret"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/static.SIZE_HINT.html b/mcaptcha/pages/panel/settings/static.SIZE_HINT.html new file mode 100644 index 00000000..61eb6f2d --- /dev/null +++ b/mcaptcha/pages/panel/settings/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::panel::settings - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/struct.IndexPage.html b/mcaptcha/pages/panel/settings/struct.IndexPage.html index 07383715..97044615 100644 --- a/mcaptcha/pages/panel/settings/struct.IndexPage.html +++ b/mcaptcha/pages/panel/settings/struct.IndexPage.html @@ -1,13 +1,22 @@ -IndexPage in mcaptcha::pages::panel::settings - Rust
    pub struct IndexPage<'a> {
    -    email: Option<String>,
    -    secret: String,
    -    username: &'a str,
    -}

    Fields§

    §email: Option<String>§secret: String§username: &'a str

    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).

    +IndexPage in mcaptcha::pages::panel::settings - Rust
    pub struct IndexPage<'a> {
    +    email: Option<String>,
    +    secret: String,
    +    username: &'a str,
    +}

    Fields§

    §email: Option<String>§secret: String§username: &'a str

    Trait Implementations§

    source§

    impl<'a> Clone for IndexPage<'a>

    source§

    fn clone(&self) -> IndexPage<'a>

    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<'a> TemplateOnce for IndexPage<'a>

    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<'a> Sealed for IndexPage<'a>

    Auto Trait Implementations§

    §

    impl<'a> RefUnwindSafe for IndexPage<'a>

    §

    impl<'a> Send for IndexPage<'a>

    §

    impl<'a> Sync for IndexPage<'a>

    §

    impl<'a> Unpin for IndexPage<'a>

    §

    impl<'a> UnwindSafe for IndexPage<'a>

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/struct.delete_account.html b/mcaptcha/pages/panel/settings/struct.delete_account.html index 62e724c3..aa73b475 100644 --- a/mcaptcha/pages/panel/settings/struct.delete_account.html +++ b/mcaptcha/pages/panel/settings/struct.delete_account.html @@ -1,9 +1,17 @@ -delete_account in mcaptcha::pages::panel::settings - Rust
    pub struct delete_account;

    Trait Implementations§

    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).

    +delete_account in mcaptcha::pages::panel::settings - Rust
    pub struct delete_account;

    Trait Implementations§

    source§

    impl HttpServiceFactory for delete_account

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/struct.settings.html b/mcaptcha/pages/panel/settings/struct.settings.html index a3968a39..8244218a 100644 --- a/mcaptcha/pages/panel/settings/struct.settings.html +++ b/mcaptcha/pages/panel/settings/struct.settings.html @@ -1,9 +1,17 @@ -settings in mcaptcha::pages::panel::settings - Rust
    pub struct settings;

    Trait Implementations§

    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).

    +settings in mcaptcha::pages::panel::settings - Rust
    pub struct settings;

    Trait Implementations§

    source§

    impl HttpServiceFactory for settings

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/settings/struct.update_secret.html b/mcaptcha/pages/panel/settings/struct.update_secret.html index 7262adea..5c8d29ac 100644 --- a/mcaptcha/pages/panel/settings/struct.update_secret.html +++ b/mcaptcha/pages/panel/settings/struct.update_secret.html @@ -1,9 +1,17 @@ -update_secret in mcaptcha::pages::panel::settings - Rust
    pub struct update_secret;

    Trait Implementations§

    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).

    +update_secret in mcaptcha::pages::panel::settings - Rust
    pub struct update_secret;

    Trait Implementations§

    source§

    impl HttpServiceFactory for update_secret

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sidebar-items.js b/mcaptcha/pages/panel/sidebar-items.js index 9382e322..be5471bf 100644 --- a/mcaptcha/pages/panel/sidebar-items.js +++ b/mcaptcha/pages/panel/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"fn":[["services",""]],"mod":[["notifications",""],["routes",""],["settings",""],["sitekey",""]],"struct":[["IndexPage",""],["panel",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["COPY_ALT","COPY_CLASS","DONE_ALT","DONE_CLASS","PAGE"],"fn":["panel","services"],"mod":["notifications","routes","settings","sitekey"],"static":["SIZE_HINT"],"struct":["IndexPage","panel"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/constant.PAGE.html b/mcaptcha/pages/panel/sitekey/add/constant.PAGE.html index cf029ff4..43a46ea6 100644 --- a/mcaptcha/pages/panel/sitekey/add/constant.PAGE.html +++ b/mcaptcha/pages/panel/sitekey/add/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::panel::sitekey::add - Rust

    Constant mcaptcha::pages::panel::sitekey::add::PAGE

    source ·
    const PAGE: &str = "Add Sitekey";
    \ No newline at end of file +PAGE in mcaptcha::pages::panel::sitekey::add - Rust

    Constant mcaptcha::pages::panel::sitekey::add::PAGE

    source ·
    const PAGE: &str = "Add Sitekey";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/fn.__stability.html b/mcaptcha/pages/panel/sitekey/add/fn.__stability.html new file mode 100644 index 00000000..22b5e684 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/add/fn.__stability.html @@ -0,0 +1 @@ +__stability in mcaptcha::pages::panel::sitekey::add - Rust
    fn __stability() -> &'static String
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/fn.__static_ref_initialize.html b/mcaptcha/pages/panel/sitekey/add/fn.__static_ref_initialize.html new file mode 100644 index 00000000..8b0ae355 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/add/fn.__static_ref_initialize.html @@ -0,0 +1 @@ +__static_ref_initialize in mcaptcha::pages::panel::sitekey::add - Rust
    fn __static_ref_initialize() -> String
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/fn.advance.html b/mcaptcha/pages/panel/sitekey/add/fn.advance.html new file mode 100644 index 00000000..2bf05739 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/add/fn.advance.html @@ -0,0 +1 @@ +advance in mcaptcha::pages::panel::sitekey::add - Rust

    Function mcaptcha::pages::panel::sitekey::add::advance

    source ·
    pub async fn advance() -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/fn.easy.html b/mcaptcha/pages/panel/sitekey/add/fn.easy.html new file mode 100644 index 00000000..d2e7534e --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/add/fn.easy.html @@ -0,0 +1 @@ +easy in mcaptcha::pages::panel::sitekey::add - Rust

    Function mcaptcha::pages::panel::sitekey::add::easy

    source ·
    pub async fn easy() -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/index.html b/mcaptcha/pages/panel/sitekey/add/index.html index a224e5fb..b3e07921 100644 --- a/mcaptcha/pages/panel/sitekey/add/index.html +++ b/mcaptcha/pages/panel/sitekey/add/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::sitekey::add - Rust
    \ No newline at end of file +mcaptcha::pages::panel::sitekey::add - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/sidebar-items.js b/mcaptcha/pages/panel/sitekey/add/sidebar-items.js index b95a9516..e3680687 100644 --- a/mcaptcha/pages/panel/sitekey/add/sidebar-items.js +++ b/mcaptcha/pages/panel/sitekey/add/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"struct":[["ADVANCE_INDEX",""],["AdvanceIndexPage",""],["EASY_INDEX",""],["EasyIndexPage",""],["advance",""],["easy",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE"],"fn":["__stability","__static_ref_initialize","advance","easy"],"static":["LAZY","SIZE_HINT"],"struct":["ADVANCE_INDEX","AdvanceIndexPage","EASY_INDEX","EasyIndexPage","advance","easy"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/static.LAZY.html b/mcaptcha/pages/panel/sitekey/add/static.LAZY.html new file mode 100644 index 00000000..d8f70906 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/add/static.LAZY.html @@ -0,0 +1 @@ +LAZY in mcaptcha::pages::panel::sitekey::add - Rust

    Static mcaptcha::pages::panel::sitekey::add::LAZY

    source ·
    static LAZY: Lazy<String>
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/static.SIZE_HINT.html b/mcaptcha/pages/panel/sitekey/add/static.SIZE_HINT.html new file mode 100644 index 00000000..33f253f0 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/add/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::panel::sitekey::add - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/struct.ADVANCE_INDEX.html b/mcaptcha/pages/panel/sitekey/add/struct.ADVANCE_INDEX.html index c9dec36f..981f35b4 100644 --- a/mcaptcha/pages/panel/sitekey/add/struct.ADVANCE_INDEX.html +++ b/mcaptcha/pages/panel/sitekey/add/struct.ADVANCE_INDEX.html @@ -1,28 +1,28 @@ -ADVANCE_INDEX in mcaptcha::pages::panel::sitekey::add - Rust
    struct ADVANCE_INDEX {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    Extracts a string slice containing the entire String.

    +ADVANCE_INDEX in mcaptcha::pages::panel::sitekey::add - Rust
    struct ADVANCE_INDEX {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    1.7.0 · source

    pub fn as_str(&self) -> &str

    Extracts a string slice containing the entire String.

    Examples

    Basic usage:

    let s = String::from("foo");
     
     assert_eq!("foo", s.as_str());
    -

    Returns this String’s capacity, in bytes.

    +
    1.0.0 · source

    pub fn capacity(&self) -> usize

    Returns this String’s capacity, in bytes.

    Examples

    Basic usage:

    let s = String::with_capacity(10);
     
     assert!(s.capacity() >= 10);
    -

    Returns a byte slice of this String’s contents.

    -

    The inverse of this method is from_utf8.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Returns a byte slice of this String’s contents.

    +

    The inverse of this method is from_utf8.

    Examples

    Basic usage:

    let s = String::from("hello");
     
     assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
    -

    Returns the length of this String, in bytes, not chars or +

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples
    @@ -34,7 +34,7 @@ length of the string.

    let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
    -

    Returns true if this String has a length of zero, and false otherwise.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if this String has a length of zero, and false otherwise.

    Examples

    Basic usage:

    @@ -43,8 +43,8 @@ length of the string.

    v.push('a'); assert!(!v.is_empty());
    -

    Methods from Deref<Target = str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -54,7 +54,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -63,7 +63,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -80,7 +80,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -95,8 +95,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -109,14 +109,14 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a mutable string slice to a mutable byte slice.

    +
    1.20.0 · source

    pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

    Converts a mutable string slice to a mutable byte slice.

    Safety

    The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

    @@ -142,26 +142,27 @@ before the borrow ends and the underlying str is used.

    } assert_eq!("🍔∈🌏", s);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Converts a mutable string slice to a raw pointer.

    +
    1.36.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut u8

    Converts a mutable string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -173,9 +174,10 @@ modified in a way that it remains valid UTF-8.

    // out of bounds assert!(v.get(..42).is_none());
    -

    Returns a mutable subslice of str.

    +
    1.20.0 · source

    pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a mutable subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let mut v = String::from("hello");
     // correct length
    @@ -194,7 +196,8 @@ modified in a way that it remains valid UTF-8.

    assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -213,7 +216,11 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -

    Returns a mutable, unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns a mutable, unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -232,14 +239,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -262,14 +269,14 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.5.0 · source

    pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

    +alternative see str and IndexMut.

    This new slice goes from begin to end, including begin but excluding end.

    To get an immutable string slice instead, see the -slice_unchecked method.

    +slice_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -278,12 +285,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -297,12 +304,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -317,10 +324,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -343,7 +350,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -353,12 +360,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -379,7 +386,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -393,7 +400,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -407,12 +414,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -437,10 +444,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -465,7 +472,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -495,8 +502,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -506,10 +513,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -518,10 +526,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -530,10 +539,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -542,10 +553,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -569,10 +581,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -594,16 +608,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -665,13 +680,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -684,15 +700,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -711,20 +729,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -736,11 +755,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -748,7 +769,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -759,16 +780,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -788,17 +810,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -814,29 +838,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -845,15 +873,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -862,18 +892,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -885,17 +916,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -907,7 +940,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -916,7 +949,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -936,7 +969,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -956,7 +989,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -977,7 +1010,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -998,9 +1031,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1013,9 +1048,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1030,29 +1066,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1070,9 +1111,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1087,9 +1129,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1107,15 +1151,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1133,21 +1178,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1158,7 +1203,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1169,7 +1214,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1188,7 +1233,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1205,7 +1250,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1222,8 +1267,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1237,8 +1283,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1252,11 +1299,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1279,11 +1326,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1301,7 +1348,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1310,36 +1357,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for ADVANCE_INDEX

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for ADVANCE_INDEX

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for ADVANCE_INDEX

    §

    impl Send for ADVANCE_INDEX

    §

    impl Sync for ADVANCE_INDEX

    §

    impl Unpin for ADVANCE_INDEX

    §

    impl UnwindSafe for ADVANCE_INDEX

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/struct.AdvanceIndexPage.html b/mcaptcha/pages/panel/sitekey/add/struct.AdvanceIndexPage.html index e31d1c90..3212d4e3 100644 --- a/mcaptcha/pages/panel/sitekey/add/struct.AdvanceIndexPage.html +++ b/mcaptcha/pages/panel/sitekey/add/struct.AdvanceIndexPage.html @@ -1,14 +1,23 @@ -AdvanceIndexPage in mcaptcha::pages::panel::sitekey::add - Rust
    pub struct AdvanceIndexPage<'a> {
    -    pub levels: usize,
    -    pub form_title: &'a str,
    -    pub form_description: &'a str,
    -    pub form_duration: usize,
    -}

    Fields§

    §levels: usize§form_title: &'a str§form_description: &'a str§form_duration: usize

    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
    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).

    +AdvanceIndexPage in mcaptcha::pages::panel::sitekey::add - Rust
    pub struct AdvanceIndexPage<'a> {
    +    pub levels: usize,
    +    pub form_title: &'a str,
    +    pub form_description: &'a str,
    +    pub form_duration: usize,
    +}

    Fields§

    §levels: usize§form_title: &'a str§form_description: &'a str§form_duration: usize

    Trait Implementations§

    source§

    impl<'a> Clone for AdvanceIndexPage<'a>

    source§

    fn clone(&self) -> AdvanceIndexPage<'a>

    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<'a> Default for AdvanceIndexPage<'a>

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'a> TemplateOnce for AdvanceIndexPage<'a>

    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<'a> Sealed for AdvanceIndexPage<'a>

    Auto Trait Implementations§

    §

    impl<'a> RefUnwindSafe for AdvanceIndexPage<'a>

    §

    impl<'a> Send for AdvanceIndexPage<'a>

    §

    impl<'a> Sync for AdvanceIndexPage<'a>

    §

    impl<'a> Unpin for AdvanceIndexPage<'a>

    §

    impl<'a> UnwindSafe for AdvanceIndexPage<'a>

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/struct.EASY_INDEX.html b/mcaptcha/pages/panel/sitekey/add/struct.EASY_INDEX.html index 08b5ce1a..a118341d 100644 --- a/mcaptcha/pages/panel/sitekey/add/struct.EASY_INDEX.html +++ b/mcaptcha/pages/panel/sitekey/add/struct.EASY_INDEX.html @@ -1,28 +1,28 @@ -EASY_INDEX in mcaptcha::pages::panel::sitekey::add - Rust
    struct EASY_INDEX {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    Extracts a string slice containing the entire String.

    +EASY_INDEX in mcaptcha::pages::panel::sitekey::add - Rust
    struct EASY_INDEX {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    1.7.0 · source

    pub fn as_str(&self) -> &str

    Extracts a string slice containing the entire String.

    Examples

    Basic usage:

    let s = String::from("foo");
     
     assert_eq!("foo", s.as_str());
    -

    Returns this String’s capacity, in bytes.

    +
    1.0.0 · source

    pub fn capacity(&self) -> usize

    Returns this String’s capacity, in bytes.

    Examples

    Basic usage:

    let s = String::with_capacity(10);
     
     assert!(s.capacity() >= 10);
    -

    Returns a byte slice of this String’s contents.

    -

    The inverse of this method is from_utf8.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Returns a byte slice of this String’s contents.

    +

    The inverse of this method is from_utf8.

    Examples

    Basic usage:

    let s = String::from("hello");
     
     assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
    -

    Returns the length of this String, in bytes, not chars or +

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples
    @@ -34,7 +34,7 @@ length of the string.

    let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
    -

    Returns true if this String has a length of zero, and false otherwise.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if this String has a length of zero, and false otherwise.

    Examples

    Basic usage:

    @@ -43,8 +43,8 @@ length of the string.

    v.push('a'); assert!(!v.is_empty());
    -

    Methods from Deref<Target = str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -54,7 +54,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -63,7 +63,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -80,7 +80,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -95,8 +95,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -109,14 +109,14 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a mutable string slice to a mutable byte slice.

    +
    1.20.0 · source

    pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

    Converts a mutable string slice to a mutable byte slice.

    Safety

    The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

    @@ -142,26 +142,27 @@ before the borrow ends and the underlying str is used.

    } assert_eq!("🍔∈🌏", s);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Converts a mutable string slice to a raw pointer.

    +
    1.36.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut u8

    Converts a mutable string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -173,9 +174,10 @@ modified in a way that it remains valid UTF-8.

    // out of bounds assert!(v.get(..42).is_none());
    -

    Returns a mutable subslice of str.

    +
    1.20.0 · source

    pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a mutable subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let mut v = String::from("hello");
     // correct length
    @@ -194,7 +196,8 @@ modified in a way that it remains valid UTF-8.

    assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -213,7 +216,11 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -

    Returns a mutable, unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns a mutable, unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -232,14 +239,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -262,14 +269,14 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.5.0 · source

    pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

    +alternative see str and IndexMut.

    This new slice goes from begin to end, including begin but excluding end.

    To get an immutable string slice instead, see the -slice_unchecked method.

    +slice_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -278,12 +285,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -297,12 +304,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -317,10 +324,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -343,7 +350,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -353,12 +360,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -379,7 +386,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -393,7 +400,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -407,12 +414,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -437,10 +444,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -465,7 +472,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -495,8 +502,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -506,10 +513,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -518,10 +526,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -530,10 +539,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -542,10 +553,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -569,10 +581,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -594,16 +608,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -665,13 +680,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -684,15 +700,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -711,20 +729,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -736,11 +755,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -748,7 +769,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -759,16 +780,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -788,17 +810,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -814,29 +838,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -845,15 +873,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -862,18 +892,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -885,17 +916,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -907,7 +940,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -916,7 +949,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -936,7 +969,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -956,7 +989,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -977,7 +1010,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -998,9 +1031,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1013,9 +1048,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1030,29 +1066,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1070,9 +1111,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1087,9 +1129,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1107,15 +1151,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1133,21 +1178,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1158,7 +1203,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1169,7 +1214,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1188,7 +1233,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1205,7 +1250,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1222,8 +1267,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1237,8 +1283,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1252,11 +1299,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1279,11 +1326,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1301,7 +1348,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1310,36 +1357,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for EASY_INDEX

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for EASY_INDEX

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for EASY_INDEX

    §

    impl Send for EASY_INDEX

    §

    impl Sync for EASY_INDEX

    §

    impl Unpin for EASY_INDEX

    §

    impl UnwindSafe for EASY_INDEX

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/struct.EasyIndexPage.html b/mcaptcha/pages/panel/sitekey/add/struct.EasyIndexPage.html index f051f4c1..af866bd2 100644 --- a/mcaptcha/pages/panel/sitekey/add/struct.EasyIndexPage.html +++ b/mcaptcha/pages/panel/sitekey/add/struct.EasyIndexPage.html @@ -1,15 +1,24 @@ -EasyIndexPage in mcaptcha::pages::panel::sitekey::add - Rust
    pub struct EasyIndexPage<'a> {
    -    pub form_description: &'a str,
    -    pub form_title: &'a str,
    -    pub peak_sustainable_traffic: Option<usize>,
    -    pub avg_traffic: Option<usize>,
    -    pub broke_my_site_traffic: Option<usize>,
    -}

    Fields§

    §form_description: &'a str§form_title: &'a str§peak_sustainable_traffic: Option<usize>§avg_traffic: Option<usize>§broke_my_site_traffic: Option<usize>

    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
    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).

    +EasyIndexPage in mcaptcha::pages::panel::sitekey::add - Rust
    pub struct EasyIndexPage<'a> {
    +    pub form_description: &'a str,
    +    pub form_title: &'a str,
    +    pub peak_sustainable_traffic: Option<usize>,
    +    pub avg_traffic: Option<usize>,
    +    pub broke_my_site_traffic: Option<usize>,
    +}

    Fields§

    §form_description: &'a str§form_title: &'a str§peak_sustainable_traffic: Option<usize>§avg_traffic: Option<usize>§broke_my_site_traffic: Option<usize>

    Trait Implementations§

    source§

    impl<'a> Clone for EasyIndexPage<'a>

    source§

    fn clone(&self) -> EasyIndexPage<'a>

    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<'a> Default for EasyIndexPage<'a>

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl<'a> TemplateOnce for EasyIndexPage<'a>

    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<'a> Sealed for EasyIndexPage<'a>

    Auto Trait Implementations§

    §

    impl<'a> RefUnwindSafe for EasyIndexPage<'a>

    §

    impl<'a> Send for EasyIndexPage<'a>

    §

    impl<'a> Sync for EasyIndexPage<'a>

    §

    impl<'a> Unpin for EasyIndexPage<'a>

    §

    impl<'a> UnwindSafe for EasyIndexPage<'a>

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/struct.advance.html b/mcaptcha/pages/panel/sitekey/add/struct.advance.html index 16ff3940..e1e31529 100644 --- a/mcaptcha/pages/panel/sitekey/add/struct.advance.html +++ b/mcaptcha/pages/panel/sitekey/add/struct.advance.html @@ -1,9 +1,17 @@ -advance in mcaptcha::pages::panel::sitekey::add - Rust
    pub struct advance;

    Trait Implementations§

    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).

    +advance in mcaptcha::pages::panel::sitekey::add - Rust
    pub struct advance;

    Trait Implementations§

    source§

    impl HttpServiceFactory for advance

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/add/struct.easy.html b/mcaptcha/pages/panel/sitekey/add/struct.easy.html index 58e13306..ee15b619 100644 --- a/mcaptcha/pages/panel/sitekey/add/struct.easy.html +++ b/mcaptcha/pages/panel/sitekey/add/struct.easy.html @@ -1,9 +1,17 @@ -easy in mcaptcha::pages::panel::sitekey::add - Rust

    Struct mcaptcha::pages::panel::sitekey::add::easy

    source ·
    pub struct easy;

    Trait Implementations§

    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).

    +easy in mcaptcha::pages::panel::sitekey::add - Rust

    Struct mcaptcha::pages::panel::sitekey::add::easy

    source ·
    pub struct easy;

    Trait Implementations§

    source§

    impl HttpServiceFactory for easy

    source§

    fn register(self, __config: &mut AppService)

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for easy

    §

    impl Send for easy

    §

    impl Sync for easy

    §

    impl Unpin for easy

    §

    impl UnwindSafe for easy

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/delete/fn.delete_sitekey.html b/mcaptcha/pages/panel/sitekey/delete/fn.delete_sitekey.html new file mode 100644 index 00000000..0787c170 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/delete/fn.delete_sitekey.html @@ -0,0 +1 @@ +delete_sitekey in mcaptcha::pages::panel::sitekey::delete - Rust
    pub async fn delete_sitekey(path: Path<String>) -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/delete/index.html b/mcaptcha/pages/panel/sitekey/delete/index.html index 1d36972a..39d27b02 100644 --- a/mcaptcha/pages/panel/sitekey/delete/index.html +++ b/mcaptcha/pages/panel/sitekey/delete/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::sitekey::delete - Rust
    \ No newline at end of file +mcaptcha::pages::panel::sitekey::delete - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/delete/sidebar-items.js b/mcaptcha/pages/panel/sitekey/delete/sidebar-items.js index 0e42780f..1cd57d80 100644 --- a/mcaptcha/pages/panel/sitekey/delete/sidebar-items.js +++ b/mcaptcha/pages/panel/sitekey/delete/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["delete_sitekey",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["delete_sitekey"],"struct":["delete_sitekey"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/delete/struct.delete_sitekey.html b/mcaptcha/pages/panel/sitekey/delete/struct.delete_sitekey.html index 04aacabe..5c6f5595 100644 --- a/mcaptcha/pages/panel/sitekey/delete/struct.delete_sitekey.html +++ b/mcaptcha/pages/panel/sitekey/delete/struct.delete_sitekey.html @@ -1,9 +1,17 @@ -delete_sitekey in mcaptcha::pages::panel::sitekey::delete - Rust
    pub struct delete_sitekey;

    Trait Implementations§

    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).

    +delete_sitekey in mcaptcha::pages::panel::sitekey::delete - Rust
    pub struct delete_sitekey;

    Trait Implementations§

    source§

    impl HttpServiceFactory for delete_sitekey

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/constant.PAGE.html b/mcaptcha/pages/panel/sitekey/edit/constant.PAGE.html index 3bba46a8..6ba03875 100644 --- a/mcaptcha/pages/panel/sitekey/edit/constant.PAGE.html +++ b/mcaptcha/pages/panel/sitekey/edit/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::panel::sitekey::edit - Rust

    Constant mcaptcha::pages::panel::sitekey::edit::PAGE

    source ·
    const PAGE: &str = "Edit Sitekey";
    \ No newline at end of file +PAGE in mcaptcha::pages::panel::sitekey::edit - Rust

    Constant mcaptcha::pages::panel::sitekey::edit::PAGE

    source ·
    const PAGE: &str = "Edit Sitekey";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/constant.READONLY.html b/mcaptcha/pages/panel/sitekey/edit/constant.READONLY.html new file mode 100644 index 00000000..981c3305 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/edit/constant.READONLY.html @@ -0,0 +1 @@ +READONLY in mcaptcha::pages::panel::sitekey::edit - Rust
    const READONLY: bool = false;
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/constant.URL.html b/mcaptcha/pages/panel/sitekey/edit/constant.URL.html new file mode 100644 index 00000000..5b433ff2 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/edit/constant.URL.html @@ -0,0 +1 @@ +URL in mcaptcha::pages::panel::sitekey::edit - Rust

    Constant mcaptcha::pages::panel::sitekey::edit::URL

    source ·
    const URL: &str;
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/fn.advance.html b/mcaptcha/pages/panel/sitekey/edit/fn.advance.html new file mode 100644 index 00000000..4ea03af7 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/edit/fn.advance.html @@ -0,0 +1,6 @@ +advance in mcaptcha::pages::panel::sitekey::edit - Rust

    Function mcaptcha::pages::panel::sitekey::edit::advance

    source ·
    pub async fn advance(
    +    path: Path<String>,
    +    data: AppData,
    +    id: Identity
    +) -> Result<impl Responder, PageError>
    Expand description

    route handler that renders individual views for sitekeys

    +
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/fn.easy.html b/mcaptcha/pages/panel/sitekey/edit/fn.easy.html new file mode 100644 index 00000000..6ed85303 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/edit/fn.easy.html @@ -0,0 +1,6 @@ +easy in mcaptcha::pages::panel::sitekey::edit - Rust

    Function mcaptcha::pages::panel::sitekey::edit::easy

    source ·
    pub async fn easy(
    +    path: Path<String>,
    +    data: AppData,
    +    id: Identity
    +) -> Result<impl Responder, PageError>
    Expand description

    route handler that renders individual views for sitekeys

    +
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/index.html b/mcaptcha/pages/panel/sitekey/edit/index.html index bf7f2352..509982ba 100644 --- a/mcaptcha/pages/panel/sitekey/edit/index.html +++ b/mcaptcha/pages/panel/sitekey/edit/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::sitekey::edit - Rust

    Module mcaptcha::pages::panel::sitekey::edit

    source ·

    Structs

    route handler that renders individual views for sitekeys
    route handler that renders individual views for sitekeys

    Constants

    PAGE 🔒
    \ No newline at end of file +mcaptcha::pages::panel::sitekey::edit - Rust

    Module mcaptcha::pages::panel::sitekey::edit

    source ·

    Structs

    Constants

    Statics

    Functions

    • route handler that renders individual views for sitekeys
    • route handler that renders individual views for sitekeys
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/sidebar-items.js b/mcaptcha/pages/panel/sitekey/edit/sidebar-items.js index 69758b64..4df5bdd1 100644 --- a/mcaptcha/pages/panel/sitekey/edit/sidebar-items.js +++ b/mcaptcha/pages/panel/sitekey/edit/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"struct":[["AdvanceEditPage",""],["EasyEditPage",""],["advance","route handler that renders individual views for sitekeys"],["easy","route handler that renders individual views for sitekeys"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE","READONLY","URL"],"fn":["advance","easy"],"static":["SIZE_HINT"],"struct":["AdvanceEditPage","EasyEditPage","advance","easy"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/static.SIZE_HINT.html b/mcaptcha/pages/panel/sitekey/edit/static.SIZE_HINT.html new file mode 100644 index 00000000..e3d9c9b0 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/edit/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::panel::sitekey::edit - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html b/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html index adc26926..7f9166e7 100644 --- a/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html +++ b/mcaptcha/pages/panel/sitekey/edit/struct.AdvanceEditPage.html @@ -1,14 +1,23 @@ -AdvanceEditPage in mcaptcha::pages::panel::sitekey::edit - Rust
    struct AdvanceEditPage {
    -    duration: u32,
    -    name: String,
    -    key: String,
    -    levels: Vec<Level>,
    -}

    Fields§

    §duration: u32§name: String§key: String§levels: 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).

    +AdvanceEditPage in mcaptcha::pages::panel::sitekey::edit - Rust
    struct AdvanceEditPage {
    +    duration: u32,
    +    name: String,
    +    key: String,
    +    levels: Vec<Level>,
    +}

    Fields§

    §duration: u32§name: String§key: String§levels: Vec<Level>

    Implementations§

    source§

    impl AdvanceEditPage

    source

    fn new(config: Captcha, levels: Vec<Level>, key: String) -> Self

    Trait Implementations§

    source§

    impl Clone for AdvanceEditPage

    source§

    fn clone(&self) -> AdvanceEditPage

    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 AdvanceEditPage

    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 AdvanceEditPage

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/struct.EasyEditPage.html b/mcaptcha/pages/panel/sitekey/edit/struct.EasyEditPage.html index 72d6b63d..4760296e 100644 --- a/mcaptcha/pages/panel/sitekey/edit/struct.EasyEditPage.html +++ b/mcaptcha/pages/panel/sitekey/edit/struct.EasyEditPage.html @@ -1,13 +1,22 @@ -EasyEditPage in mcaptcha::pages::panel::sitekey::edit - Rust
    pub struct EasyEditPage<'a> {
    -    pub form_title: &'a str,
    +EasyEditPage in mcaptcha::pages::panel::sitekey::edit - Rust
    pub struct EasyEditPage<'a> {
    +    pub form_title: &'a str,
         pub pattern: TrafficPatternRequest,
    -    pub key: String,
    -}

    Fields§

    §form_title: &'a str§pattern: TrafficPatternRequest§key: String

    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).

    + pub key: String, +}

    Fields§

    §form_title: &'a str§pattern: TrafficPatternRequest§key: String

    Implementations§

    source§

    impl<'a> EasyEditPage<'a>

    source

    pub fn new(key: String, pattern: TrafficPatternRequest) -> Self

    Trait Implementations§

    source§

    impl<'a> Clone for EasyEditPage<'a>

    source§

    fn clone(&self) -> EasyEditPage<'a>

    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<'a> TemplateOnce for EasyEditPage<'a>

    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<'a> Sealed for EasyEditPage<'a>

    Auto Trait Implementations§

    §

    impl<'a> RefUnwindSafe for EasyEditPage<'a>

    §

    impl<'a> Send for EasyEditPage<'a>

    §

    impl<'a> Sync for EasyEditPage<'a>

    §

    impl<'a> Unpin for EasyEditPage<'a>

    §

    impl<'a> UnwindSafe for EasyEditPage<'a>

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/struct.advance.html b/mcaptcha/pages/panel/sitekey/edit/struct.advance.html index e08e75c6..4be0be98 100644 --- a/mcaptcha/pages/panel/sitekey/edit/struct.advance.html +++ b/mcaptcha/pages/panel/sitekey/edit/struct.advance.html @@ -1,10 +1,18 @@ -advance in mcaptcha::pages::panel::sitekey::edit - Rust
    pub struct advance;
    Expand description

    route handler that renders individual views for sitekeys

    -

    Trait Implementations§

    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).

    +advance in mcaptcha::pages::panel::sitekey::edit - Rust
    pub struct advance;
    Expand description

    route handler that renders individual views for sitekeys

    +

    Trait Implementations§

    source§

    impl HttpServiceFactory for advance

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/edit/struct.easy.html b/mcaptcha/pages/panel/sitekey/edit/struct.easy.html index adbcabd6..9f2ae9c0 100644 --- a/mcaptcha/pages/panel/sitekey/edit/struct.easy.html +++ b/mcaptcha/pages/panel/sitekey/edit/struct.easy.html @@ -1,10 +1,18 @@ -easy in mcaptcha::pages::panel::sitekey::edit - Rust

    Struct mcaptcha::pages::panel::sitekey::edit::easy

    source ·
    pub struct easy;
    Expand description

    route handler that renders individual views for sitekeys

    -

    Trait Implementations§

    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).

    +easy in mcaptcha::pages::panel::sitekey::edit - Rust

    Struct mcaptcha::pages::panel::sitekey::edit::easy

    source ·
    pub struct easy;
    Expand description

    route handler that renders individual views for sitekeys

    +

    Trait Implementations§

    source§

    impl HttpServiceFactory for easy

    source§

    fn register(self, __config: &mut AppService)

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for easy

    §

    impl Send for easy

    §

    impl Sync for easy

    §

    impl Unpin for easy

    §

    impl UnwindSafe for easy

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/fn.services.html b/mcaptcha/pages/panel/sitekey/fn.services.html index 2ca624a6..b23a1b6a 100644 --- a/mcaptcha/pages/panel/sitekey/fn.services.html +++ b/mcaptcha/pages/panel/sitekey/fn.services.html @@ -1 +1 @@ -services in mcaptcha::pages::panel::sitekey - Rust

    Function mcaptcha::pages::panel::sitekey::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file +services in mcaptcha::pages::panel::sitekey - Rust

    Function mcaptcha::pages::panel::sitekey::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/index.html b/mcaptcha/pages/panel/sitekey/index.html index 324af652..1971f649 100644 --- a/mcaptcha/pages/panel/sitekey/index.html +++ b/mcaptcha/pages/panel/sitekey/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::sitekey - Rust
    \ No newline at end of file +mcaptcha::pages::panel::sitekey - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/constant.COPY_ALT.html b/mcaptcha/pages/panel/sitekey/list/constant.COPY_ALT.html new file mode 100644 index 00000000..ea0e9c4c --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/list/constant.COPY_ALT.html @@ -0,0 +1 @@ +COPY_ALT in mcaptcha::pages::panel::sitekey::list - Rust
    const COPY_ALT: &str = "copy sitekey";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/constant.COPY_CLASS.html b/mcaptcha/pages/panel/sitekey/list/constant.COPY_CLASS.html new file mode 100644 index 00000000..f366cd35 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/list/constant.COPY_CLASS.html @@ -0,0 +1 @@ +COPY_CLASS in mcaptcha::pages::panel::sitekey::list - Rust
    const COPY_CLASS: &str = "sitekey__copy-icon";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/constant.DONE_ALT.html b/mcaptcha/pages/panel/sitekey/list/constant.DONE_ALT.html new file mode 100644 index 00000000..0aa0283d --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/list/constant.DONE_ALT.html @@ -0,0 +1 @@ +DONE_ALT in mcaptcha::pages::panel::sitekey::list - Rust
    const DONE_ALT: &str = "sitekey copied";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/constant.DONE_CLASS.html b/mcaptcha/pages/panel/sitekey/list/constant.DONE_CLASS.html new file mode 100644 index 00000000..94a65feb --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/list/constant.DONE_CLASS.html @@ -0,0 +1 @@ +DONE_CLASS in mcaptcha::pages::panel::sitekey::list - Rust
    const DONE_CLASS: &str = "sitekey__copy-done-icon";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/constant.PAGE.html b/mcaptcha/pages/panel/sitekey/list/constant.PAGE.html index 19a51479..4b87aba3 100644 --- a/mcaptcha/pages/panel/sitekey/list/constant.PAGE.html +++ b/mcaptcha/pages/panel/sitekey/list/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::panel::sitekey::list - Rust

    Constant mcaptcha::pages::panel::sitekey::list::PAGE

    source ·
    const PAGE: &str = "SiteKeys";
    \ No newline at end of file +PAGE in mcaptcha::pages::panel::sitekey::list - Rust

    Constant mcaptcha::pages::panel::sitekey::list::PAGE

    source ·
    const PAGE: &str = "SiteKeys";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/fn.list_sitekeys.html b/mcaptcha/pages/panel/sitekey/list/fn.list_sitekeys.html new file mode 100644 index 00000000..9ac20178 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/list/fn.list_sitekeys.html @@ -0,0 +1,5 @@ +list_sitekeys in mcaptcha::pages::panel::sitekey::list - Rust
    pub async fn list_sitekeys(
    +    data: AppData,
    +    id: Identity
    +) -> Result<impl Responder, PageError>
    Expand description

    render a list of all sitekeys that a user has

    +
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/index.html b/mcaptcha/pages/panel/sitekey/list/index.html index fc4955e1..40bd21bb 100644 --- a/mcaptcha/pages/panel/sitekey/list/index.html +++ b/mcaptcha/pages/panel/sitekey/list/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::sitekey::list - Rust

    Module mcaptcha::pages::panel::sitekey::list

    source ·

    Structs

    render a list of all sitekeys that a user has

    Constants

    PAGE 🔒
    \ No newline at end of file +mcaptcha::pages::panel::sitekey::list - Rust

    Module mcaptcha::pages::panel::sitekey::list

    source ·

    Structs

    Constants

    Statics

    Functions

    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/sidebar-items.js b/mcaptcha/pages/panel/sitekey/list/sidebar-items.js index 808981e6..9dd56177 100644 --- a/mcaptcha/pages/panel/sitekey/list/sidebar-items.js +++ b/mcaptcha/pages/panel/sitekey/list/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"struct":[["IndexPage",""],["list_sitekeys","render a list of all sitekeys that a user has"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["COPY_ALT","COPY_CLASS","DONE_ALT","DONE_CLASS","PAGE"],"fn":["list_sitekeys"],"static":["SIZE_HINT"],"struct":["IndexPage","list_sitekeys"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/static.SIZE_HINT.html b/mcaptcha/pages/panel/sitekey/list/static.SIZE_HINT.html new file mode 100644 index 00000000..6dc49efb --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/list/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::panel::sitekey::list - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html b/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html index 1dc84472..66bf764f 100644 --- a/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html +++ b/mcaptcha/pages/panel/sitekey/list/struct.IndexPage.html @@ -1,11 +1,20 @@ -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.

    -
    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).

    +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 + 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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/list/struct.list_sitekeys.html b/mcaptcha/pages/panel/sitekey/list/struct.list_sitekeys.html index 5066bcf5..9364d9a1 100644 --- a/mcaptcha/pages/panel/sitekey/list/struct.list_sitekeys.html +++ b/mcaptcha/pages/panel/sitekey/list/struct.list_sitekeys.html @@ -1,10 +1,18 @@ -list_sitekeys in mcaptcha::pages::panel::sitekey::list - Rust
    pub struct list_sitekeys;
    Expand description

    render a list of all sitekeys that a user has

    -

    Trait Implementations§

    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).

    +list_sitekeys in mcaptcha::pages::panel::sitekey::list - Rust
    pub struct list_sitekeys;
    Expand description

    render a list of all sitekeys that a user has

    +

    Trait Implementations§

    source§

    impl HttpServiceFactory for list_sitekeys

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/routes/constant.S.html b/mcaptcha/pages/panel/sitekey/routes/constant.S.html new file mode 100644 index 00000000..b349aa7a --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/routes/constant.S.html @@ -0,0 +1 @@ +S in mcaptcha::pages::panel::sitekey::routes - Rust

    Constant mcaptcha::pages::panel::sitekey::routes::S

    source ·
    const S: Sitekey;
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/routes/index.html b/mcaptcha/pages/panel/sitekey/routes/index.html index 2eda3c9e..a5ede2f9 100644 --- a/mcaptcha/pages/panel/sitekey/routes/index.html +++ b/mcaptcha/pages/panel/sitekey/routes/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::sitekey::routes - Rust
    \ No newline at end of file +mcaptcha::pages::panel::sitekey::routes - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/routes/sidebar-items.js b/mcaptcha/pages/panel/sitekey/routes/sidebar-items.js index e36f8902..7cf14ed6 100644 --- a/mcaptcha/pages/panel/sitekey/routes/sidebar-items.js +++ b/mcaptcha/pages/panel/sitekey/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Sitekey",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["S"],"struct":["Sitekey"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/routes/struct.Sitekey.html b/mcaptcha/pages/panel/sitekey/routes/struct.Sitekey.html index 777fd1eb..e458141c 100644 --- a/mcaptcha/pages/panel/sitekey/routes/struct.Sitekey.html +++ b/mcaptcha/pages/panel/sitekey/routes/struct.Sitekey.html @@ -1,17 +1,25 @@ -Sitekey in mcaptcha::pages::panel::sitekey::routes - Rust
    pub struct Sitekey {
    -    pub list: &'static str,
    -    pub add_easy: &'static str,
    -    pub add_advance: &'static str,
    -    pub view: &'static str,
    -    pub edit_easy: &'static str,
    -    pub edit_advance: &'static str,
    -    pub delete: &'static str,
    -}

    Fields§

    §list: &'static str§add_easy: &'static str§add_advance: &'static str§view: &'static str§edit_easy: &'static str§edit_advance: &'static str§delete: &'static str

    Implementations§

    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).

    +Sitekey in mcaptcha::pages::panel::sitekey::routes - Rust
    pub struct Sitekey {
    +    pub list: &'static str,
    +    pub add_easy: &'static str,
    +    pub add_advance: &'static str,
    +    pub view: &'static str,
    +    pub edit_easy: &'static str,
    +    pub edit_advance: &'static str,
    +    pub delete: &'static str,
    +}

    Fields§

    §list: &'static str§add_easy: &'static str§add_advance: &'static str§view: &'static str§edit_easy: &'static str§edit_advance: &'static str§delete: &'static str

    Implementations§

    source§

    impl Sitekey

    source

    pub const fn new() -> Self

    source

    pub const fn get_sitemap() -> [&'static str; 2]

    source

    pub fn get_edit_easy(&self, key: &str) -> String

    source

    pub fn get_edit_advance(&self, key: &str) -> String

    source

    pub fn get_view(&self, key: &str) -> String

    source

    pub fn get_delete(&self, key: &str) -> String

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/sidebar-items.js b/mcaptcha/pages/panel/sitekey/sidebar-items.js index 2a9cad02..468029c1 100644 --- a/mcaptcha/pages/panel/sitekey/sidebar-items.js +++ b/mcaptcha/pages/panel/sitekey/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["add",""],["delete",""],["edit",""],["list",""],["routes",""],["view",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["services"],"mod":["add","delete","edit","list","routes","view"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/constant.PAGE.html b/mcaptcha/pages/panel/sitekey/view/constant.PAGE.html index 25f5c4c5..0c9aae01 100644 --- a/mcaptcha/pages/panel/sitekey/view/constant.PAGE.html +++ b/mcaptcha/pages/panel/sitekey/view/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::pages::panel::sitekey::view - Rust

    Constant mcaptcha::pages::panel::sitekey::view::PAGE

    source ·
    const PAGE: &str = "SiteKeys";
    \ No newline at end of file +PAGE in mcaptcha::pages::panel::sitekey::view - Rust

    Constant mcaptcha::pages::panel::sitekey::view::PAGE

    source ·
    const PAGE: &str = "SiteKeys";
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/constant.READONLY.html b/mcaptcha/pages/panel/sitekey/view/constant.READONLY.html new file mode 100644 index 00000000..d83b1f29 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/view/constant.READONLY.html @@ -0,0 +1 @@ +READONLY in mcaptcha::pages::panel::sitekey::view - Rust
    const READONLY: bool = true;
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/constant.URL.html b/mcaptcha/pages/panel/sitekey/view/constant.URL.html new file mode 100644 index 00000000..7daf772f --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/view/constant.URL.html @@ -0,0 +1 @@ +URL in mcaptcha::pages::panel::sitekey::view - Rust

    Constant mcaptcha::pages::panel::sitekey::view::URL

    source ·
    const URL: &str;
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/fn.view_sitekey.html b/mcaptcha/pages/panel/sitekey/view/fn.view_sitekey.html new file mode 100644 index 00000000..9be33434 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/view/fn.view_sitekey.html @@ -0,0 +1,6 @@ +view_sitekey in mcaptcha::pages::panel::sitekey::view - Rust
    pub async fn view_sitekey(
    +    path: Path<String>,
    +    data: AppData,
    +    id: Identity
    +) -> Result<impl Responder, PageError>
    Expand description

    route handler that renders individual views for sitekeys

    +
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/index.html b/mcaptcha/pages/panel/sitekey/view/index.html index 657da859..b0ab70cc 100644 --- a/mcaptcha/pages/panel/sitekey/view/index.html +++ b/mcaptcha/pages/panel/sitekey/view/index.html @@ -1 +1 @@ -mcaptcha::pages::panel::sitekey::view - Rust

    Module mcaptcha::pages::panel::sitekey::view

    source ·

    Structs

    IndexPage 🔒
    route handler that renders individual views for sitekeys

    Constants

    PAGE 🔒
    \ No newline at end of file +mcaptcha::pages::panel::sitekey::view - Rust

    Module mcaptcha::pages::panel::sitekey::view

    source ·

    Structs

    Constants

    Statics

    Functions

    • route handler that renders individual views for sitekeys
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/sidebar-items.js b/mcaptcha/pages/panel/sitekey/view/sidebar-items.js index b3e70078..82dec71c 100644 --- a/mcaptcha/pages/panel/sitekey/view/sidebar-items.js +++ b/mcaptcha/pages/panel/sitekey/view/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""]],"struct":[["IndexPage",""],["view_sitekey","route handler that renders individual views for sitekeys"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE","READONLY","URL"],"fn":["view_sitekey"],"static":["SIZE_HINT"],"struct":["IndexPage","view_sitekey"]}; \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/static.SIZE_HINT.html b/mcaptcha/pages/panel/sitekey/view/static.SIZE_HINT.html new file mode 100644 index 00000000..034e91a7 --- /dev/null +++ b/mcaptcha/pages/panel/sitekey/view/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::panel::sitekey::view - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html b/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html index bc776f4c..5a934a80 100644 --- a/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html +++ b/mcaptcha/pages/panel/sitekey/view/struct.IndexPage.html @@ -1,15 +1,29 @@ -IndexPage in mcaptcha::pages::panel::sitekey::view - Rust
    struct IndexPage {
    -    duration: u32,
    -    name: String,
    -    key: String,
    -    levels: Vec<Level>,
    +IndexPage in mcaptcha::pages::panel::sitekey::view - Rust
    struct IndexPage {
    +    duration: u32,
    +    name: String,
    +    key: String,
    +    levels: Vec<Level>,
         stats: CaptchaStats,
    -}

    Fields§

    §duration: u32§name: String§key: String§levels: 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).

    +}

    Fields§

    §duration: u32§name: String§key: String§levels: Vec<Level>§stats: CaptchaStats

    Implementations§

    source§

    impl IndexPage

    source

    fn new( + stats: CaptchaStats, + config: Captcha, + levels: Vec<Level>, + key: String +) -> 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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/sitekey/view/struct.view_sitekey.html b/mcaptcha/pages/panel/sitekey/view/struct.view_sitekey.html index e47c947f..5cb85b7f 100644 --- a/mcaptcha/pages/panel/sitekey/view/struct.view_sitekey.html +++ b/mcaptcha/pages/panel/sitekey/view/struct.view_sitekey.html @@ -1,10 +1,18 @@ -view_sitekey in mcaptcha::pages::panel::sitekey::view - Rust
    pub struct view_sitekey;
    Expand description

    route handler that renders individual views for sitekeys

    -

    Trait Implementations§

    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).

    +view_sitekey in mcaptcha::pages::panel::sitekey::view - Rust
    pub struct view_sitekey;
    Expand description

    route handler that renders individual views for sitekeys

    +

    Trait Implementations§

    source§

    impl HttpServiceFactory for view_sitekey

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/static.SIZE_HINT.html b/mcaptcha/pages/panel/static.SIZE_HINT.html new file mode 100644 index 00000000..332ab2f2 --- /dev/null +++ b/mcaptcha/pages/panel/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::panel - Rust

    Static mcaptcha::pages::panel::SIZE_HINT

    source ·
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/struct.IndexPage.html b/mcaptcha/pages/panel/struct.IndexPage.html index 810bfc62..6c9523e3 100644 --- a/mcaptcha/pages/panel/struct.IndexPage.html +++ b/mcaptcha/pages/panel/struct.IndexPage.html @@ -1,11 +1,20 @@ -IndexPage in mcaptcha::pages::panel - Rust

    Struct mcaptcha::pages::panel::IndexPage

    source ·
    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.

    -
    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).

    +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 + 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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/panel/struct.panel.html b/mcaptcha/pages/panel/struct.panel.html index 0660f9e1..61a20cc5 100644 --- a/mcaptcha/pages/panel/struct.panel.html +++ b/mcaptcha/pages/panel/struct.panel.html @@ -1,9 +1,17 @@ -panel in mcaptcha::pages::panel - Rust

    Struct mcaptcha::pages::panel::panel

    source ·
    pub struct panel;

    Trait Implementations§

    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).

    +panel in mcaptcha::pages::panel - Rust

    Struct mcaptcha::pages::panel::panel

    source ·
    pub struct panel;

    Trait Implementations§

    source§

    impl HttpServiceFactory for panel

    source§

    fn register(self, __config: &mut AppService)

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for panel

    §

    impl Send for panel

    §

    impl Sync for panel

    §

    impl Unpin for panel

    §

    impl UnwindSafe for panel

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/routes/constant.ROUTES.html b/mcaptcha/pages/routes/constant.ROUTES.html index 33dcd2bf..6fde5b90 100644 --- a/mcaptcha/pages/routes/constant.ROUTES.html +++ b/mcaptcha/pages/routes/constant.ROUTES.html @@ -1 +1 @@ -ROUTES in mcaptcha::pages::routes - Rust

    Constant mcaptcha::pages::routes::ROUTES

    source ·
    pub const ROUTES: Routes;
    \ No newline at end of file +ROUTES in mcaptcha::pages::routes - Rust

    Constant mcaptcha::pages::routes::ROUTES

    source ·
    pub const ROUTES: Routes;
    \ No newline at end of file diff --git a/mcaptcha/pages/routes/index.html b/mcaptcha/pages/routes/index.html index 285cd2c0..942140bd 100644 --- a/mcaptcha/pages/routes/index.html +++ b/mcaptcha/pages/routes/index.html @@ -1 +1 @@ -mcaptcha::pages::routes - Rust
    \ No newline at end of file +mcaptcha::pages::routes - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/routes/sidebar-items.js b/mcaptcha/pages/routes/sidebar-items.js index e8b484a1..f4cd0cb2 100644 --- a/mcaptcha/pages/routes/sidebar-items.js +++ b/mcaptcha/pages/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["ROUTES",""]],"struct":[["Routes",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["ROUTES"],"struct":["Routes"]}; \ No newline at end of file diff --git a/mcaptcha/pages/routes/struct.Routes.html b/mcaptcha/pages/routes/struct.Routes.html index a2bcadbd..a491c675 100644 --- a/mcaptcha/pages/routes/struct.Routes.html +++ b/mcaptcha/pages/routes/struct.Routes.html @@ -1,20 +1,28 @@ -Routes in mcaptcha::pages::routes - Rust

    Struct mcaptcha::pages::routes::Routes

    source ·
    pub struct Routes {
    -    pub home: &'static str,
    +Routes in mcaptcha::pages::routes - Rust

    Struct mcaptcha::pages::routes::Routes

    source ·
    pub struct Routes {
    +    pub home: &'static str,
         pub auth: Auth,
         pub panel: Panel,
         pub errors: Errors,
    -    pub about: &'static str,
    -    pub sitemap: &'static str,
    -    pub thanks: &'static str,
    -    pub donate: &'static str,
    -    pub security: &'static str,
    -    pub privacy: &'static str,
    -}

    Fields§

    §home: &'static str§auth: Auth§panel: Panel§errors: Errors§about: &'static str§sitemap: &'static str§thanks: &'static str§donate: &'static str§security: &'static str§privacy: &'static str

    Implementations§

    Trait Implementations§

    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).

    + pub about: &'static str, + pub sitemap: &'static str, + pub thanks: &'static str, + pub donate: &'static str, + pub security: &'static str, + pub privacy: &'static str, +}

    Fields§

    §home: &'static str§auth: Auth§panel: Panel§errors: Errors§about: &'static str§sitemap: &'static str§thanks: &'static str§donate: &'static str§security: &'static str§privacy: &'static str

    Implementations§

    source§

    impl Routes

    source

    const fn new() -> Routes

    source

    pub const fn get_sitemap() -> [&'static str; 7]

    Trait Implementations§

    source§

    impl GetLoginRoute for Routes

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/sidebar-items.js b/mcaptcha/pages/sidebar-items.js index 1b7e028a..527daf64 100644 --- a/mcaptcha/pages/sidebar-items.js +++ b/mcaptcha/pages/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["NAME",""]],"fn":[["get_middleware",""],["services",""]],"mod":[["auth",""],["errors",""],["panel",""],["routes",""],["sitemap",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["NAME"],"fn":["get_middleware","services"],"mod":["auth","errors","panel","routes","sitemap"]}; \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/fn.__stability.html b/mcaptcha/pages/sitemap/fn.__stability.html new file mode 100644 index 00000000..8929a858 --- /dev/null +++ b/mcaptcha/pages/sitemap/fn.__stability.html @@ -0,0 +1 @@ +__stability in mcaptcha::pages::sitemap - Rust
    fn __stability() -> &'static String
    \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/fn.__static_ref_initialize.html b/mcaptcha/pages/sitemap/fn.__static_ref_initialize.html new file mode 100644 index 00000000..1cc4431d --- /dev/null +++ b/mcaptcha/pages/sitemap/fn.__static_ref_initialize.html @@ -0,0 +1 @@ +__static_ref_initialize in mcaptcha::pages::sitemap - Rust
    fn __static_ref_initialize() -> String
    \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/fn.sitemap.html b/mcaptcha/pages/sitemap/fn.sitemap.html new file mode 100644 index 00000000..27bbeb39 --- /dev/null +++ b/mcaptcha/pages/sitemap/fn.sitemap.html @@ -0,0 +1 @@ +sitemap in mcaptcha::pages::sitemap - Rust

    Function mcaptcha::pages::sitemap::sitemap

    source ·
    pub async fn sitemap() -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/index.html b/mcaptcha/pages/sitemap/index.html index e93ed495..046dd577 100644 --- a/mcaptcha/pages/sitemap/index.html +++ b/mcaptcha/pages/sitemap/index.html @@ -1 +1 @@ -mcaptcha::pages::sitemap - Rust
    \ No newline at end of file +mcaptcha::pages::sitemap - Rust
    \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/sidebar-items.js b/mcaptcha/pages/sitemap/sidebar-items.js index 6c257780..cbd70663 100644 --- a/mcaptcha/pages/sitemap/sidebar-items.js +++ b/mcaptcha/pages/sitemap/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["INDEX",""],["IndexPage",""],["sitemap",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["__stability","__static_ref_initialize","sitemap"],"static":["LAZY","SIZE_HINT"],"struct":["INDEX","IndexPage","sitemap"]}; \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/static.LAZY.html b/mcaptcha/pages/sitemap/static.LAZY.html new file mode 100644 index 00000000..2b364793 --- /dev/null +++ b/mcaptcha/pages/sitemap/static.LAZY.html @@ -0,0 +1 @@ +LAZY in mcaptcha::pages::sitemap - Rust

    Static mcaptcha::pages::sitemap::LAZY

    source ·
    static LAZY: Lazy<String>
    \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/static.SIZE_HINT.html b/mcaptcha/pages/sitemap/static.SIZE_HINT.html new file mode 100644 index 00000000..7937f320 --- /dev/null +++ b/mcaptcha/pages/sitemap/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::pages::sitemap - Rust
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/struct.INDEX.html b/mcaptcha/pages/sitemap/struct.INDEX.html index f8cdf291..7303724c 100644 --- a/mcaptcha/pages/sitemap/struct.INDEX.html +++ b/mcaptcha/pages/sitemap/struct.INDEX.html @@ -1,28 +1,28 @@ -INDEX in mcaptcha::pages::sitemap - Rust

    Struct mcaptcha::pages::sitemap::INDEX

    source ·
    struct INDEX {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    Extracts a string slice containing the entire String.

    +INDEX in mcaptcha::pages::sitemap - Rust

    Struct mcaptcha::pages::sitemap::INDEX

    source ·
    struct INDEX {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    1.7.0 · source

    pub fn as_str(&self) -> &str

    Extracts a string slice containing the entire String.

    Examples

    Basic usage:

    let s = String::from("foo");
     
     assert_eq!("foo", s.as_str());
    -

    Returns this String’s capacity, in bytes.

    +
    1.0.0 · source

    pub fn capacity(&self) -> usize

    Returns this String’s capacity, in bytes.

    Examples

    Basic usage:

    let s = String::with_capacity(10);
     
     assert!(s.capacity() >= 10);
    -

    Returns a byte slice of this String’s contents.

    -

    The inverse of this method is from_utf8.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Returns a byte slice of this String’s contents.

    +

    The inverse of this method is from_utf8.

    Examples

    Basic usage:

    let s = String::from("hello");
     
     assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
    -

    Returns the length of this String, in bytes, not chars or +

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples
    @@ -34,7 +34,7 @@ length of the string.

    let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
    -

    Returns true if this String has a length of zero, and false otherwise.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if this String has a length of zero, and false otherwise.

    Examples

    Basic usage:

    @@ -43,8 +43,8 @@ length of the string.

    v.push('a'); assert!(!v.is_empty());
    -

    Methods from Deref<Target = str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -54,7 +54,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -63,7 +63,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -80,7 +80,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -95,8 +95,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -109,14 +109,14 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a mutable string slice to a mutable byte slice.

    +
    1.20.0 · source

    pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

    Converts a mutable string slice to a mutable byte slice.

    Safety

    The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

    @@ -142,26 +142,27 @@ before the borrow ends and the underlying str is used.

    } assert_eq!("🍔∈🌏", s);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Converts a mutable string slice to a raw pointer.

    +
    1.36.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut u8

    Converts a mutable string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -173,9 +174,10 @@ modified in a way that it remains valid UTF-8.

    // out of bounds assert!(v.get(..42).is_none());
    -

    Returns a mutable subslice of str.

    +
    1.20.0 · source

    pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a mutable subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let mut v = String::from("hello");
     // correct length
    @@ -194,7 +196,8 @@ modified in a way that it remains valid UTF-8.

    assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -213,7 +216,11 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -

    Returns a mutable, unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns a mutable, unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -232,14 +239,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -262,14 +269,14 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.5.0 · source

    pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

    +alternative see str and IndexMut.

    This new slice goes from begin to end, including begin but excluding end.

    To get an immutable string slice instead, see the -slice_unchecked method.

    +slice_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -278,12 +285,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -297,12 +304,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -317,10 +324,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -343,7 +350,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -353,12 +360,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -379,7 +386,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -393,7 +400,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -407,12 +414,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -437,10 +444,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -465,7 +472,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -495,8 +502,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -506,10 +513,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -518,10 +526,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -530,10 +539,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -542,10 +553,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -569,10 +581,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -594,16 +608,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -665,13 +680,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -684,15 +700,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -711,20 +729,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -736,11 +755,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -748,7 +769,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -759,16 +780,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -788,17 +810,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -814,29 +838,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -845,15 +873,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -862,18 +892,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -885,17 +916,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -907,7 +940,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -916,7 +949,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -936,7 +969,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -956,7 +989,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -977,7 +1010,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -998,9 +1031,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1013,9 +1048,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1030,29 +1066,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1070,9 +1111,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1087,9 +1129,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1107,15 +1151,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1133,21 +1178,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1158,7 +1203,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1169,7 +1214,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1188,7 +1233,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1205,7 +1250,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1222,8 +1267,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1237,8 +1283,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1252,11 +1299,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1279,11 +1326,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1301,7 +1348,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1310,36 +1357,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for INDEX

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for INDEX

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for INDEX

    §

    impl Send for INDEX

    §

    impl Sync for INDEX

    §

    impl Unpin for INDEX

    §

    impl UnwindSafe for INDEX

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/struct.IndexPage.html b/mcaptcha/pages/sitemap/struct.IndexPage.html index f8558839..296f0839 100644 --- a/mcaptcha/pages/sitemap/struct.IndexPage.html +++ b/mcaptcha/pages/sitemap/struct.IndexPage.html @@ -1,12 +1,21 @@ -IndexPage in mcaptcha::pages::sitemap - Rust
    struct IndexPage {
    -    urls: [&'static str; 7],
    -    domain: &'static str,
    -}

    Fields§

    §urls: [&'static str; 7]§domain: &'static str

    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
    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).

    +IndexPage in mcaptcha::pages::sitemap - Rust
    struct IndexPage {
    +    urls: [&'static str; 7],
    +    domain: &'static str,
    +}

    Fields§

    §urls: [&'static str; 7]§domain: &'static str

    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 Default for IndexPage

    source§

    fn default() -> Self

    Returns the “default value” for a type. 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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/pages/sitemap/struct.sitemap.html b/mcaptcha/pages/sitemap/struct.sitemap.html index 818eccd6..ef787a2f 100644 --- a/mcaptcha/pages/sitemap/struct.sitemap.html +++ b/mcaptcha/pages/sitemap/struct.sitemap.html @@ -1,9 +1,17 @@ -sitemap in mcaptcha::pages::sitemap - Rust

    Struct mcaptcha::pages::sitemap::sitemap

    source ·
    pub struct sitemap;

    Trait Implementations§

    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).

    +sitemap in mcaptcha::pages::sitemap - Rust

    Struct mcaptcha::pages::sitemap::sitemap

    source ·
    pub struct sitemap;

    Trait Implementations§

    source§

    impl HttpServiceFactory for sitemap

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/routes/fn.services.html b/mcaptcha/routes/fn.services.html index e07baa24..91b9382a 100644 --- a/mcaptcha/routes/fn.services.html +++ b/mcaptcha/routes/fn.services.html @@ -1 +1 @@ -services in mcaptcha::routes - Rust

    Function mcaptcha::routes::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file +services in mcaptcha::routes - Rust

    Function mcaptcha::routes::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file diff --git a/mcaptcha/routes/index.html b/mcaptcha/routes/index.html index c81d9380..e87412bc 100644 --- a/mcaptcha/routes/index.html +++ b/mcaptcha/routes/index.html @@ -1 +1 @@ -mcaptcha::routes - Rust
    \ No newline at end of file +mcaptcha::routes - Rust
    \ No newline at end of file diff --git a/mcaptcha/routes/sidebar-items.js b/mcaptcha/routes/sidebar-items.js index c11bb208..1feeda3f 100644 --- a/mcaptcha/routes/sidebar-items.js +++ b/mcaptcha/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["services"]}; \ No newline at end of file diff --git a/mcaptcha/settings/constant.CURRENT_DIR.html b/mcaptcha/settings/constant.CURRENT_DIR.html new file mode 100644 index 00000000..2ecd71ce --- /dev/null +++ b/mcaptcha/settings/constant.CURRENT_DIR.html @@ -0,0 +1 @@ +CURRENT_DIR in mcaptcha::settings - Rust

    Constant mcaptcha::settings::CURRENT_DIR

    source ·
    const CURRENT_DIR: &str = "./config/default.toml";
    \ No newline at end of file diff --git a/mcaptcha/settings/constant.ETC.html b/mcaptcha/settings/constant.ETC.html new file mode 100644 index 00000000..e95d13dd --- /dev/null +++ b/mcaptcha/settings/constant.ETC.html @@ -0,0 +1 @@ +ETC in mcaptcha::settings - Rust

    Constant mcaptcha::settings::ETC

    source ·
    const ETC: &str = "/etc/mcaptcha/config.toml";
    \ No newline at end of file diff --git a/mcaptcha/settings/constant.FIELDS.html b/mcaptcha/settings/constant.FIELDS.html new file mode 100644 index 00000000..2a330ba5 --- /dev/null +++ b/mcaptcha/settings/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::settings - Rust

    Constant mcaptcha::settings::FIELDS

    source ·
    const FIELDS: &'static [&'static str];
    \ No newline at end of file diff --git a/mcaptcha/settings/constant.VARIANTS.html b/mcaptcha/settings/constant.VARIANTS.html new file mode 100644 index 00000000..0760b9bc --- /dev/null +++ b/mcaptcha/settings/constant.VARIANTS.html @@ -0,0 +1 @@ +VARIANTS in mcaptcha::settings - Rust

    Constant mcaptcha::settings::VARIANTS

    source ·
    const VARIANTS: &'static [&'static str];
    \ No newline at end of file diff --git a/mcaptcha/settings/enum.DBType.html b/mcaptcha/settings/enum.DBType.html index 98c961cc..c99f66be 100644 --- a/mcaptcha/settings/enum.DBType.html +++ b/mcaptcha/settings/enum.DBType.html @@ -1,14 +1,27 @@ -DBType in mcaptcha::settings - Rust
    pub enum DBType {
    +DBType in mcaptcha::settings - Rust
    pub enum DBType {
         Postgres,
         Maria,
    -}

    Variants§

    §

    Postgres

    §

    Maria

    Implementations§

    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
    Deserialize this value from the given Serde deserializer. Read more
    Formats the value using the given formatter. Read more
    This method tests for self and other values to be equal, and is used -by ==.
    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    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).

    +}

    Variants§

    §

    Postgres

    §

    Maria

    Implementations§

    source§

    impl DBType

    source

    fn from_url(url: &Url) -> Result<Self, ConfigError>

    Trait Implementations§

    source§

    impl Clone for DBType

    source§

    fn clone(&self) -> DBType

    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 DBType

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DBType

    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 Display for DBType

    source§

    fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl PartialEq<DBType> for DBType

    source§

    fn eq(&self, other: &DBType) -> 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 DBType

    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 DBType

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    Converts the given value to a String. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for Twhere + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/enum.__Field.html b/mcaptcha/settings/enum.__Field.html new file mode 100644 index 00000000..dfd02f14 --- /dev/null +++ b/mcaptcha/settings/enum.__Field.html @@ -0,0 +1,27 @@ +__Field in mcaptcha::settings - Rust
    enum __Field {
    +    __field0,
    +    __field1,
    +    __field2,
    +    __field3,
    +    __field4,
    +    __field5,
    +    __ignore,
    +}

    Variants§

    §

    __field0

    §

    __field1

    §

    __field2

    §

    __field3

    §

    __field4

    §

    __field5

    §

    __ignore

    Trait Implementations§

    source§

    impl<'de> Deserialize<'de> for __Field

    source§

    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§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    +

    That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/fn.check_url.html b/mcaptcha/settings/fn.check_url.html index e2f4a318..fdab2d2c 100644 --- a/mcaptcha/settings/fn.check_url.html +++ b/mcaptcha/settings/fn.check_url.html @@ -1 +1 @@ -check_url in mcaptcha::settings - Rust

    Function mcaptcha::settings::check_url

    source ·
    fn check_url(s: &Config)
    \ No newline at end of file +check_url in mcaptcha::settings - Rust

    Function mcaptcha::settings::check_url

    source ·
    fn check_url(s: &Config)
    \ No newline at end of file diff --git a/mcaptcha/settings/fn.set_database_url.html b/mcaptcha/settings/fn.set_database_url.html index 4c303495..7d2a0ae0 100644 --- a/mcaptcha/settings/fn.set_database_url.html +++ b/mcaptcha/settings/fn.set_database_url.html @@ -1 +1 @@ -set_database_url in mcaptcha::settings - Rust
    fn set_database_url(s: &mut Config)
    \ No newline at end of file +set_database_url in mcaptcha::settings - Rust
    fn set_database_url(s: &mut Config)
    \ No newline at end of file diff --git a/mcaptcha/settings/index.html b/mcaptcha/settings/index.html index 5c7e9a1a..e7a97ea8 100644 --- a/mcaptcha/settings/index.html +++ b/mcaptcha/settings/index.html @@ -1 +1 @@ -mcaptcha::settings - Rust
    \ No newline at end of file +mcaptcha::settings - Rust
    \ No newline at end of file diff --git a/mcaptcha/settings/sidebar-items.js b/mcaptcha/settings/sidebar-items.js index 27fe452c..d5e4f5aa 100644 --- a/mcaptcha/settings/sidebar-items.js +++ b/mcaptcha/settings/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":[["DBType",""]],"fn":[["check_url",""],["set_database_url",""]],"struct":[["Captcha",""],["Database",""],["DefaultDifficultyStrategy",""],["Redis",""],["Server",""],["Settings",""],["Smtp",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["CURRENT_DIR","ETC","FIELDS","VARIANTS"],"enum":["DBType","__Field"],"fn":["check_url","set_database_url"],"struct":["Captcha","Database","DefaultDifficultyStrategy","Redis","Server","Settings","Smtp","__FieldVisitor","__Visitor"]}; \ No newline at end of file diff --git a/mcaptcha/settings/struct.Captcha.html b/mcaptcha/settings/struct.Captcha.html index 0604dcff..0e0c8ce9 100644 --- a/mcaptcha/settings/struct.Captcha.html +++ b/mcaptcha/settings/struct.Captcha.html @@ -1,16 +1,27 @@ -Captcha in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Captcha

    source ·
    pub struct Captcha {
    -    pub salt: String,
    -    pub gc: u64,
    -    pub runners: Option<usize>,
    -    pub queue_length: usize,
    -    pub enable_stats: bool,
    +Captcha in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Captcha

    source ·
    pub struct Captcha {
    +    pub salt: String,
    +    pub gc: u64,
    +    pub runners: Option<usize>,
    +    pub queue_length: usize,
    +    pub enable_stats: bool,
         pub default_difficulty_strategy: DefaultDifficultyStrategy,
    -}

    Fields§

    §salt: String§gc: u64§runners: Option<usize>§queue_length: usize§enable_stats: bool§default_difficulty_strategy: DefaultDifficultyStrategy

    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
    Deserialize this value from the given Serde deserializer. 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).

    +}

    Fields§

    §salt: String§gc: u64§runners: Option<usize>§queue_length: usize§enable_stats: bool§default_difficulty_strategy: DefaultDifficultyStrategy

    Trait Implementations§

    source§

    impl Clone for Captcha

    source§

    fn clone(&self) -> Captcha

    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 Captcha

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Captcha

    source§

    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§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/struct.Database.html b/mcaptcha/settings/struct.Database.html index 5c79861c..0bf5f242 100644 --- a/mcaptcha/settings/struct.Database.html +++ b/mcaptcha/settings/struct.Database.html @@ -1,13 +1,24 @@ -Database in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Database

    source ·
    pub struct Database {
    -    pub url: String,
    -    pub pool: u32,
    +Database in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Database

    source ·
    pub struct Database {
    +    pub url: String,
    +    pub pool: u32,
         pub database_type: DBType,
    -}

    Fields§

    §url: String§pool: u32§database_type: DBType

    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
    Deserialize this value from the given Serde deserializer. 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).

    +}

    Fields§

    §url: String§pool: u32§database_type: DBType

    Trait Implementations§

    source§

    impl Clone for Database

    source§

    fn clone(&self) -> Database

    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 Database

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Database

    source§

    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§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/struct.DefaultDifficultyStrategy.html b/mcaptcha/settings/struct.DefaultDifficultyStrategy.html index dc9290ba..e9e26088 100644 --- a/mcaptcha/settings/struct.DefaultDifficultyStrategy.html +++ b/mcaptcha/settings/struct.DefaultDifficultyStrategy.html @@ -1,14 +1,25 @@ -DefaultDifficultyStrategy in mcaptcha::settings - Rust
    pub struct DefaultDifficultyStrategy {
    -    pub avg_traffic_difficulty: u32,
    -    pub broke_my_site_traffic_difficulty: u32,
    -    pub peak_sustainable_traffic_difficulty: u32,
    -    pub duration: u32,
    -}

    Fields§

    §avg_traffic_difficulty: u32§broke_my_site_traffic_difficulty: u32§peak_sustainable_traffic_difficulty: u32§duration: u32

    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
    Deserialize this value from the given Serde deserializer. 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).

    +DefaultDifficultyStrategy in mcaptcha::settings - Rust
    pub struct DefaultDifficultyStrategy {
    +    pub avg_traffic_difficulty: u32,
    +    pub broke_my_site_traffic_difficulty: u32,
    +    pub peak_sustainable_traffic_difficulty: u32,
    +    pub duration: u32,
    +}

    Fields§

    §avg_traffic_difficulty: u32§broke_my_site_traffic_difficulty: u32§peak_sustainable_traffic_difficulty: u32§duration: u32

    Trait Implementations§

    source§

    impl Clone for DefaultDifficultyStrategy

    source§

    fn clone(&self) -> DefaultDifficultyStrategy

    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 DefaultDifficultyStrategy

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DefaultDifficultyStrategy

    source§

    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§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/struct.Redis.html b/mcaptcha/settings/struct.Redis.html index 5713fe12..06e121c6 100644 --- a/mcaptcha/settings/struct.Redis.html +++ b/mcaptcha/settings/struct.Redis.html @@ -1,12 +1,23 @@ -Redis in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Redis

    source ·
    pub struct Redis {
    -    pub url: String,
    -    pub pool: u32,
    -}

    Fields§

    §url: String§pool: u32

    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
    Deserialize this value from the given Serde deserializer. 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).

    +Redis in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Redis

    source ·
    pub struct Redis {
    +    pub url: String,
    +    pub pool: u32,
    +}

    Fields§

    §url: String§pool: u32

    Trait Implementations§

    source§

    impl Clone for Redis

    source§

    fn clone(&self) -> Redis

    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 Redis

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Redis

    source§

    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 Redis

    §

    impl Send for Redis

    §

    impl Sync for Redis

    §

    impl Unpin for Redis

    §

    impl UnwindSafe for Redis

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/struct.Server.html b/mcaptcha/settings/struct.Server.html index f9849e2d..39000b62 100644 --- a/mcaptcha/settings/struct.Server.html +++ b/mcaptcha/settings/struct.Server.html @@ -1,16 +1,27 @@ -Server in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Server

    source ·
    pub struct Server {
    -    pub port: u32,
    -    pub domain: String,
    -    pub cookie_secret: String,
    -    pub ip: String,
    -    pub url_prefix: Option<String>,
    -    pub proxy_has_tls: bool,
    -}

    Fields§

    §port: u32§domain: String§cookie_secret: String§ip: String§url_prefix: Option<String>§proxy_has_tls: bool

    Implementations§

    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
    Deserialize this value from the given Serde deserializer. 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).

    +Server in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Server

    source ·
    pub struct Server {
    +    pub port: u32,
    +    pub domain: String,
    +    pub cookie_secret: String,
    +    pub ip: String,
    +    pub url_prefix: Option<String>,
    +    pub proxy_has_tls: bool,
    +}

    Fields§

    §port: u32§domain: String§cookie_secret: String§ip: String§url_prefix: Option<String>§proxy_has_tls: bool

    Implementations§

    source§

    impl Server

    source

    pub fn get_ip(&self) -> String

    Trait Implementations§

    source§

    impl Clone for Server

    source§

    fn clone(&self) -> Server

    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 Server

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Server

    source§

    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§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/struct.Settings.html b/mcaptcha/settings/struct.Settings.html index c0e48c50..3d2008e3 100644 --- a/mcaptcha/settings/struct.Settings.html +++ b/mcaptcha/settings/struct.Settings.html @@ -1,20 +1,31 @@ -Settings in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Settings

    source ·
    pub struct Settings {
    -    pub debug: bool,
    -    pub commercial: bool,
    +Settings in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Settings

    source ·
    pub struct Settings {
    +    pub debug: bool,
    +    pub commercial: bool,
         pub database: Database,
    -    pub redis: Option<Redis>,
    +    pub redis: Option<Redis>,
         pub server: Server,
         pub captcha: Captcha,
    -    pub source_code: String,
    -    pub smtp: Option<Smtp>,
    -    pub allow_registration: bool,
    -    pub allow_demo: bool,
    -}

    Fields§

    §debug: bool§commercial: bool§database: Database§redis: Option<Redis>§server: Server§captcha: Captcha§source_code: String§smtp: Option<Smtp>§allow_registration: bool§allow_demo: bool

    Implementations§

    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
    Deserialize this value from the given Serde deserializer. 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).

    + pub source_code: String, + pub smtp: Option<Smtp>, + pub allow_registration: bool, + pub allow_demo: bool, +}

    Fields§

    §debug: bool§commercial: bool§database: Database§redis: Option<Redis>§server: Server§captcha: Captcha§source_code: String§smtp: Option<Smtp>§allow_registration: bool§allow_demo: bool

    Implementations§

    source§

    impl Settings

    source

    pub fn new() -> Result<Self, ConfigError>

    Trait Implementations§

    source§

    impl Clone for Settings

    source§

    fn clone(&self) -> Settings

    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 Settings

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Settings

    source§

    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§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/struct.Smtp.html b/mcaptcha/settings/struct.Smtp.html index 3f1823a8..fd26a295 100644 --- a/mcaptcha/settings/struct.Smtp.html +++ b/mcaptcha/settings/struct.Smtp.html @@ -1,16 +1,27 @@ -Smtp in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Smtp

    source ·
    pub struct Smtp {
    -    pub from: String,
    -    pub reply: String,
    -    pub url: String,
    -    pub username: String,
    -    pub password: String,
    -    pub port: u16,
    -}

    Fields§

    §from: String§reply: String§url: String§username: String§password: String§port: u16

    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
    Deserialize this value from the given Serde deserializer. 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).

    +Smtp in mcaptcha::settings - Rust

    Struct mcaptcha::settings::Smtp

    source ·
    pub struct Smtp {
    +    pub from: String,
    +    pub reply: String,
    +    pub url: String,
    +    pub username: String,
    +    pub password: String,
    +    pub port: u16,
    +}

    Fields§

    §from: String§reply: String§url: String§username: String§password: String§port: u16

    Trait Implementations§

    source§

    impl Clone for Smtp

    source§

    fn clone(&self) -> Smtp

    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 Smtp

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Smtp

    source§

    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 Smtp

    §

    impl Send for Smtp

    §

    impl Sync for Smtp

    §

    impl Unpin for Smtp

    §

    impl UnwindSafe for Smtp

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/settings/struct.__FieldVisitor.html b/mcaptcha/settings/struct.__FieldVisitor.html new file mode 100644 index 00000000..0c774b47 --- /dev/null +++ b/mcaptcha/settings/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::settings - Rust
    struct __FieldVisitor;

    Trait Implementations§

    source§

    impl<'de> Visitor<'de> for __FieldVisitor

    §

    type Value = __Field

    The value produced by this visitor.
    source§

    fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

    Format a message stating what data this Visitor expects to receive. Read more
    source§

    fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

    The input contains a u64. Read more
    source§

    fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

    The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
    source§

    fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

    The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
    source§

    fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

    The input contains a boolean. Read more
    source§

    fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

    The input contains an i8. Read more
    source§

    fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

    The input contains an i16. Read more
    source§

    fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

    The input contains an i32. Read more
    source§

    fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

    The input contains an i64. Read more
    source§

    fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

    The input contains a i128. Read more
    source§

    fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

    The input contains a u8. Read more
    source§

    fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

    The input contains a u16. Read more
    source§

    fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

    The input contains a u32. Read more
    source§

    fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

    The input contains a u128. Read more
    source§

    fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

    The input contains an f32. Read more
    source§

    fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

    The input contains an f64. Read more
    source§

    fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

    The input contains a char. Read more
    source§

    fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

    The input contains a string that lives at least as long as the +Deserializer. Read more
    source§

    fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

    The input contains a string and ownership of the string is being given +to the Visitor. Read more
    source§

    fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array that lives at least as long as the +Deserializer. Read more
    source§

    fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
    source§

    fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

    The input contains an optional that is absent. Read more
    source§

    fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

    The input contains an optional that is present. Read more
    source§

    fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

    The input contains a unit (). Read more
    source§

    fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

    The input contains a newtype struct. Read more
    source§

    fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

    The input contains a sequence of elements. Read more
    source§

    fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

    The input contains a key-value map. Read more
    source§

    fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

    The input contains an enum. Read more

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<'de, T> Expected for Twhere + T: Visitor<'de>,

    source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

    Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    +

    That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/settings/struct.__Visitor.html b/mcaptcha/settings/struct.__Visitor.html new file mode 100644 index 00000000..1f44fe75 --- /dev/null +++ b/mcaptcha/settings/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::settings - Rust
    struct __Visitor<'de> {
    +    marker: PhantomData<Server>,
    +    lifetime: PhantomData<&'de ()>,
    +}

    Fields§

    §marker: PhantomData<Server>§lifetime: PhantomData<&'de ()>

    Trait Implementations§

    source§

    impl<'de> Visitor<'de> for __Visitor<'de>

    §

    type Value = Server

    The value produced by this visitor.
    source§

    fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

    Format a message stating what data this Visitor expects to receive. Read more
    source§

    fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

    The input contains a sequence of elements. Read more
    source§

    fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

    The input contains a key-value map. Read more
    source§

    fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

    The input contains a boolean. Read more
    source§

    fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

    The input contains an i8. Read more
    source§

    fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

    The input contains an i16. Read more
    source§

    fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

    The input contains an i32. Read more
    source§

    fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

    The input contains an i64. Read more
    source§

    fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

    The input contains a i128. Read more
    source§

    fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

    The input contains a u8. Read more
    source§

    fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

    The input contains a u16. Read more
    source§

    fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

    The input contains a u32. Read more
    source§

    fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

    The input contains a u64. Read more
    source§

    fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

    The input contains a u128. Read more
    source§

    fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

    The input contains an f32. Read more
    source§

    fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

    The input contains an f64. Read more
    source§

    fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

    The input contains a char. Read more
    source§

    fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

    The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
    source§

    fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

    The input contains a string that lives at least as long as the +Deserializer. Read more
    source§

    fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

    The input contains a string and ownership of the string is being given +to the Visitor. Read more
    source§

    fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
    source§

    fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array that lives at least as long as the +Deserializer. Read more
    source§

    fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
    source§

    fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

    The input contains an optional that is absent. Read more
    source§

    fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

    The input contains an optional that is present. Read more
    source§

    fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

    The input contains a unit (). Read more
    source§

    fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

    The input contains a newtype struct. Read more
    source§

    fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

    The input contains an enum. Read more

    Auto Trait Implementations§

    §

    impl<'de> RefUnwindSafe for __Visitor<'de>

    §

    impl<'de> Send for __Visitor<'de>

    §

    impl<'de> Sync for __Visitor<'de>

    §

    impl<'de> Unpin for __Visitor<'de>

    §

    impl<'de> UnwindSafe for __Visitor<'de>

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<'de, T> Expected for Twhere + T: Visitor<'de>,

    source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

    Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    +

    That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/sidebar-items.js b/mcaptcha/sidebar-items.js index f763886c..88369099 100644 --- a/mcaptcha/sidebar-items.js +++ b/mcaptcha/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["CACHE_AGE",""],["COMPILED_DATE",""],["DOCS",""],["GIT_COMMIT_HASH",""],["PAGES",""],["PKG_DESCRIPTION",""],["PKG_HOMEPAGE",""],["PKG_NAME",""],["V1_API_ROUTES",""],["VERSION",""],["WIDGET_ROUTES",""]],"fn":[["get_identity_service",""],["get_json_err",""],["main",""]],"mod":[["api",""],["data","App data: redis cache, database connections, etc."],["date",""],["db",""],["demo",""],["docs",""],["email",""],["errors",""],["pages",""],["routes",""],["settings",""],["static_assets",""],["stats",""],["widget","User facing CAPTCHA widget"]],"struct":[["BAR_CHART",""],["CREDIT_CARD",""],["CSS",""],["DOCS_ICON",""],["Data","App data"],["FILES",""],["GITHUB",""],["HELP_CIRCLE",""],["HOME",""],["JS",""],["KEY",""],["MCAPTCHA_TRANS_ICON",""],["MESSAGE",""],["MOBILE_CSS",""],["SETTINGS",""],["SETTINGS_ICON",""],["SOURCE_FILES_OF_INSTANCE","points to source files matching build commit"],["Settings",""],["VERIFICATIN_WIDGET_CSS",""],["VERIFICATIN_WIDGET_JS",""]],"type":[["AppData",""],["ArcData",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["CACHE_AGE","COMPILED_DATE","DOCS","GIT_COMMIT_HASH","PAGES","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","V1_API_ROUTES","VERSION","WIDGET_ROUTES"],"fn":["__stability","__static_ref_initialize","get_identity_service","get_json_err","main"],"mod":["api","data","date","db","demo","docs","email","errors","pages","routes","settings","static_assets","stats","widget"],"static":["LAZY"],"struct":["BAR_CHART","CREDIT_CARD","CSS","DOCS_ICON","Data","FILES","GITHUB","HELP_CIRCLE","HOME","JS","KEY","MCAPTCHA_TRANS_ICON","MESSAGE","MOBILE_CSS","SETTINGS","SETTINGS_ICON","SOURCE_FILES_OF_INSTANCE","Settings","VERIFICATIN_WIDGET_CSS","VERIFICATIN_WIDGET_JS"],"type":["AppData","ArcData"]}; \ No newline at end of file diff --git a/mcaptcha/static.LAZY.html b/mcaptcha/static.LAZY.html new file mode 100644 index 00000000..96308f19 --- /dev/null +++ b/mcaptcha/static.LAZY.html @@ -0,0 +1 @@ +LAZY in mcaptcha - Rust

    Static mcaptcha::LAZY

    source ·
    pub(crate) static LAZY: Lazy<Settings>
    \ No newline at end of file diff --git a/mcaptcha/static_assets/filemap/index.html b/mcaptcha/static_assets/filemap/index.html index 43ac9451..f4721db3 100644 --- a/mcaptcha/static_assets/filemap/index.html +++ b/mcaptcha/static_assets/filemap/index.html @@ -1 +1 @@ -mcaptcha::static_assets::filemap - Rust
    \ No newline at end of file +mcaptcha::static_assets::filemap - Rust
    \ No newline at end of file diff --git a/mcaptcha/static_assets/filemap/sidebar-items.js b/mcaptcha/static_assets/filemap/sidebar-items.js index 61fe2e49..3cfc8baf 100644 --- a/mcaptcha/static_assets/filemap/sidebar-items.js +++ b/mcaptcha/static_assets/filemap/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["FileMap",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["FileMap"]}; \ No newline at end of file diff --git a/mcaptcha/static_assets/filemap/struct.FileMap.html b/mcaptcha/static_assets/filemap/struct.FileMap.html index 51e2604a..3e9e1aaf 100644 --- a/mcaptcha/static_assets/filemap/struct.FileMap.html +++ b/mcaptcha/static_assets/filemap/struct.FileMap.html @@ -1,11 +1,19 @@ -FileMap in mcaptcha::static_assets::filemap - Rust
    pub struct FileMap {
    +FileMap in mcaptcha::static_assets::filemap - Rust
    pub struct FileMap {
         pub files: Files,
    -}

    Fields§

    §files: Files

    Implementations§

    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).

    +}

    Fields§

    §files: Files

    Implementations§

    source§

    impl FileMap

    source

    pub fn new() -> Self

    source

    pub fn get<'a>(&'a self, path: &'a str) -> Option<&'a str>

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/fn.services.html b/mcaptcha/static_assets/fn.services.html index 15788bd5..d9d0e2d7 100644 --- a/mcaptcha/static_assets/fn.services.html +++ b/mcaptcha/static_assets/fn.services.html @@ -1 +1 @@ -services in mcaptcha::static_assets - Rust
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file +services in mcaptcha::static_assets - Rust
    pub fn services(cfg: &mut ServiceConfig)
    \ No newline at end of file diff --git a/mcaptcha/static_assets/index.html b/mcaptcha/static_assets/index.html index 8ad2d7c9..2548c817 100644 --- a/mcaptcha/static_assets/index.html +++ b/mcaptcha/static_assets/index.html @@ -1 +1 @@ -mcaptcha::static_assets - Rust
    \ No newline at end of file +mcaptcha::static_assets - Rust
    \ No newline at end of file diff --git a/mcaptcha/static_assets/sidebar-items.js b/mcaptcha/static_assets/sidebar-items.js index 15f3ef2b..131426d0 100644 --- a/mcaptcha/static_assets/sidebar-items.js +++ b/mcaptcha/static_assets/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["services",""]],"mod":[["filemap",""],["static_files",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["services"],"mod":["filemap","static_files"]}; \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/fn.__stability.html b/mcaptcha/static_assets/static_files/assets/fn.__stability.html new file mode 100644 index 00000000..ebfde468 --- /dev/null +++ b/mcaptcha/static_assets/static_files/assets/fn.__stability.html @@ -0,0 +1 @@ +__stability in mcaptcha::static_assets::static_files::assets - Rust
    fn __stability() -> &'static (&'static str, &'static str)
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/fn.__static_ref_initialize.html b/mcaptcha/static_assets/static_files/assets/fn.__static_ref_initialize.html new file mode 100644 index 00000000..ff3f8926 --- /dev/null +++ b/mcaptcha/static_assets/static_files/assets/fn.__static_ref_initialize.html @@ -0,0 +1 @@ +__static_ref_initialize in mcaptcha::static_assets::static_files::assets - Rust
    fn __static_ref_initialize() -> (&'static str, &'static str)
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/index.html b/mcaptcha/static_assets/static_files/assets/index.html index f95eef9d..af2b0818 100644 --- a/mcaptcha/static_assets/static_files/assets/index.html +++ b/mcaptcha/static_assets/static_files/assets/index.html @@ -1 +1 @@ -mcaptcha::static_assets::static_files::assets - Rust
    \ No newline at end of file +mcaptcha::static_assets::static_files::assets - Rust
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/sidebar-items.js b/mcaptcha/static_assets/static_files/assets/sidebar-items.js index b9bd8bda..52529940 100644 --- a/mcaptcha/static_assets/static_files/assets/sidebar-items.js +++ b/mcaptcha/static_assets/static_files/assets/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["BAR_CHART",""],["CREDIT_CARD",""],["DOCS_ICON",""],["GITHUB",""],["HELP_CIRCLE",""],["HOME",""],["KEY",""],["MCAPTCHA_TRANS_ICON",""],["MESSAGE",""],["SETTINGS_ICON",""]],"type":[["Img",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["__stability","__static_ref_initialize"],"static":["LAZY"],"struct":["BAR_CHART","CREDIT_CARD","DOCS_ICON","GITHUB","HELP_CIRCLE","HOME","KEY","MCAPTCHA_TRANS_ICON","MESSAGE","SETTINGS_ICON"],"type":["Img"]}; \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/static.LAZY.html b/mcaptcha/static_assets/static_files/assets/static.LAZY.html new file mode 100644 index 00000000..210181e1 --- /dev/null +++ b/mcaptcha/static_assets/static_files/assets/static.LAZY.html @@ -0,0 +1 @@ +LAZY in mcaptcha::static_assets::static_files::assets - Rust
    static LAZY: Lazy<(&'static str, &'static str)>
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.BAR_CHART.html b/mcaptcha/static_assets/static_files/assets/struct.BAR_CHART.html index cabbb6ab..e9ea64da 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.BAR_CHART.html +++ b/mcaptcha/static_assets/static_files/assets/struct.BAR_CHART.html @@ -1,11 +1,19 @@ -BAR_CHART in mcaptcha::static_assets::static_files::assets - Rust
    pub struct BAR_CHART {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +BAR_CHART in mcaptcha::static_assets::static_files::assets - Rust
    pub struct BAR_CHART {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for BAR_CHART

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for BAR_CHART

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.CREDIT_CARD.html b/mcaptcha/static_assets/static_files/assets/struct.CREDIT_CARD.html index cf545d4c..9e5101c5 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.CREDIT_CARD.html +++ b/mcaptcha/static_assets/static_files/assets/struct.CREDIT_CARD.html @@ -1,11 +1,19 @@ -CREDIT_CARD in mcaptcha::static_assets::static_files::assets - Rust
    pub struct CREDIT_CARD {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +CREDIT_CARD in mcaptcha::static_assets::static_files::assets - Rust
    pub struct CREDIT_CARD {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for CREDIT_CARD

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for CREDIT_CARD

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.DOCS_ICON.html b/mcaptcha/static_assets/static_files/assets/struct.DOCS_ICON.html index 79ea5e72..7f3bde32 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.DOCS_ICON.html +++ b/mcaptcha/static_assets/static_files/assets/struct.DOCS_ICON.html @@ -1,11 +1,19 @@ -DOCS_ICON in mcaptcha::static_assets::static_files::assets - Rust
    pub struct DOCS_ICON {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +DOCS_ICON in mcaptcha::static_assets::static_files::assets - Rust
    pub struct DOCS_ICON {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for DOCS_ICON

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for DOCS_ICON

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.GITHUB.html b/mcaptcha/static_assets/static_files/assets/struct.GITHUB.html index 7a71f398..d256d908 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.GITHUB.html +++ b/mcaptcha/static_assets/static_files/assets/struct.GITHUB.html @@ -1,11 +1,19 @@ -GITHUB in mcaptcha::static_assets::static_files::assets - Rust
    pub struct GITHUB {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +GITHUB in mcaptcha::static_assets::static_files::assets - Rust
    pub struct GITHUB {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for GITHUB

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for GITHUB

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.HELP_CIRCLE.html b/mcaptcha/static_assets/static_files/assets/struct.HELP_CIRCLE.html index 0aa1ba44..a0dc3a36 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.HELP_CIRCLE.html +++ b/mcaptcha/static_assets/static_files/assets/struct.HELP_CIRCLE.html @@ -1,11 +1,19 @@ -HELP_CIRCLE in mcaptcha::static_assets::static_files::assets - Rust
    pub struct HELP_CIRCLE {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +HELP_CIRCLE in mcaptcha::static_assets::static_files::assets - Rust
    pub struct HELP_CIRCLE {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for HELP_CIRCLE

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for HELP_CIRCLE

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.HOME.html b/mcaptcha/static_assets/static_files/assets/struct.HOME.html index b6f75184..94c0ce07 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.HOME.html +++ b/mcaptcha/static_assets/static_files/assets/struct.HOME.html @@ -1,11 +1,19 @@ -HOME in mcaptcha::static_assets::static_files::assets - Rust
    pub struct HOME {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +HOME in mcaptcha::static_assets::static_files::assets - Rust
    pub struct HOME {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for HOME

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for HOME

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for HOME

    §

    impl Send for HOME

    §

    impl Sync for HOME

    §

    impl Unpin for HOME

    §

    impl UnwindSafe for HOME

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.KEY.html b/mcaptcha/static_assets/static_files/assets/struct.KEY.html index c7630134..0ab6d108 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.KEY.html +++ b/mcaptcha/static_assets/static_files/assets/struct.KEY.html @@ -1,11 +1,19 @@ -KEY in mcaptcha::static_assets::static_files::assets - Rust
    pub struct KEY {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +KEY in mcaptcha::static_assets::static_files::assets - Rust
    pub struct KEY {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for KEY

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for KEY

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for KEY

    §

    impl Send for KEY

    §

    impl Sync for KEY

    §

    impl Unpin for KEY

    §

    impl UnwindSafe for KEY

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.MCAPTCHA_TRANS_ICON.html b/mcaptcha/static_assets/static_files/assets/struct.MCAPTCHA_TRANS_ICON.html index 1cf37086..bed6598b 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.MCAPTCHA_TRANS_ICON.html +++ b/mcaptcha/static_assets/static_files/assets/struct.MCAPTCHA_TRANS_ICON.html @@ -1,11 +1,19 @@ -MCAPTCHA_TRANS_ICON in mcaptcha::static_assets::static_files::assets - Rust
    pub struct MCAPTCHA_TRANS_ICON {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +MCAPTCHA_TRANS_ICON in mcaptcha::static_assets::static_files::assets - Rust
    pub struct MCAPTCHA_TRANS_ICON {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for MCAPTCHA_TRANS_ICON

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for MCAPTCHA_TRANS_ICON

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.MESSAGE.html b/mcaptcha/static_assets/static_files/assets/struct.MESSAGE.html index 217177ad..aabaa7b6 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.MESSAGE.html +++ b/mcaptcha/static_assets/static_files/assets/struct.MESSAGE.html @@ -1,11 +1,19 @@ -MESSAGE in mcaptcha::static_assets::static_files::assets - Rust
    pub struct MESSAGE {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +MESSAGE in mcaptcha::static_assets::static_files::assets - Rust
    pub struct MESSAGE {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for MESSAGE

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for MESSAGE

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/struct.SETTINGS_ICON.html b/mcaptcha/static_assets/static_files/assets/struct.SETTINGS_ICON.html index c0ee6084..f68e31d2 100644 --- a/mcaptcha/static_assets/static_files/assets/struct.SETTINGS_ICON.html +++ b/mcaptcha/static_assets/static_files/assets/struct.SETTINGS_ICON.html @@ -1,11 +1,19 @@ -SETTINGS_ICON in mcaptcha::static_assets::static_files::assets - Rust
    pub struct SETTINGS_ICON {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +SETTINGS_ICON in mcaptcha::static_assets::static_files::assets - Rust
    pub struct SETTINGS_ICON {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for SETTINGS_ICON

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for SETTINGS_ICON

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/assets/type.Img.html b/mcaptcha/static_assets/static_files/assets/type.Img.html index 417272e9..0fb44682 100644 --- a/mcaptcha/static_assets/static_files/assets/type.Img.html +++ b/mcaptcha/static_assets/static_files/assets/type.Img.html @@ -1 +1 @@ -Img in mcaptcha::static_assets::static_files::assets - Rust

    Type Definition mcaptcha::static_assets::static_files::assets::Img

    source ·
    type Img = (&'static str, &'static str);
    \ No newline at end of file +Img in mcaptcha::static_assets::static_files::assets - Rust

    Type Definition mcaptcha::static_assets::static_files::assets::Img

    source ·
    type Img = (&'static str, &'static str);
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/constant.excludes.html b/mcaptcha/static_assets/static_files/constant.excludes.html new file mode 100644 index 00000000..3a91cc00 --- /dev/null +++ b/mcaptcha/static_assets/static_files/constant.excludes.html @@ -0,0 +1 @@ +excludes in mcaptcha::static_assets::static_files - Rust
    const excludes: &[&str];
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/constant.includes.html b/mcaptcha/static_assets/static_files/constant.includes.html new file mode 100644 index 00000000..6539bfd8 --- /dev/null +++ b/mcaptcha/static_assets/static_files/constant.includes.html @@ -0,0 +1 @@ +includes in mcaptcha::static_assets::static_files - Rust
    const includes: &[&str];
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/fn.favicons.html b/mcaptcha/static_assets/static_files/fn.favicons.html new file mode 100644 index 00000000..3f7beac6 --- /dev/null +++ b/mcaptcha/static_assets/static_files/fn.favicons.html @@ -0,0 +1 @@ +favicons in mcaptcha::static_assets::static_files - Rust
    pub async fn favicons(path: Path<String>) -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/fn.handle_assets.html b/mcaptcha/static_assets/static_files/fn.handle_assets.html index 5141381e..f174142c 100644 --- a/mcaptcha/static_assets/static_files/fn.handle_assets.html +++ b/mcaptcha/static_assets/static_files/fn.handle_assets.html @@ -1 +1 @@ -handle_assets in mcaptcha::static_assets::static_files - Rust
    fn handle_assets(path: &str) -> HttpResponse
    \ No newline at end of file +handle_assets in mcaptcha::static_assets::static_files - Rust
    fn handle_assets(path: &str) -> HttpResponse
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/fn.handle_favicons.html b/mcaptcha/static_assets/static_files/fn.handle_favicons.html index bbba8f1e..c464e607 100644 --- a/mcaptcha/static_assets/static_files/fn.handle_favicons.html +++ b/mcaptcha/static_assets/static_files/fn.handle_favicons.html @@ -1 +1 @@ -handle_favicons in mcaptcha::static_assets::static_files - Rust
    fn handle_favicons(path: &str) -> HttpResponse
    \ No newline at end of file +handle_favicons in mcaptcha::static_assets::static_files - Rust
    fn handle_favicons(path: &str) -> HttpResponse
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/fn.static_files.html b/mcaptcha/static_assets/static_files/fn.static_files.html new file mode 100644 index 00000000..9a5f085d --- /dev/null +++ b/mcaptcha/static_assets/static_files/fn.static_files.html @@ -0,0 +1 @@ +static_files in mcaptcha::static_assets::static_files - Rust
    pub async fn static_files(path: Path<String>) -> impl Responder
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/index.html b/mcaptcha/static_assets/static_files/index.html index cc1a26db..4eb1d1bf 100644 --- a/mcaptcha/static_assets/static_files/index.html +++ b/mcaptcha/static_assets/static_files/index.html @@ -1 +1 @@ -mcaptcha::static_assets::static_files - Rust
    \ No newline at end of file +mcaptcha::static_assets::static_files - Rust
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/sidebar-items.js b/mcaptcha/static_assets/static_files/sidebar-items.js index cc7c0522..8204b941 100644 --- a/mcaptcha/static_assets/static_files/sidebar-items.js +++ b/mcaptcha/static_assets/static_files/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":[["handle_assets",""],["handle_favicons",""]],"mod":[["assets",""]],"struct":[["Asset",""],["Favicons",""],["favicons",""],["static_files",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["excludes","includes"],"fn":["favicons","handle_assets","handle_favicons","static_files"],"mod":["assets"],"struct":["Asset","Favicons","favicons","static_files"]}; \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/struct.Asset.html b/mcaptcha/static_assets/static_files/struct.Asset.html index 06389eed..4cf1e3d2 100644 --- a/mcaptcha/static_assets/static_files/struct.Asset.html +++ b/mcaptcha/static_assets/static_files/struct.Asset.html @@ -1,11 +1,19 @@ -Asset in mcaptcha::static_assets::static_files - Rust
    struct Asset;

    Implementations§

    Get an embedded file and its metadata.

    -

    Iterates over the file paths in the folder.

    -

    Trait Implementations§

    Get an embedded file and its metadata. Read more
    Iterates over the file paths in the folder. 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).

    +Asset in mcaptcha::static_assets::static_files - Rust
    struct Asset;

    Implementations§

    source§

    impl Asset

    source

    pub fn get(file_path: &str) -> Option<EmbeddedFile>

    Get an embedded file and its metadata.

    +
    source

    pub fn iter() -> impl Iterator<Item = Cow<'static, str>>

    Iterates over the file paths in the folder.

    +

    Trait Implementations§

    source§

    impl RustEmbed for Asset

    source§

    fn get(file_path: &str) -> Option<EmbeddedFile>

    Get an embedded file and its metadata. Read more
    source§

    fn iter() -> Filenames

    Iterates over the file paths in the folder. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Asset

    §

    impl Send for Asset

    §

    impl Sync for Asset

    §

    impl Unpin for Asset

    §

    impl UnwindSafe for Asset

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/struct.Favicons.html b/mcaptcha/static_assets/static_files/struct.Favicons.html index cb6a95a3..70de8411 100644 --- a/mcaptcha/static_assets/static_files/struct.Favicons.html +++ b/mcaptcha/static_assets/static_files/struct.Favicons.html @@ -1,11 +1,19 @@ -Favicons in mcaptcha::static_assets::static_files - Rust
    struct Favicons;

    Implementations§

    Get an embedded file and its metadata.

    -

    Iterates over the file paths in the folder.

    -

    Trait Implementations§

    Get an embedded file and its metadata. Read more
    Iterates over the file paths in the folder. 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).

    +Favicons in mcaptcha::static_assets::static_files - Rust
    struct Favicons;

    Implementations§

    source§

    impl Favicons

    source

    pub fn get(file_path: &str) -> Option<EmbeddedFile>

    Get an embedded file and its metadata.

    +
    source

    pub fn iter() -> impl Iterator<Item = Cow<'static, str>>

    Iterates over the file paths in the folder.

    +

    Trait Implementations§

    source§

    impl RustEmbed for Favicons

    source§

    fn get(file_path: &str) -> Option<EmbeddedFile>

    Get an embedded file and its metadata. Read more
    source§

    fn iter() -> Filenames

    Iterates over the file paths in the folder. Read more

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/struct.favicons.html b/mcaptcha/static_assets/static_files/struct.favicons.html index 0fa8e1ec..645e7c61 100644 --- a/mcaptcha/static_assets/static_files/struct.favicons.html +++ b/mcaptcha/static_assets/static_files/struct.favicons.html @@ -1,9 +1,17 @@ -favicons in mcaptcha::static_assets::static_files - Rust
    pub struct favicons;

    Trait Implementations§

    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).

    +favicons in mcaptcha::static_assets::static_files - Rust
    pub struct favicons;

    Trait Implementations§

    source§

    impl HttpServiceFactory for favicons

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/static_assets/static_files/struct.static_files.html b/mcaptcha/static_assets/static_files/struct.static_files.html index e2028141..111efae7 100644 --- a/mcaptcha/static_assets/static_files/struct.static_files.html +++ b/mcaptcha/static_assets/static_files/struct.static_files.html @@ -1,9 +1,17 @@ -static_files in mcaptcha::static_assets::static_files - Rust
    pub struct static_files;

    Trait Implementations§

    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).

    +static_files in mcaptcha::static_assets::static_files - Rust
    pub struct static_files;

    Trait Implementations§

    source§

    impl HttpServiceFactory for static_files

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/stats/constant.FIELDS.html b/mcaptcha/stats/constant.FIELDS.html new file mode 100644 index 00000000..fd65bc59 --- /dev/null +++ b/mcaptcha/stats/constant.FIELDS.html @@ -0,0 +1 @@ +FIELDS in mcaptcha::stats - Rust

    Constant mcaptcha::stats::FIELDS

    source ·
    const FIELDS: &'static [&'static str];
    \ No newline at end of file diff --git a/mcaptcha/stats/enum.__Field.html b/mcaptcha/stats/enum.__Field.html new file mode 100644 index 00000000..219b66f7 --- /dev/null +++ b/mcaptcha/stats/enum.__Field.html @@ -0,0 +1,24 @@ +__Field in mcaptcha::stats - Rust

    Enum mcaptcha::stats::__Field

    source ·
    enum __Field {
    +    __field0,
    +    __field1,
    +    __field2,
    +    __ignore,
    +}

    Variants§

    §

    __field0

    §

    __field1

    §

    __field2

    §

    __ignore

    Trait Implementations§

    source§

    impl<'de> Deserialize<'de> for __Field

    source§

    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§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    +

    That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/stats/index.html b/mcaptcha/stats/index.html index 1f8ea83d..bdd4cf9c 100644 --- a/mcaptcha/stats/index.html +++ b/mcaptcha/stats/index.html @@ -1 +1 @@ -mcaptcha::stats - Rust
    \ No newline at end of file +mcaptcha::stats - Rust
    \ No newline at end of file diff --git a/mcaptcha/stats/sidebar-items.js b/mcaptcha/stats/sidebar-items.js index d724372d..5d44bd68 100644 --- a/mcaptcha/stats/sidebar-items.js +++ b/mcaptcha/stats/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["CaptchaStats",""],["Dummy",""],["Real",""]],"trait":[["CloneStats","Trait to clone MCDatabase"],["Stats",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["FIELDS"],"enum":["__Field"],"struct":["CaptchaStats","Dummy","Real","__FieldVisitor","__Visitor"],"trait":["CloneStats","Stats"]}; \ No newline at end of file diff --git a/mcaptcha/stats/struct.CaptchaStats.html b/mcaptcha/stats/struct.CaptchaStats.html index 20d1a093..536d94b1 100644 --- a/mcaptcha/stats/struct.CaptchaStats.html +++ b/mcaptcha/stats/struct.CaptchaStats.html @@ -1,15 +1,27 @@ -CaptchaStats in mcaptcha::stats - Rust
    pub struct CaptchaStats {
    -    pub config_fetches: Vec<i64>,
    -    pub solves: Vec<i64>,
    -    pub confirms: Vec<i64>,
    -}

    Fields§

    §config_fetches: Vec<i64>§solves: Vec<i64>§confirms: Vec<i64>

    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
    This method tests for self and other values to be equal, and is used -by ==.
    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    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).

    +CaptchaStats in mcaptcha::stats - Rust
    pub struct CaptchaStats {
    +    pub config_fetches: Vec<i64>,
    +    pub solves: Vec<i64>,
    +    pub confirms: Vec<i64>,
    +}

    Fields§

    §config_fetches: Vec<i64>§solves: Vec<i64>§confirms: Vec<i64>

    Trait Implementations§

    source§

    impl Clone for CaptchaStats

    source§

    fn clone(&self) -> CaptchaStats

    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 CaptchaStats

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for CaptchaStats

    source§

    fn default() -> CaptchaStats

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for CaptchaStats

    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 PartialEq<CaptchaStats> for CaptchaStats

    source§

    fn eq(&self, other: &CaptchaStats) -> 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 CaptchaStats

    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 CaptchaStats

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/stats/struct.Dummy.html b/mcaptcha/stats/struct.Dummy.html index ade68daa..52e50f54 100644 --- a/mcaptcha/stats/struct.Dummy.html +++ b/mcaptcha/stats/struct.Dummy.html @@ -1,15 +1,58 @@ -Dummy in mcaptcha::stats - Rust

    Struct mcaptcha::stats::Dummy

    source ·
    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 ==.
    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.

    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 -Instrumented wrapper. Read more

    Calls U::from(self).

    +Dummy in mcaptcha::stats - Rust

    Struct mcaptcha::stats::Dummy

    source ·
    pub struct Dummy;

    Trait Implementations§

    source§

    impl Clone for Dummy

    source§

    fn clone(&self) -> Dummy

    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 Dummy

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Dummy

    source§

    fn default() -> Dummy

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq<Dummy> for Dummy

    source§

    fn eq(&self, other: &Dummy) -> 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 Stats for Dummy

    source§

    fn record_fetch<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + __arg1: &'life1 Data, + __arg2: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig fetches

    +
    source§

    fn record_solve<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + __arg1: &'life1 Data, + __arg2: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig solves

    +
    source§

    fn record_confirm<'life0, 'life1, 'life2, 'async_trait>( + &'life0 self, + __arg1: &'life1 Data, + __arg2: &'life2 str +) -> Pin<Box<dyn Future<Output = DBResult<()>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig confirms

    +
    source§

    fn fetch<'life0, 'life1, 'life2, 'life3, 'async_trait>( + &'life0 self, + __arg1: &'life1 Data, + __arg2: &'life2 str, + __arg3: &'life3 str +) -> Pin<Box<dyn Future<Output = DBResult<CaptchaStats>> + Send + 'async_trait>>where + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

    fetch stats

    +
    source§

    impl StructuralPartialEq for Dummy

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Dummy

    §

    impl Send for Dummy

    §

    impl Sync for Dummy

    §

    impl Unpin for Dummy

    §

    impl UnwindSafe for Dummy

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/stats/struct.Real.html b/mcaptcha/stats/struct.Real.html index f1f7ce44..4cb12e49 100644 --- a/mcaptcha/stats/struct.Real.html +++ b/mcaptcha/stats/struct.Real.html @@ -1,15 +1,58 @@ -Real in mcaptcha::stats - Rust

    Struct mcaptcha::stats::Real

    source ·
    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 ==.
    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.

    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 -Instrumented wrapper. Read more

    Calls U::from(self).

    +Real in mcaptcha::stats - Rust

    Struct mcaptcha::stats::Real

    source ·
    pub struct Real;

    Trait Implementations§

    source§

    impl Clone for Real

    source§

    fn clone(&self) -> Real

    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 Real

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Real

    source§

    fn default() -> Real

    Returns the “default value” for a type. Read more
    source§

    impl PartialEq<Real> for Real

    source§

    fn eq(&self, other: &Real) -> 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 Stats for Real

    source§

    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 + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig fetches

    +
    source§

    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 + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig solves

    +
    source§

    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 + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig confirms

    +
    source§

    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 + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

    fetch stats

    +
    source§

    impl StructuralPartialEq for Real

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Real

    §

    impl Send for Real

    §

    impl Sync for Real

    §

    impl Unpin for Real

    §

    impl UnwindSafe for Real

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/stats/struct.__FieldVisitor.html b/mcaptcha/stats/struct.__FieldVisitor.html new file mode 100644 index 00000000..61e3c25a --- /dev/null +++ b/mcaptcha/stats/struct.__FieldVisitor.html @@ -0,0 +1,67 @@ +__FieldVisitor in mcaptcha::stats - Rust
    struct __FieldVisitor;

    Trait Implementations§

    source§

    impl<'de> Visitor<'de> for __FieldVisitor

    §

    type Value = __Field

    The value produced by this visitor.
    source§

    fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

    Format a message stating what data this Visitor expects to receive. Read more
    source§

    fn visit_u64<__E>(self, __value: u64) -> Result<Self::Value, __E>where + __E: Error,

    The input contains a u64. Read more
    source§

    fn visit_str<__E>(self, __value: &str) -> Result<Self::Value, __E>where + __E: Error,

    The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
    source§

    fn visit_bytes<__E>(self, __value: &[u8]) -> Result<Self::Value, __E>where + __E: Error,

    The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
    source§

    fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

    The input contains a boolean. Read more
    source§

    fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

    The input contains an i8. Read more
    source§

    fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

    The input contains an i16. Read more
    source§

    fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

    The input contains an i32. Read more
    source§

    fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

    The input contains an i64. Read more
    source§

    fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

    The input contains a i128. Read more
    source§

    fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

    The input contains a u8. Read more
    source§

    fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

    The input contains a u16. Read more
    source§

    fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

    The input contains a u32. Read more
    source§

    fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

    The input contains a u128. Read more
    source§

    fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

    The input contains an f32. Read more
    source§

    fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

    The input contains an f64. Read more
    source§

    fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

    The input contains a char. Read more
    source§

    fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

    The input contains a string that lives at least as long as the +Deserializer. Read more
    source§

    fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

    The input contains a string and ownership of the string is being given +to the Visitor. Read more
    source§

    fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array that lives at least as long as the +Deserializer. Read more
    source§

    fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
    source§

    fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

    The input contains an optional that is absent. Read more
    source§

    fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

    The input contains an optional that is present. Read more
    source§

    fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

    The input contains a unit (). Read more
    source§

    fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

    The input contains a newtype struct. Read more
    source§

    fn visit_seq<A>( + self, + seq: A +) -> Result<Self::Value, <A as SeqAccess<'de>>::Error>where + A: SeqAccess<'de>,

    The input contains a sequence of elements. Read more
    source§

    fn visit_map<A>( + self, + map: A +) -> Result<Self::Value, <A as MapAccess<'de>>::Error>where + A: MapAccess<'de>,

    The input contains a key-value map. Read more
    source§

    fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

    The input contains an enum. Read more

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<'de, T> Expected for Twhere + T: Visitor<'de>,

    source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

    Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    +

    That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/stats/struct.__Visitor.html b/mcaptcha/stats/struct.__Visitor.html new file mode 100644 index 00000000..802bdc35 --- /dev/null +++ b/mcaptcha/stats/struct.__Visitor.html @@ -0,0 +1,64 @@ +__Visitor in mcaptcha::stats - Rust

    Struct mcaptcha::stats::__Visitor

    source ·
    struct __Visitor<'de> {
    +    marker: PhantomData<CaptchaStats>,
    +    lifetime: PhantomData<&'de ()>,
    +}

    Fields§

    §marker: PhantomData<CaptchaStats>§lifetime: PhantomData<&'de ()>

    Trait Implementations§

    source§

    impl<'de> Visitor<'de> for __Visitor<'de>

    §

    type Value = CaptchaStats

    The value produced by this visitor.
    source§

    fn expecting(&self, __formatter: &mut Formatter<'_>) -> Result

    Format a message stating what data this Visitor expects to receive. Read more
    source§

    fn visit_seq<__A>(self, __seq: __A) -> Result<Self::Value, __A::Error>where + __A: SeqAccess<'de>,

    The input contains a sequence of elements. Read more
    source§

    fn visit_map<__A>(self, __map: __A) -> Result<Self::Value, __A::Error>where + __A: MapAccess<'de>,

    The input contains a key-value map. Read more
    source§

    fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>where + E: Error,

    The input contains a boolean. Read more
    source§

    fn visit_i8<E>(self, v: i8) -> Result<Self::Value, E>where + E: Error,

    The input contains an i8. Read more
    source§

    fn visit_i16<E>(self, v: i16) -> Result<Self::Value, E>where + E: Error,

    The input contains an i16. Read more
    source§

    fn visit_i32<E>(self, v: i32) -> Result<Self::Value, E>where + E: Error,

    The input contains an i32. Read more
    source§

    fn visit_i64<E>(self, v: i64) -> Result<Self::Value, E>where + E: Error,

    The input contains an i64. Read more
    source§

    fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where + E: Error,

    The input contains a i128. Read more
    source§

    fn visit_u8<E>(self, v: u8) -> Result<Self::Value, E>where + E: Error,

    The input contains a u8. Read more
    source§

    fn visit_u16<E>(self, v: u16) -> Result<Self::Value, E>where + E: Error,

    The input contains a u16. Read more
    source§

    fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>where + E: Error,

    The input contains a u32. Read more
    source§

    fn visit_u64<E>(self, v: u64) -> Result<Self::Value, E>where + E: Error,

    The input contains a u64. Read more
    source§

    fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where + E: Error,

    The input contains a u128. Read more
    source§

    fn visit_f32<E>(self, v: f32) -> Result<Self::Value, E>where + E: Error,

    The input contains an f32. Read more
    source§

    fn visit_f64<E>(self, v: f64) -> Result<Self::Value, E>where + E: Error,

    The input contains an f64. Read more
    source§

    fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where + E: Error,

    The input contains a char. Read more
    source§

    fn visit_str<E>(self, v: &str) -> Result<Self::Value, E>where + E: Error,

    The input contains a string. The lifetime of the string is ephemeral and +it may be destroyed after this method returns. Read more
    source§

    fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where + E: Error,

    The input contains a string that lives at least as long as the +Deserializer. Read more
    source§

    fn visit_string<E>(self, v: String) -> Result<Self::Value, E>where + E: Error,

    The input contains a string and ownership of the string is being given +to the Visitor. Read more
    source§

    fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array. The lifetime of the byte array is +ephemeral and it may be destroyed after this method returns. Read more
    source§

    fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array that lives at least as long as the +Deserializer. Read more
    source§

    fn visit_byte_buf<E>(self, v: Vec<u8, Global>) -> Result<Self::Value, E>where + E: Error,

    The input contains a byte array and ownership of the byte array is being +given to the Visitor. Read more
    source§

    fn visit_none<E>(self) -> Result<Self::Value, E>where + E: Error,

    The input contains an optional that is absent. Read more
    source§

    fn visit_some<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

    The input contains an optional that is present. Read more
    source§

    fn visit_unit<E>(self) -> Result<Self::Value, E>where + E: Error,

    The input contains a unit (). Read more
    source§

    fn visit_newtype_struct<D>( + self, + deserializer: D +) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where + D: Deserializer<'de>,

    The input contains a newtype struct. Read more
    source§

    fn visit_enum<A>( + self, + data: A +) -> Result<Self::Value, <A as EnumAccess<'de>>::Error>where + A: EnumAccess<'de>,

    The input contains an enum. Read more

    Auto Trait Implementations§

    §

    impl<'de> RefUnwindSafe for __Visitor<'de>

    §

    impl<'de> Send for __Visitor<'de>

    §

    impl<'de> Sync for __Visitor<'de>

    §

    impl<'de> Unpin for __Visitor<'de>

    §

    impl<'de> UnwindSafe for __Visitor<'de>

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<'de, T> Expected for Twhere + T: Visitor<'de>,

    source§

    fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

    Format an explanation of what data was being expected. Same signature as +the Display and Debug traits.
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    +

    That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/stats/trait.CloneStats.html b/mcaptcha/stats/trait.CloneStats.html index e1c03f3e..a7f2ae6d 100644 --- a/mcaptcha/stats/trait.CloneStats.html +++ b/mcaptcha/stats/trait.CloneStats.html @@ -1,5 +1,7 @@ -CloneStats in mcaptcha::stats - Rust
    pub trait CloneStats {
    -    fn clone_stats(&self) -> Box<dyn Stats>;
    -}
    Expand description

    Trait to clone MCDatabase

    -

    Required Methods§

    clone DB

    -

    Implementors§

    \ No newline at end of file +CloneStats in mcaptcha::stats - Rust
    pub trait CloneStats {
    +    // Required method
    +    fn clone_stats(&self) -> Box<dyn Stats>;
    +}
    Expand description

    Trait to clone MCDatabase

    +

    Required Methods§

    source

    fn clone_stats(&self) -> Box<dyn Stats>

    clone DB

    +

    Implementors§

    source§

    impl<T> CloneStats for Twhere + T: Stats + Clone + 'static,

    \ No newline at end of file diff --git a/mcaptcha/stats/trait.Stats.html b/mcaptcha/stats/trait.Stats.html index 5024c477..d8d0fd06 100644 --- a/mcaptcha/stats/trait.Stats.html +++ b/mcaptcha/stats/trait.Stats.html @@ -1,10 +1,79 @@ -Stats in mcaptcha::stats - Rust

    Trait mcaptcha::stats::Stats

    source ·
    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
            Self: 'async_trait,
            'life0: 'async_trait,
            'life1: 'async_trait,
            'life2: '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
            Self: 'async_trait,
            'life0: 'async_trait,
            'life1: 'async_trait,
            'life2: '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
            Self: 'async_trait,
            'life0: 'async_trait,
            'life1: 'async_trait,
            'life2: '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
            Self: 'async_trait,
            'life0: 'async_trait,
            'life1: 'async_trait,
            'life2: 'async_trait,
            'life3: 'async_trait
    ; -}

    Required Methods§

    record PoWConfig fetches

    -

    record PoWConfig solves

    -

    record PoWConfig confirms

    -

    fetch stats

    -

    Implementors§

    \ No newline at end of file +Stats in mcaptcha::stats - Rust

    Trait mcaptcha::stats::Stats

    source ·
    pub trait Stats: Send + Sync + CloneStats {
    +    // Required methods
    +    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 Self: 'async_trait,
    +             'life0: 'async_trait,
    +             'life1: 'async_trait,
    +             'life2: '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 Self: 'async_trait,
    +             'life0: 'async_trait,
    +             'life1: 'async_trait,
    +             'life2: '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 Self: 'async_trait,
    +             'life0: 'async_trait,
    +             'life1: 'async_trait,
    +             'life2: '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 Self: 'async_trait,
    +             'life0: 'async_trait,
    +             'life1: 'async_trait,
    +             'life2: 'async_trait,
    +             'life3: 'async_trait;
    +}

    Required Methods§

    source

    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 + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig fetches

    +
    source

    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 + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig solves

    +
    source

    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 + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait,

    record PoWConfig confirms

    +
    source

    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 + Self: 'async_trait, + 'life0: 'async_trait, + 'life1: 'async_trait, + 'life2: 'async_trait, + 'life3: 'async_trait,

    fetch stats

    +

    Implementors§

    \ No newline at end of file diff --git a/mcaptcha/struct.BAR_CHART.html b/mcaptcha/struct.BAR_CHART.html index 4ea511e8..82390893 100644 --- a/mcaptcha/struct.BAR_CHART.html +++ b/mcaptcha/struct.BAR_CHART.html @@ -1,11 +1,19 @@ -BAR_CHART in mcaptcha - Rust

    Struct mcaptcha::BAR_CHART

    source ·
    pub struct BAR_CHART {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +BAR_CHART in mcaptcha - Rust

    Struct mcaptcha::BAR_CHART

    source ·
    pub struct BAR_CHART {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for BAR_CHART

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for BAR_CHART

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.CREDIT_CARD.html b/mcaptcha/struct.CREDIT_CARD.html index 5eee1e7a..5475b46d 100644 --- a/mcaptcha/struct.CREDIT_CARD.html +++ b/mcaptcha/struct.CREDIT_CARD.html @@ -1,11 +1,19 @@ -CREDIT_CARD in mcaptcha - Rust

    Struct mcaptcha::CREDIT_CARD

    source ·
    pub struct CREDIT_CARD {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +CREDIT_CARD in mcaptcha - Rust

    Struct mcaptcha::CREDIT_CARD

    source ·
    pub struct CREDIT_CARD {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for CREDIT_CARD

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for CREDIT_CARD

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.CSS.html b/mcaptcha/struct.CSS.html index eb39240c..bd8c9ee1 100644 --- a/mcaptcha/struct.CSS.html +++ b/mcaptcha/struct.CSS.html @@ -1,7 +1,7 @@ -CSS in mcaptcha - Rust

    Struct mcaptcha::CSS

    source ·
    pub struct CSS {
    -    pub(crate) __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +CSS in mcaptcha - Rust

    Struct mcaptcha::CSS

    source ·
    pub struct CSS {
    +    pub(crate) __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -11,7 +11,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -20,7 +20,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -37,7 +37,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -52,8 +52,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -66,27 +66,28 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -98,7 +99,8 @@ If you need to mutate the contents of the string slice, use // out of bounds
     assert!(v.get(..42).is_none());
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -117,14 +119,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -147,12 +149,12 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -166,10 +168,10 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -192,7 +194,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -202,12 +204,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -228,7 +230,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -242,7 +244,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -256,12 +258,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -286,10 +288,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -314,7 +316,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -344,8 +346,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -355,10 +357,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -367,10 +370,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -379,10 +383,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -391,10 +397,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -418,10 +425,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -443,16 +452,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -514,13 +524,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -533,15 +544,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -560,20 +573,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -585,11 +599,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -597,7 +613,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -608,16 +624,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -637,17 +654,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -663,29 +682,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -694,15 +717,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -711,18 +736,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -734,17 +760,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -756,7 +784,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -765,7 +793,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -785,7 +813,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -805,7 +833,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -826,7 +854,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -847,9 +875,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -862,9 +892,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -879,29 +910,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -919,9 +955,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -936,9 +973,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -956,15 +995,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -982,21 +1022,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1015,7 +1055,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1032,7 +1072,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1049,8 +1089,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1064,8 +1105,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1079,11 +1121,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1106,11 +1148,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1128,7 +1170,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1137,36 +1179,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for CSS

    §

    type Target = &'static str

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &&'static str

    Dereferences the value.
    source§

    impl LazyStatic for CSS

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for CSS

    §

    impl Send for CSS

    §

    impl Sync for CSS

    §

    impl Unpin for CSS

    §

    impl UnwindSafe for CSS

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.DOCS_ICON.html b/mcaptcha/struct.DOCS_ICON.html index 47cd4dcb..2bed1c64 100644 --- a/mcaptcha/struct.DOCS_ICON.html +++ b/mcaptcha/struct.DOCS_ICON.html @@ -1,11 +1,19 @@ -DOCS_ICON in mcaptcha - Rust

    Struct mcaptcha::DOCS_ICON

    source ·
    pub struct DOCS_ICON {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +DOCS_ICON in mcaptcha - Rust

    Struct mcaptcha::DOCS_ICON

    source ·
    pub struct DOCS_ICON {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for DOCS_ICON

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for DOCS_ICON

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.Data.html b/mcaptcha/struct.Data.html index 4926c7cd..9a55c149 100644 --- a/mcaptcha/struct.Data.html +++ b/mcaptcha/struct.Data.html @@ -1,24 +1,32 @@ -Data in mcaptcha - Rust

    Struct mcaptcha::Data

    source ·
    pub struct Data {
    -    pub db: Box<dyn MCDatabase>,
    +Data in mcaptcha - Rust

    Struct mcaptcha::Data

    source ·
    pub struct Data {
    +    pub db: Box<dyn MCDatabase>,
         pub creds: Config,
         pub captcha: SystemGroup,
    -    pub mailer: Option<AsyncSmtpTransport<Tokio1Executor>>,
    +    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

    + pub stats: Box<dyn Stats>, +}
    Expand description

    App data

    +

    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

    +
    §mailer: Option<AsyncSmtpTransport<Tokio1Executor>>

    email client

    §settings: Settings

    app settings

    -
    §stats: Box<dyn Stats>

    stats recorder

    -

    Implementations§

    create new instance of app data

    -

    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).

    +
    §stats: Box<dyn Stats>

    stats recorder

    +

    Implementations§

    source§

    impl Data

    source

    pub fn get_creds() -> Config

    source

    pub async fn new(s: &Settings) -> Arc<Self>

    create new instance of app data

    +
    source

    fn get_mailer(s: &Settings) -> Option<AsyncSmtpTransport<Tokio1Executor>>

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Data

    §

    impl Send for Data

    §

    impl Sync for Data

    §

    impl Unpin for Data

    §

    impl !UnwindSafe for Data

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.FILES.html b/mcaptcha/struct.FILES.html index 2345388f..be031695 100644 --- a/mcaptcha/struct.FILES.html +++ b/mcaptcha/struct.FILES.html @@ -1,11 +1,19 @@ -FILES in mcaptcha - Rust

    Struct mcaptcha::FILES

    source ·
    pub struct FILES {
    -    pub(crate) __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = FileMap>§

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +FILES in mcaptcha - Rust

    Struct mcaptcha::FILES

    source ·
    pub struct FILES {
    +    pub(crate) __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = FileMap>§

    source

    pub fn get<'a>(&'a self, path: &'a str) -> Option<&'a str>

    Trait Implementations§

    source§

    impl Deref for FILES

    §

    type Target = FileMap

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &FileMap

    Dereferences the value.
    source§

    impl LazyStatic for FILES

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for FILES

    §

    impl Send for FILES

    §

    impl Sync for FILES

    §

    impl Unpin for FILES

    §

    impl UnwindSafe for FILES

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.GITHUB.html b/mcaptcha/struct.GITHUB.html index dce14514..5bffacf8 100644 --- a/mcaptcha/struct.GITHUB.html +++ b/mcaptcha/struct.GITHUB.html @@ -1,11 +1,19 @@ -GITHUB in mcaptcha - Rust

    Struct mcaptcha::GITHUB

    source ·
    pub struct GITHUB {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +GITHUB in mcaptcha - Rust

    Struct mcaptcha::GITHUB

    source ·
    pub struct GITHUB {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for GITHUB

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for GITHUB

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.HELP_CIRCLE.html b/mcaptcha/struct.HELP_CIRCLE.html index 5379921b..0a1f74cc 100644 --- a/mcaptcha/struct.HELP_CIRCLE.html +++ b/mcaptcha/struct.HELP_CIRCLE.html @@ -1,11 +1,19 @@ -HELP_CIRCLE in mcaptcha - Rust

    Struct mcaptcha::HELP_CIRCLE

    source ·
    pub struct HELP_CIRCLE {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +HELP_CIRCLE in mcaptcha - Rust

    Struct mcaptcha::HELP_CIRCLE

    source ·
    pub struct HELP_CIRCLE {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for HELP_CIRCLE

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for HELP_CIRCLE

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.HOME.html b/mcaptcha/struct.HOME.html index b673000a..11311e92 100644 --- a/mcaptcha/struct.HOME.html +++ b/mcaptcha/struct.HOME.html @@ -1,11 +1,19 @@ -HOME in mcaptcha - Rust

    Struct mcaptcha::HOME

    source ·
    pub struct HOME {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +HOME in mcaptcha - Rust

    Struct mcaptcha::HOME

    source ·
    pub struct HOME {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for HOME

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for HOME

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for HOME

    §

    impl Send for HOME

    §

    impl Sync for HOME

    §

    impl Unpin for HOME

    §

    impl UnwindSafe for HOME

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.JS.html b/mcaptcha/struct.JS.html index c646702d..672a2505 100644 --- a/mcaptcha/struct.JS.html +++ b/mcaptcha/struct.JS.html @@ -1,7 +1,7 @@ -JS in mcaptcha - Rust

    Struct mcaptcha::JS

    source ·
    pub struct JS {
    -    pub(crate) __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +JS in mcaptcha - Rust

    Struct mcaptcha::JS

    source ·
    pub struct JS {
    +    pub(crate) __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -11,7 +11,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -20,7 +20,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -37,7 +37,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -52,8 +52,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -66,27 +66,28 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -98,7 +99,8 @@ If you need to mutate the contents of the string slice, use // out of bounds
     assert!(v.get(..42).is_none());
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -117,14 +119,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -147,12 +149,12 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -166,10 +168,10 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -192,7 +194,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -202,12 +204,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -228,7 +230,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -242,7 +244,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -256,12 +258,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -286,10 +288,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -314,7 +316,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -344,8 +346,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -355,10 +357,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -367,10 +370,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -379,10 +383,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -391,10 +397,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -418,10 +425,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -443,16 +452,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -514,13 +524,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -533,15 +544,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -560,20 +573,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -585,11 +599,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -597,7 +613,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -608,16 +624,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -637,17 +654,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -663,29 +682,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -694,15 +717,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -711,18 +736,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -734,17 +760,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -756,7 +784,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -765,7 +793,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -785,7 +813,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -805,7 +833,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -826,7 +854,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -847,9 +875,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -862,9 +892,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -879,29 +910,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -919,9 +955,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -936,9 +973,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -956,15 +995,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -982,21 +1022,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1015,7 +1055,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1032,7 +1072,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1049,8 +1089,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1064,8 +1105,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1079,11 +1121,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1106,11 +1148,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1128,7 +1170,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1137,36 +1179,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for JS

    §

    type Target = &'static str

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &&'static str

    Dereferences the value.
    source§

    impl LazyStatic for JS

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for JS

    §

    impl Send for JS

    §

    impl Sync for JS

    §

    impl Unpin for JS

    §

    impl UnwindSafe for JS

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.KEY.html b/mcaptcha/struct.KEY.html index 3fb3b3ff..60c16a5e 100644 --- a/mcaptcha/struct.KEY.html +++ b/mcaptcha/struct.KEY.html @@ -1,11 +1,19 @@ -KEY in mcaptcha - Rust

    Struct mcaptcha::KEY

    source ·
    pub struct KEY {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +KEY in mcaptcha - Rust

    Struct mcaptcha::KEY

    source ·
    pub struct KEY {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for KEY

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for KEY

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for KEY

    §

    impl Send for KEY

    §

    impl Sync for KEY

    §

    impl Unpin for KEY

    §

    impl UnwindSafe for KEY

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.MCAPTCHA_TRANS_ICON.html b/mcaptcha/struct.MCAPTCHA_TRANS_ICON.html index 33169e6f..c4162e20 100644 --- a/mcaptcha/struct.MCAPTCHA_TRANS_ICON.html +++ b/mcaptcha/struct.MCAPTCHA_TRANS_ICON.html @@ -1,11 +1,19 @@ -MCAPTCHA_TRANS_ICON in mcaptcha - Rust
    pub struct MCAPTCHA_TRANS_ICON {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +MCAPTCHA_TRANS_ICON in mcaptcha - Rust
    pub struct MCAPTCHA_TRANS_ICON {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for MCAPTCHA_TRANS_ICON

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for MCAPTCHA_TRANS_ICON

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.MESSAGE.html b/mcaptcha/struct.MESSAGE.html index f31c24d4..51f164b9 100644 --- a/mcaptcha/struct.MESSAGE.html +++ b/mcaptcha/struct.MESSAGE.html @@ -1,11 +1,19 @@ -MESSAGE in mcaptcha - Rust

    Struct mcaptcha::MESSAGE

    source ·
    pub struct MESSAGE {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +MESSAGE in mcaptcha - Rust

    Struct mcaptcha::MESSAGE

    source ·
    pub struct MESSAGE {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for MESSAGE

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for MESSAGE

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.MOBILE_CSS.html b/mcaptcha/struct.MOBILE_CSS.html index 23534578..21667b1b 100644 --- a/mcaptcha/struct.MOBILE_CSS.html +++ b/mcaptcha/struct.MOBILE_CSS.html @@ -1,7 +1,7 @@ -MOBILE_CSS in mcaptcha - Rust

    Struct mcaptcha::MOBILE_CSS

    source ·
    pub struct MOBILE_CSS {
    -    pub(crate) __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +MOBILE_CSS in mcaptcha - Rust

    Struct mcaptcha::MOBILE_CSS

    source ·
    pub struct MOBILE_CSS {
    +    pub(crate) __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -11,7 +11,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -20,7 +20,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -37,7 +37,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -52,8 +52,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -66,27 +66,28 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -98,7 +99,8 @@ If you need to mutate the contents of the string slice, use // out of bounds
     assert!(v.get(..42).is_none());
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -117,14 +119,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -147,12 +149,12 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -166,10 +168,10 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -192,7 +194,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -202,12 +204,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -228,7 +230,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -242,7 +244,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -256,12 +258,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -286,10 +288,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -314,7 +316,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -344,8 +346,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -355,10 +357,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -367,10 +370,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -379,10 +383,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -391,10 +397,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -418,10 +425,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -443,16 +452,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -514,13 +524,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -533,15 +544,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -560,20 +573,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -585,11 +599,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -597,7 +613,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -608,16 +624,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -637,17 +654,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -663,29 +682,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -694,15 +717,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -711,18 +736,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -734,17 +760,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -756,7 +784,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -765,7 +793,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -785,7 +813,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -805,7 +833,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -826,7 +854,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -847,9 +875,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -862,9 +892,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -879,29 +910,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -919,9 +955,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -936,9 +973,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -956,15 +995,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -982,21 +1022,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1015,7 +1055,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1032,7 +1072,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1049,8 +1089,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1064,8 +1105,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1079,11 +1121,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1106,11 +1148,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1128,7 +1170,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1137,36 +1179,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for MOBILE_CSS

    §

    type Target = &'static str

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &&'static str

    Dereferences the value.
    source§

    impl LazyStatic for MOBILE_CSS

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for MOBILE_CSS

    §

    impl Send for MOBILE_CSS

    §

    impl Sync for MOBILE_CSS

    §

    impl Unpin for MOBILE_CSS

    §

    impl UnwindSafe for MOBILE_CSS

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.SETTINGS.html b/mcaptcha/struct.SETTINGS.html index b61e58e4..f97d96f8 100644 --- a/mcaptcha/struct.SETTINGS.html +++ b/mcaptcha/struct.SETTINGS.html @@ -1,11 +1,19 @@ -SETTINGS in mcaptcha - Rust

    Struct mcaptcha::SETTINGS

    source ·
    pub struct SETTINGS {
    -    pub(crate) __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +SETTINGS in mcaptcha - Rust

    Struct mcaptcha::SETTINGS

    source ·
    pub struct SETTINGS {
    +    pub(crate) __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for SETTINGS

    §

    type Target = Settings

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Settings

    Dereferences the value.
    source§

    impl LazyStatic for SETTINGS

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.SETTINGS_ICON.html b/mcaptcha/struct.SETTINGS_ICON.html index 549d1918..dbfb0819 100644 --- a/mcaptcha/struct.SETTINGS_ICON.html +++ b/mcaptcha/struct.SETTINGS_ICON.html @@ -1,11 +1,19 @@ -SETTINGS_ICON in mcaptcha - Rust

    Struct mcaptcha::SETTINGS_ICON

    source ·
    pub struct SETTINGS_ICON {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +SETTINGS_ICON in mcaptcha - Rust

    Struct mcaptcha::SETTINGS_ICON

    source ·
    pub struct SETTINGS_ICON {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Trait Implementations§

    source§

    impl Deref for SETTINGS_ICON

    §

    type Target = (&'static str, &'static str)

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &(&'static str, &'static str)

    Dereferences the value.
    source§

    impl LazyStatic for SETTINGS_ICON

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.SOURCE_FILES_OF_INSTANCE.html b/mcaptcha/struct.SOURCE_FILES_OF_INSTANCE.html index 6898cc52..4b37a033 100644 --- a/mcaptcha/struct.SOURCE_FILES_OF_INSTANCE.html +++ b/mcaptcha/struct.SOURCE_FILES_OF_INSTANCE.html @@ -1,29 +1,29 @@ -SOURCE_FILES_OF_INSTANCE in mcaptcha - Rust
    pub struct SOURCE_FILES_OF_INSTANCE {
    -    pub(crate) __private_field: (),
    -}
    Expand description

    points to source files matching build commit

    -

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    Extracts a string slice containing the entire String.

    +SOURCE_FILES_OF_INSTANCE in mcaptcha - Rust
    pub struct SOURCE_FILES_OF_INSTANCE {
    +    pub(crate) __private_field: (),
    +}
    Expand description

    points to source files matching build commit

    +

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    1.7.0 · source

    pub fn as_str(&self) -> &str

    Extracts a string slice containing the entire String.

    Examples

    Basic usage:

    let s = String::from("foo");
     
     assert_eq!("foo", s.as_str());
    -

    Returns this String’s capacity, in bytes.

    +
    1.0.0 · source

    pub fn capacity(&self) -> usize

    Returns this String’s capacity, in bytes.

    Examples

    Basic usage:

    let s = String::with_capacity(10);
     
     assert!(s.capacity() >= 10);
    -

    Returns a byte slice of this String’s contents.

    -

    The inverse of this method is from_utf8.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Returns a byte slice of this String’s contents.

    +

    The inverse of this method is from_utf8.

    Examples

    Basic usage:

    let s = String::from("hello");
     
     assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
    -

    Returns the length of this String, in bytes, not chars or +

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples
    @@ -35,7 +35,7 @@ length of the string.

    let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
    -

    Returns true if this String has a length of zero, and false otherwise.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if this String has a length of zero, and false otherwise.

    Examples

    Basic usage:

    @@ -44,8 +44,8 @@ length of the string.

    v.push('a'); assert!(!v.is_empty());
    -

    Methods from Deref<Target = str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -55,7 +55,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -64,7 +64,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -81,7 +81,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -96,8 +96,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -110,14 +110,14 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a mutable string slice to a mutable byte slice.

    +
    1.20.0 · source

    pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

    Converts a mutable string slice to a mutable byte slice.

    Safety

    The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

    @@ -143,26 +143,27 @@ before the borrow ends and the underlying str is used.

    } assert_eq!("🍔∈🌏", s);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Converts a mutable string slice to a raw pointer.

    +
    1.36.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut u8

    Converts a mutable string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -174,9 +175,10 @@ modified in a way that it remains valid UTF-8.

    // out of bounds assert!(v.get(..42).is_none());
    -

    Returns a mutable subslice of str.

    +
    1.20.0 · source

    pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a mutable subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let mut v = String::from("hello");
     // correct length
    @@ -195,7 +197,8 @@ modified in a way that it remains valid UTF-8.

    assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -214,7 +217,11 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -

    Returns a mutable, unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns a mutable, unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -233,14 +240,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -263,14 +270,14 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.5.0 · source

    pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

    +alternative see str and IndexMut.

    This new slice goes from begin to end, including begin but excluding end.

    To get an immutable string slice instead, see the -slice_unchecked method.

    +slice_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -279,12 +286,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -298,12 +305,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -318,10 +325,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -344,7 +351,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -354,12 +361,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -380,7 +387,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -394,7 +401,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -408,12 +415,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -438,10 +445,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -466,7 +473,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -496,8 +503,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -507,10 +514,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -519,10 +527,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -531,10 +540,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -543,10 +554,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -570,10 +582,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -595,16 +609,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -666,13 +681,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -685,15 +701,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -712,20 +730,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -737,11 +756,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -749,7 +770,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -760,16 +781,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -789,17 +811,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -815,29 +839,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -846,15 +874,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -863,18 +893,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -886,17 +917,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -908,7 +941,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -917,7 +950,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -937,7 +970,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -957,7 +990,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -978,7 +1011,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -999,9 +1032,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1014,9 +1049,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1031,29 +1067,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1071,9 +1112,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1088,9 +1130,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1108,15 +1152,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1134,21 +1179,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1159,7 +1204,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1170,7 +1215,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1189,7 +1234,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1206,7 +1251,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1223,8 +1268,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1238,8 +1284,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1253,11 +1300,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1280,11 +1327,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1302,7 +1349,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1311,36 +1358,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for SOURCE_FILES_OF_INSTANCE

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for SOURCE_FILES_OF_INSTANCE

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for SOURCE_FILES_OF_INSTANCE

    §

    impl Send for SOURCE_FILES_OF_INSTANCE

    §

    impl Sync for SOURCE_FILES_OF_INSTANCE

    §

    impl Unpin for SOURCE_FILES_OF_INSTANCE

    §

    impl UnwindSafe for SOURCE_FILES_OF_INSTANCE

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.Settings.html b/mcaptcha/struct.Settings.html index 5339a7ea..6477e860 100644 --- a/mcaptcha/struct.Settings.html +++ b/mcaptcha/struct.Settings.html @@ -1,20 +1,31 @@ -Settings in mcaptcha - Rust

    Struct mcaptcha::Settings

    source ·
    pub struct Settings {
    -    pub debug: bool,
    -    pub commercial: bool,
    +Settings in mcaptcha - Rust

    Struct mcaptcha::Settings

    source ·
    pub struct Settings {
    +    pub debug: bool,
    +    pub commercial: bool,
         pub database: Database,
    -    pub redis: Option<Redis>,
    +    pub redis: Option<Redis>,
         pub server: Server,
         pub captcha: Captcha,
    -    pub source_code: String,
    -    pub smtp: Option<Smtp>,
    -    pub allow_registration: bool,
    -    pub allow_demo: bool,
    -}

    Fields§

    §debug: bool§commercial: bool§database: Database§redis: Option<Redis>§server: Server§captcha: Captcha§source_code: String§smtp: Option<Smtp>§allow_registration: bool§allow_demo: bool

    Implementations§

    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
    Deserialize this value from the given Serde deserializer. 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).

    + pub source_code: String, + pub smtp: Option<Smtp>, + pub allow_registration: bool, + pub allow_demo: bool, +}

    Fields§

    §debug: bool§commercial: bool§database: Database§redis: Option<Redis>§server: Server§captcha: Captcha§source_code: String§smtp: Option<Smtp>§allow_registration: bool§allow_demo: bool

    Implementations§

    source§

    impl Settings

    source

    pub fn new() -> Result<Self, ConfigError>

    Trait Implementations§

    source§

    impl Clone for Settings

    source§

    fn clone(&self) -> Settings

    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 Settings

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Settings

    source§

    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§

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for Twhere + T: for<'de> Deserialize<'de>,

    \ No newline at end of file diff --git a/mcaptcha/struct.VERIFICATIN_WIDGET_CSS.html b/mcaptcha/struct.VERIFICATIN_WIDGET_CSS.html index 8a010410..7be024a7 100644 --- a/mcaptcha/struct.VERIFICATIN_WIDGET_CSS.html +++ b/mcaptcha/struct.VERIFICATIN_WIDGET_CSS.html @@ -1,7 +1,7 @@ -VERIFICATIN_WIDGET_CSS in mcaptcha - Rust
    pub struct VERIFICATIN_WIDGET_CSS {
    -    pub(crate) __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +VERIFICATIN_WIDGET_CSS in mcaptcha - Rust

    pub struct VERIFICATIN_WIDGET_CSS {
    +    pub(crate) __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -11,7 +11,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -20,7 +20,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -37,7 +37,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -52,8 +52,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -66,27 +66,28 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -98,7 +99,8 @@ If you need to mutate the contents of the string slice, use // out of bounds
     assert!(v.get(..42).is_none());
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -117,14 +119,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -147,12 +149,12 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -166,10 +168,10 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -192,7 +194,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -202,12 +204,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -228,7 +230,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -242,7 +244,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -256,12 +258,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -286,10 +288,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -314,7 +316,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -344,8 +346,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -355,10 +357,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -367,10 +370,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -379,10 +383,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -391,10 +397,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -418,10 +425,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -443,16 +452,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -514,13 +524,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -533,15 +544,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -560,20 +573,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -585,11 +599,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -597,7 +613,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -608,16 +624,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -637,17 +654,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -663,29 +682,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -694,15 +717,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -711,18 +736,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -734,17 +760,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -756,7 +784,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -765,7 +793,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -785,7 +813,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -805,7 +833,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -826,7 +854,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -847,9 +875,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -862,9 +892,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -879,29 +910,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -919,9 +955,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -936,9 +973,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -956,15 +995,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -982,21 +1022,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1015,7 +1055,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1032,7 +1072,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1049,8 +1089,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1064,8 +1105,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1079,11 +1121,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1106,11 +1148,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1128,7 +1170,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1137,36 +1179,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for VERIFICATIN_WIDGET_CSS

    §

    type Target = &'static str

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &&'static str

    Dereferences the value.
    source§

    impl LazyStatic for VERIFICATIN_WIDGET_CSS

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for VERIFICATIN_WIDGET_CSS

    §

    impl Send for VERIFICATIN_WIDGET_CSS

    §

    impl Sync for VERIFICATIN_WIDGET_CSS

    §

    impl Unpin for VERIFICATIN_WIDGET_CSS

    §

    impl UnwindSafe for VERIFICATIN_WIDGET_CSS

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/struct.VERIFICATIN_WIDGET_JS.html b/mcaptcha/struct.VERIFICATIN_WIDGET_JS.html index 3ce0c707..cda3a873 100644 --- a/mcaptcha/struct.VERIFICATIN_WIDGET_JS.html +++ b/mcaptcha/struct.VERIFICATIN_WIDGET_JS.html @@ -1,7 +1,7 @@ -VERIFICATIN_WIDGET_JS in mcaptcha - Rust
    pub struct VERIFICATIN_WIDGET_JS {
    -    pub(crate) __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +VERIFICATIN_WIDGET_JS in mcaptcha - Rust

    pub struct VERIFICATIN_WIDGET_JS {
    +    pub(crate) __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = &'static str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -11,7 +11,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -20,7 +20,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -37,7 +37,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -52,8 +52,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -66,27 +66,28 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -98,7 +99,8 @@ If you need to mutate the contents of the string slice, use // out of bounds
     assert!(v.get(..42).is_none());
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -117,14 +119,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -147,12 +149,12 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -166,10 +168,10 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -192,7 +194,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -202,12 +204,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -228,7 +230,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -242,7 +244,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -256,12 +258,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -286,10 +288,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -314,7 +316,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -344,8 +346,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -355,10 +357,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -367,10 +370,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -379,10 +383,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -391,10 +397,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -418,10 +425,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -443,16 +452,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -514,13 +524,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -533,15 +544,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -560,20 +573,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -585,11 +599,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -597,7 +613,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -608,16 +624,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -637,17 +654,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -663,29 +682,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -694,15 +717,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -711,18 +736,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -734,17 +760,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -756,7 +784,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -765,7 +793,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -785,7 +813,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -805,7 +833,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -826,7 +854,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -847,9 +875,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -862,9 +892,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -879,29 +910,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -919,9 +955,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -936,9 +973,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -956,15 +995,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -982,21 +1022,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1015,7 +1055,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1032,7 +1072,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1049,8 +1089,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1064,8 +1105,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1079,11 +1121,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1106,11 +1148,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1128,7 +1170,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1137,36 +1179,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for VERIFICATIN_WIDGET_JS

    §

    type Target = &'static str

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &&'static str

    Dereferences the value.
    source§

    impl LazyStatic for VERIFICATIN_WIDGET_JS

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for VERIFICATIN_WIDGET_JS

    §

    impl Send for VERIFICATIN_WIDGET_JS

    §

    impl Sync for VERIFICATIN_WIDGET_JS

    §

    impl Unpin for VERIFICATIN_WIDGET_JS

    §

    impl UnwindSafe for VERIFICATIN_WIDGET_JS

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/type.AppData.html b/mcaptcha/type.AppData.html index bae5fa26..9e1c087f 100644 --- a/mcaptcha/type.AppData.html +++ b/mcaptcha/type.AppData.html @@ -1 +1 @@ -AppData in mcaptcha - Rust

    Type Definition mcaptcha::AppData

    source ·
    pub type AppData = Data<ArcData>;
    \ No newline at end of file +AppData in mcaptcha - Rust

    Type Definition mcaptcha::AppData

    source ·
    pub type AppData = Data<ArcData>;
    \ No newline at end of file diff --git a/mcaptcha/type.ArcData.html b/mcaptcha/type.ArcData.html index 8eccc7d5..6cb03c64 100644 --- a/mcaptcha/type.ArcData.html +++ b/mcaptcha/type.ArcData.html @@ -1 +1 @@ -ArcData in mcaptcha - Rust

    Type Definition mcaptcha::ArcData

    source ·
    pub type ArcData = Arc<Data>;
    \ No newline at end of file +ArcData in mcaptcha - Rust

    Type Definition mcaptcha::ArcData

    source ·
    pub type ArcData = Arc<Data>;
    \ No newline at end of file diff --git a/mcaptcha/widget/constant.PAGE.html b/mcaptcha/widget/constant.PAGE.html index 369a0e67..a0917cb2 100644 --- a/mcaptcha/widget/constant.PAGE.html +++ b/mcaptcha/widget/constant.PAGE.html @@ -1 +1 @@ -PAGE in mcaptcha::widget - Rust

    Constant mcaptcha::widget::PAGE

    source ·
    const PAGE: &str = "mCaptcha CAPTCHA verification";
    \ No newline at end of file +PAGE in mcaptcha::widget - Rust

    Constant mcaptcha::widget::PAGE

    source ·
    const PAGE: &str = "mCaptcha CAPTCHA verification";
    \ No newline at end of file diff --git a/mcaptcha/widget/constant.WIDGET_ROUTES.html b/mcaptcha/widget/constant.WIDGET_ROUTES.html index d3b351b8..0b8e8a16 100644 --- a/mcaptcha/widget/constant.WIDGET_ROUTES.html +++ b/mcaptcha/widget/constant.WIDGET_ROUTES.html @@ -1 +1 @@ -WIDGET_ROUTES in mcaptcha::widget - Rust

    Constant mcaptcha::widget::WIDGET_ROUTES

    source ·
    pub const WIDGET_ROUTES: Widget;
    \ No newline at end of file +WIDGET_ROUTES in mcaptcha::widget - Rust

    Constant mcaptcha::widget::WIDGET_ROUTES

    source ·
    pub const WIDGET_ROUTES: Widget;
    \ No newline at end of file diff --git a/mcaptcha/widget/fn.__stability.html b/mcaptcha/widget/fn.__stability.html new file mode 100644 index 00000000..2fd9f5d3 --- /dev/null +++ b/mcaptcha/widget/fn.__stability.html @@ -0,0 +1 @@ +__stability in mcaptcha::widget - Rust

    Function mcaptcha::widget::__stability

    source ·
    fn __stability() -> &'static String
    \ No newline at end of file diff --git a/mcaptcha/widget/fn.__static_ref_initialize.html b/mcaptcha/widget/fn.__static_ref_initialize.html new file mode 100644 index 00000000..b4c3c131 --- /dev/null +++ b/mcaptcha/widget/fn.__static_ref_initialize.html @@ -0,0 +1 @@ +__static_ref_initialize in mcaptcha::widget - Rust
    fn __static_ref_initialize() -> String
    \ No newline at end of file diff --git a/mcaptcha/widget/fn.services.html b/mcaptcha/widget/fn.services.html index 4753b03d..4bb58c02 100644 --- a/mcaptcha/widget/fn.services.html +++ b/mcaptcha/widget/fn.services.html @@ -1,2 +1,2 @@ -services in mcaptcha::widget - Rust

    Function mcaptcha::widget::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    Expand description

    widget services

    -
    \ No newline at end of file +services in mcaptcha::widget - Rust

    Function mcaptcha::widget::services

    source ·
    pub fn services(cfg: &mut ServiceConfig)
    Expand description

    widget services

    +
    \ No newline at end of file diff --git a/mcaptcha/widget/fn.show_widget.html b/mcaptcha/widget/fn.show_widget.html new file mode 100644 index 00000000..c17e731e --- /dev/null +++ b/mcaptcha/widget/fn.show_widget.html @@ -0,0 +1,2 @@ +show_widget in mcaptcha::widget - Rust

    Function mcaptcha::widget::show_widget

    source ·
    async fn show_widget() -> Result<impl Responder, PageError>
    Expand description

    render a client side widget for CAPTCHA verification

    +
    \ No newline at end of file diff --git a/mcaptcha/widget/index.html b/mcaptcha/widget/index.html index 0ecd6149..476792e1 100644 --- a/mcaptcha/widget/index.html +++ b/mcaptcha/widget/index.html @@ -1,2 +1,2 @@ -mcaptcha::widget - Rust

    Module mcaptcha::widget

    source ·
    Expand description

    User facing CAPTCHA widget

    -

    Modules

    Structs

    INDEX_PAGE 🔒
    render a client side widget for CAPTCHA verification

    Constants

    Functions

    widget services
    \ No newline at end of file +mcaptcha::widget - Rust

    Module mcaptcha::widget

    source ·
    Expand description

    User facing CAPTCHA widget

    +

    Modules

    Structs

    Constants

    Statics

    Functions

    \ No newline at end of file diff --git a/mcaptcha/widget/routes/index.html b/mcaptcha/widget/routes/index.html index 7499b73b..7c7385c0 100644 --- a/mcaptcha/widget/routes/index.html +++ b/mcaptcha/widget/routes/index.html @@ -1 +1 @@ -mcaptcha::widget::routes - Rust
    \ No newline at end of file +mcaptcha::widget::routes - Rust
    \ No newline at end of file diff --git a/mcaptcha/widget/routes/sidebar-items.js b/mcaptcha/widget/routes/sidebar-items.js index 086d6cad..b0236057 100644 --- a/mcaptcha/widget/routes/sidebar-items.js +++ b/mcaptcha/widget/routes/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":[["Widget",""]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Widget"]}; \ No newline at end of file diff --git a/mcaptcha/widget/routes/struct.Widget.html b/mcaptcha/widget/routes/struct.Widget.html index caaf8469..54f084f4 100644 --- a/mcaptcha/widget/routes/struct.Widget.html +++ b/mcaptcha/widget/routes/struct.Widget.html @@ -1,11 +1,19 @@ -Widget in mcaptcha::widget::routes - Rust

    Struct mcaptcha::widget::routes::Widget

    source ·
    pub struct Widget {
    -    pub verification_widget: &'static str,
    -}

    Fields§

    §verification_widget: &'static str

    Implementations§

    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).

    +Widget in mcaptcha::widget::routes - Rust

    Struct mcaptcha::widget::routes::Widget

    source ·
    pub struct Widget {
    +    pub verification_widget: &'static str,
    +}

    Fields§

    §verification_widget: &'static str

    Implementations§

    source§

    impl Widget

    source

    pub const fn new() -> Self

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/widget/sidebar-items.js b/mcaptcha/widget/sidebar-items.js index 5c5d6f0e..75b73989 100644 --- a/mcaptcha/widget/sidebar-items.js +++ b/mcaptcha/widget/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":[["PAGE",""],["WIDGET_ROUTES",""]],"fn":[["services","widget services"]],"mod":[["routes",""]],"struct":[["INDEX_PAGE",""],["IndexPage",""],["show_widget","render a client side widget for CAPTCHA verification"]]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["PAGE","WIDGET_ROUTES"],"fn":["__stability","__static_ref_initialize","services","show_widget"],"mod":["routes"],"static":["LAZY","SIZE_HINT"],"struct":["INDEX_PAGE","IndexPage","show_widget"]}; \ No newline at end of file diff --git a/mcaptcha/widget/static.LAZY.html b/mcaptcha/widget/static.LAZY.html new file mode 100644 index 00000000..1a1ead35 --- /dev/null +++ b/mcaptcha/widget/static.LAZY.html @@ -0,0 +1 @@ +LAZY in mcaptcha::widget - Rust

    Static mcaptcha::widget::LAZY

    source ·
    static LAZY: Lazy<String>
    \ No newline at end of file diff --git a/mcaptcha/widget/static.SIZE_HINT.html b/mcaptcha/widget/static.SIZE_HINT.html new file mode 100644 index 00000000..0e32de22 --- /dev/null +++ b/mcaptcha/widget/static.SIZE_HINT.html @@ -0,0 +1 @@ +SIZE_HINT in mcaptcha::widget - Rust

    Static mcaptcha::widget::SIZE_HINT

    source ·
    static SIZE_HINT: SizeHint
    \ No newline at end of file diff --git a/mcaptcha/widget/struct.INDEX_PAGE.html b/mcaptcha/widget/struct.INDEX_PAGE.html index 1009c52d..c5676167 100644 --- a/mcaptcha/widget/struct.INDEX_PAGE.html +++ b/mcaptcha/widget/struct.INDEX_PAGE.html @@ -1,28 +1,28 @@ -INDEX_PAGE in mcaptcha::widget - Rust

    Struct mcaptcha::widget::INDEX_PAGE

    source ·
    struct INDEX_PAGE {
    -    __private_field: (),
    -}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    Extracts a string slice containing the entire String.

    +INDEX_PAGE in mcaptcha::widget - Rust

    Struct mcaptcha::widget::INDEX_PAGE

    source ·
    struct INDEX_PAGE {
    +    __private_field: (),
    +}

    Fields§

    §__private_field: ()

    Methods from Deref<Target = String>§

    1.7.0 · source

    pub fn as_str(&self) -> &str

    Extracts a string slice containing the entire String.

    Examples

    Basic usage:

    let s = String::from("foo");
     
     assert_eq!("foo", s.as_str());
    -

    Returns this String’s capacity, in bytes.

    +
    1.0.0 · source

    pub fn capacity(&self) -> usize

    Returns this String’s capacity, in bytes.

    Examples

    Basic usage:

    let s = String::with_capacity(10);
     
     assert!(s.capacity() >= 10);
    -

    Returns a byte slice of this String’s contents.

    -

    The inverse of this method is from_utf8.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Returns a byte slice of this String’s contents.

    +

    The inverse of this method is from_utf8.

    Examples

    Basic usage:

    let s = String::from("hello");
     
     assert_eq!(&[104, 101, 108, 108, 111], s.as_bytes());
    -

    Returns the length of this String, in bytes, not chars or +

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of this String, in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples
    @@ -34,7 +34,7 @@ length of the string.

    let fancy_f = String::from("ƒoo"); assert_eq!(fancy_f.len(), 4); assert_eq!(fancy_f.chars().count(), 3);
    -

    Returns true if this String has a length of zero, and false otherwise.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if this String has a length of zero, and false otherwise.

    Examples

    Basic usage:

    @@ -43,8 +43,8 @@ length of the string.

    v.push('a'); assert!(!v.is_empty());
    -

    Methods from Deref<Target = str>§

    Returns the length of self.

    -

    This length is in bytes, not chars or graphemes. In other words, +

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    +

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    Examples

    Basic usage:

    @@ -54,7 +54,7 @@ it might not be what a human considers the length of the string.

    assert_eq!("ƒoo".len(), 4); // fancy f! assert_eq!("ƒoo".chars().count(), 3);
    -

    Returns true if self has a length of zero bytes.

    +
    1.0.0 · source

    pub fn is_empty(&self) -> bool

    Returns true if self has a length of zero bytes.

    Examples

    Basic usage:

    @@ -63,7 +63,7 @@ it might not be what a human considers the length of the string.

    let s = "not empty"; assert!(!s.is_empty());
    -

    Checks that index-th byte is the first byte in a UTF-8 code point +

    1.9.0 · source

    pub fn is_char_boundary(&self, index: usize) -> bool

    Checks that index-th byte is the first byte in a UTF-8 code point sequence or the end of the string.

    The start and end of the string (when index == self.len()) are considered to be boundaries.

    @@ -80,7 +80,7 @@ considered to be boundaries.

    // third byte of `老` assert!(!s.is_char_boundary(8));
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    +
    source

    pub fn floor_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not exceeding index where is_char_boundary(x) is true.

    This method can help you truncate a string so that it’s still valid UTF-8, but doesn’t exceed a given number of bytes. Note that this is done purely at the character level and can still visually split graphemes, even though the underlying characters aren’t @@ -95,8 +95,8 @@ includes 🧑 (person) instead.

    let closest = s.floor_char_boundary(13); assert_eq!(closest, 10); assert_eq!(&s[..closest], "❤️🧡");
    -
    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    -

    This method is the natural complement to floor_char_boundary. See that method +

    source

    pub fn ceil_char_boundary(&self, index: usize) -> usize

    🔬This is a nightly-only experimental API. (round_char_boundary)

    Finds the closest x not below index where is_char_boundary(x) is true.

    +

    This method is the natural complement to floor_char_boundary. See that method for more details.

    Panics

    Panics if index > self.len().

    @@ -109,14 +109,14 @@ for more details.

    let closest = s.ceil_char_boundary(13); assert_eq!(closest, 14); assert_eq!(&s[..closest], "❤️🧡💛");
    -

    Converts a string slice to a byte slice. To convert the byte slice back -into a string slice, use the from_utf8 function.

    +
    1.0.0 · source

    pub fn as_bytes(&self) -> &[u8]

    Converts a string slice to a byte slice. To convert the byte slice back +into a string slice, use the from_utf8 function.

    Examples

    Basic usage:

    let bytes = "bors".as_bytes();
     assert_eq!(b"bors", bytes);
    -

    Converts a mutable string slice to a mutable byte slice.

    +
    1.20.0 · source

    pub unsafe fn as_bytes_mut(&mut self) -> &mut [u8]

    Converts a mutable string slice to a mutable byte slice.

    Safety

    The caller must ensure that the content of the slice is valid UTF-8 before the borrow ends and the underlying str is used.

    @@ -142,26 +142,27 @@ before the borrow ends and the underlying str is used.

    } assert_eq!("🍔∈🌏", s);
    -

    Converts a string slice to a raw pointer.

    +
    1.0.0 · source

    pub fn as_ptr(&self) -> *const u8

    Converts a string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    The caller must ensure that the returned pointer is never written to. -If you need to mutate the contents of the string slice, use as_mut_ptr.

    +If you need to mutate the contents of the string slice, use as_mut_ptr.

    Examples

    Basic usage:

    let s = "Hello";
     let ptr = s.as_ptr();
    -

    Converts a mutable string slice to a raw pointer.

    +
    1.36.0 · source

    pub fn as_mut_ptr(&mut self) -> *mut u8

    Converts a mutable string slice to a raw pointer.

    As string slices are a slice of bytes, the raw pointer points to a -u8. This pointer will be pointing to the first byte of the string +u8. This pointer will be pointing to the first byte of the string slice.

    It is your responsibility to make sure that the string slice only gets modified in a way that it remains valid UTF-8.

    -

    Returns a subslice of str.

    +
    1.20.0 · source

    pub fn get<I>(&self, i: I) -> Option<&<I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let v = String::from("🗻∈🌏");
     
    @@ -173,9 +174,10 @@ modified in a way that it remains valid UTF-8.

    // out of bounds assert!(v.get(..42).is_none());
    -

    Returns a mutable subslice of str.

    +
    1.20.0 · source

    pub fn get_mut<I>(&mut self, i: I) -> Option<&mut <I as SliceIndex<str>>::Output>where + I: SliceIndex<str>,

    Returns a mutable subslice of str.

    This is the non-panicking alternative to indexing the str. Returns -None whenever equivalent indexing operation would panic.

    +None whenever equivalent indexing operation would panic.

    Examples
    let mut v = String::from("hello");
     // correct length
    @@ -194,7 +196,8 @@ modified in a way that it remains valid UTF-8.

    assert_eq!(Some("HE"), s); } assert_eq!("HEllo", v);
    -

    Returns an unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked<I>(&self, i: I) -> &<I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns an unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -213,7 +216,11 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked(4..7)); assert_eq!("🌏", v.get_unchecked(7..11)); }
    -

    Returns a mutable, unchecked subslice of str.

    +
    1.20.0 · source

    pub unsafe fn get_unchecked_mut<I>( + &mut self, + i: I +) -> &mut <I as SliceIndex<str>>::Outputwhere + I: SliceIndex<str>,

    Returns a mutable, unchecked subslice of str.

    This is the unchecked alternative to indexing the str.

    Safety

    Callers of this function are responsible that these preconditions are @@ -232,14 +239,14 @@ violate the invariants communicated by the str type.

    assert_eq!("∈", v.get_unchecked_mut(4..7)); assert_eq!("🌏", v.get_unchecked_mut(7..11)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.0.0 · source

    pub unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str

    👎Deprecated since 1.29.0: use get_unchecked(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks.

    This is generally not recommended, use with caution! For a safe -alternative see str and Index.

    +alternative see str and Index.

    This new slice goes from begin to end, including begin but excluding end.

    To get a mutable string slice instead, see the -slice_mut_unchecked method.

    +slice_mut_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -262,14 +269,14 @@ satisfied:

    unsafe { assert_eq!("world", s.slice_unchecked(7, 12)); }
    -
    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety +

    1.5.0 · source

    pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str

    👎Deprecated since 1.29.0: use get_unchecked_mut(begin..end) instead

    Creates a string slice from another string slice, bypassing safety checks. This is generally not recommended, use with caution! For a safe -alternative see str and IndexMut.

    +alternative see str and IndexMut.

    This new slice goes from begin to end, including begin but excluding end.

    To get an immutable string slice instead, see the -slice_unchecked method.

    +slice_unchecked method.

    Safety

    Callers of this function are responsible that three preconditions are satisfied:

    @@ -278,12 +285,12 @@ satisfied:

  • begin and end must be byte positions within the string slice.
  • begin and end must lie on UTF-8 sequence boundaries.
  • -

    Divide one string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at(&self, mid: usize) -> (&str, &str)

    Divide one string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get mutable string slices instead, see the split_at_mut +

    To get mutable string slices instead, see the split_at_mut method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is @@ -297,12 +304,12 @@ past the end of the last code point of the string slice.

    assert_eq!("Per", first); assert_eq!(" Martin-Löf", last);
    -

    Divide one mutable string slice into two at an index.

    +
    1.4.0 · source

    pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str)

    Divide one mutable string slice into two at an index.

    The argument, mid, should be a byte offset from the start of the string. It must also be on the boundary of a UTF-8 code point.

    The two slices returned go from the start of the string slice to mid, and from mid to the end of the string slice.

    -

    To get immutable string slices instead, see the split_at method.

    +

    To get immutable string slices instead, see the split_at method.

    Panics

    Panics if mid is not on a UTF-8 code point boundary, or if it is past the end of the last code point of the string slice.

    @@ -317,10 +324,10 @@ past the end of the last code point of the string slice.

    assert_eq!(" Martin-Löf", last); } assert_eq!("PER Martin-Löf", s);
    -

    Returns an iterator over the chars of a string slice.

    +
    1.0.0 · source

    pub fn chars(&self) -> Chars<'_>

    Returns an iterator over the chars of a string slice.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns such an iterator.

    -

    It’s important to remember that char represents a Unicode Scalar +string slice by char. This method returns such an iterator.

    +

    It’s important to remember that char represents a Unicode Scalar Value, and might not match your idea of what a ‘character’ is. Iteration over grapheme clusters may be what you actually want. This functionality is not provided by Rust’s standard library, check crates.io instead.

    @@ -343,7 +350,7 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('e'), chars.next()); assert_eq!(None, chars.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let y = "y̆";
     
    @@ -353,12 +360,12 @@ is not provided by Rust’s standard library, check crates.io instead.

    assert_eq!(Some('\u{0306}'), chars.next()); assert_eq!(None, chars.next());
    -

    Returns an iterator over the chars of a string slice, and their +

    1.0.0 · source

    pub fn char_indices(&self) -> CharIndices<'_>

    Returns an iterator over the chars of a string slice, and their positions.

    As a string slice consists of valid UTF-8, we can iterate through a -string slice by char. This method returns an iterator of both -these chars, as well as their byte positions.

    -

    The iterator yields tuples. The position is first, the char is +string slice by char. This method returns an iterator of both +these chars, as well as their byte positions.

    +

    The iterator yields tuples. The position is first, the char is second.

    Examples

    Basic usage:

    @@ -379,7 +386,7 @@ second.

    assert_eq!(Some((6, 'e')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    Remember, chars might not match your intuition about characters:

    +

    Remember, chars might not match your intuition about characters:

    let yes = "y̆es";
     
    @@ -393,7 +400,7 @@ second.

    assert_eq!(Some((4, 's')), char_indices.next()); assert_eq!(None, char_indices.next());
    -

    An iterator over the bytes of a string slice.

    +
    1.0.0 · source

    pub fn bytes(&self) -> Bytes<'_>

    An iterator over the bytes of a string slice.

    As a string slice consists of a sequence of bytes, we can iterate through a string slice by byte. This method returns such an iterator.

    Examples
    @@ -407,12 +414,12 @@ through a string slice by byte. This method returns such an iterator.

    assert_eq!(Some(b's'), bytes.next()); assert_eq!(None, bytes.next());
    -

    Splits a string slice by whitespace.

    +
    1.1.0 · source

    pub fn split_whitespace(&self) -> SplitWhitespace<'_>

    Splits a string slice by whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of whitespace.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space. If you only want to split on ASCII whitespace -instead, use split_ascii_whitespace.

    +instead, use split_ascii_whitespace.

    Examples

    Basic usage:

    @@ -437,10 +444,10 @@ instead, use
    assert_eq!("".split_whitespace().next(), None);
     assert_eq!("   ".split_whitespace().next(), None);
    -

    Splits a string slice by ASCII whitespace.

    +
    1.34.0 · source

    pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_>

    Splits a string slice by ASCII whitespace.

    The iterator returned will return string slices that are sub-slices of the original string slice, separated by any amount of ASCII whitespace.

    -

    To split by Unicode Whitespace instead, use split_whitespace.

    +

    To split by Unicode Whitespace instead, use split_whitespace.

    Examples

    Basic usage:

    @@ -465,7 +472,7 @@ the original string slice, separated by any amount of ASCII whitespace.

    assert_eq!("".split_ascii_whitespace().next(), None);
     assert_eq!("   ".split_ascii_whitespace().next(), None);
    -

    An iterator over the lines of a string, as string slices.

    +
    1.0.0 · source

    pub fn lines(&self) -> Lines<'_>

    An iterator over the lines of a string, as string slices.

    Lines are split at line endings that are either newlines (\n) or sequences of a carriage return followed by a line feed (\r\n).

    Line terminators are not included in the lines returned by the iterator.

    @@ -495,8 +502,8 @@ without a final line ending.

    assert_eq!(Some("baz"), lines.next()); assert_eq!(None, lines.next());
    -
    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    -

    Returns an iterator of u16 over the string encoded as UTF-16.

    +
    1.0.0 · source

    pub fn lines_any(&self) -> LinesAny<'_>

    👎Deprecated since 1.4.0: use lines() instead now

    An iterator over the lines of a string.

    +
    1.8.0 · source

    pub fn encode_utf16(&self) -> EncodeUtf16<'_>

    Returns an iterator of u16 over the string encoded as UTF-16.

    Examples

    Basic usage:

    @@ -506,10 +513,11 @@ without a final line ending.

    let utf16_len = text.encode_utf16().count(); assert!(utf16_len <= utf8_len);
    -

    Returns true if the given pattern matches a sub-slice of +

    1.0.0 · source

    pub fn contains<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a sub-slice of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -518,10 +526,11 @@ function or closure that determines if a character matches.

    assert!(bananas.contains("nana")); assert!(!bananas.contains("apples"));
    -

    Returns true if the given pattern matches a prefix of this +

    1.0.0 · source

    pub fn starts_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>,

    Returns true if the given pattern matches a prefix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -530,10 +539,12 @@ function or closure that determines if a character matches.

    assert!(bananas.starts_with("bana")); assert!(!bananas.starts_with("nana"));
    -

    Returns true if the given pattern matches a suffix of this +

    1.0.0 · source

    pub fn ends_with<'a, P>(&'a self, pat: P) -> boolwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns true if the given pattern matches a suffix of this string slice.

    Returns false if it does not.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Basic usage:

    @@ -542,10 +553,11 @@ function or closure that determines if a character matches.

    assert!(bananas.ends_with("anas")); assert!(!bananas.ends_with("nana"));
    -

    Returns the byte index of the first character of this string slice that +

    1.0.0 · source

    pub fn find<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>,

    Returns the byte index of the first character of this string slice that matches the pattern.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -569,10 +581,12 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.find(x), None);
    -

    Returns the byte index for the first character of the last match of the pattern in +

    1.0.0 · source

    pub fn rfind<'a, P>(&'a self, pat: P) -> Option<usize>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns the byte index for the first character of the last match of the pattern in this string slice.

    -

    Returns None if the pattern doesn’t match.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    Returns None if the pattern doesn’t match.

    +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -594,16 +608,17 @@ function or closure that determines if a character matches.

    let x: &[_] = &['1', '2']; assert_eq!(s.rfind(x), None);
    -

    An iterator over substrings of this string slice, separated by +

    1.0.0 · source

    pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit method can be used.

    +from a forward search, the rsplit method can be used.

    Examples

    Simple patterns:

    @@ -665,13 +680,14 @@ when whitespace is used as the separator. This code is correct:

    assert_eq!(d, &["", "", "", "", "a", "", "b", "c"]);

    It does not give you:

    -
    assert_eq!(d, &["a", "b", "c"]);
    -

    Use split_whitespace for this behavior.

    -

    An iterator over substrings of this string slice, separated by +

    assert_eq!(d, &["a", "b", "c"]);
    +

    Use split_whitespace for this behavior.

    +
    1.51.0 · source

    pub fn split_inclusive<'a, P>(&'a self, pat: P) -> SplitInclusive<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of this string slice, separated by characters matched by a pattern. Differs from the iterator produced by split in that split_inclusive leaves the matched part as the terminator of the substring.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb."
    @@ -684,15 +700,17 @@ That substring will be the last item returned by the iterator.

    let v: Vec<&str> = "Mary had a little lamb\nlittle lamb\nlittle lamb.\n"
         .split_inclusive('\n').collect();
     assert_eq!(v, ["Mary had a little lamb\n", "little lamb\n", "little lamb.\n"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn rsplit<'a, P>(&'a self, pat: P) -> RSplit<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split method can be used.

    +

    For iterating from the front, the split method can be used.

    Examples

    Simple patterns:

    @@ -711,20 +729,21 @@ search yields the same elements.

    let v: Vec<&str> = "abc1defXghi".rsplit(|c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "def", "abc"]);
    -

    An iterator over substrings of the given string slice, separated by +

    1.0.0 · source

    pub fn split_terminator<'a, P>(&'a self, pat: P) -> SplitTerminator<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by characters matched by a pattern.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rsplit_terminator method can be used.

    +from a forward search, the rsplit_terminator method can be used.

    Examples

    Basic usage:

    @@ -736,11 +755,13 @@ from a forward search, the let v: Vec<&str> = "A.B:C.D".split_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["A", "B", "C", "D"]);
    -

    An iterator over substrings of self, separated by characters +

    1.0.0 · source

    pub fn rsplit_terminator<'a, P>(&'a self, pat: P) -> RSplitTerminator<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of self, separated by characters matched by a pattern and yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    -

    Equivalent to split, except that the trailing substring is +

    Equivalent to split, except that the trailing substring is skipped if empty.

    This method can be used for string data that is terminated, rather than separated by a pattern.

    @@ -748,7 +769,7 @@ rather than separated by a pattern.

    The returned iterator requires that the pattern supports a reverse search, and it will be double ended if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the split_terminator method can be +

    For iterating from the front, the split_terminator method can be used.

    Examples
    let v: Vec<&str> = "A.B.".rsplit_terminator('.').collect();
    @@ -759,16 +780,17 @@ used.

    let v: Vec<&str> = "A.B:C.D".rsplit_terminator(&['.', ':'][..]).collect(); assert_eq!(v, ["D", "C", "B", "A"]);
    -

    An iterator over substrings of the given string slice, separated by a +

    1.0.0 · source

    pub fn splitn<'a, P>(&'a self, n: usize, pat: P) -> SplitN<'a, P>where + P: Pattern<'a>,

    An iterator over substrings of the given string slice, separated by a pattern, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    If the pattern allows a reverse search, the rsplitn method can be +

    If the pattern allows a reverse search, the rsplitn method can be used.

    Examples

    Simple patterns:

    @@ -788,17 +810,19 @@ used.

    let v: Vec<&str> = "abc1defXghi".splitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["abc", "defXghi"]);
    -

    An iterator over substrings of this string slice, separated by a +

    1.0.0 · source

    pub fn rsplitn<'a, P>(&'a self, n: usize, pat: P) -> RSplitN<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over substrings of this string slice, separated by a pattern, starting from the end of the string, restricted to returning at most n items.

    If n substrings are returned, the last substring (the nth substring) will contain the remainder of the string.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator will not be double ended, because it is not efficient to support.

    -

    For splitting from the front, the splitn method can be used.

    +

    For splitting from the front, the splitn method can be used.

    Examples

    Simple patterns:

    @@ -814,29 +838,33 @@ efficient to support.

    let v: Vec<&str> = "abc1defXghi".rsplitn(2, |c| c == '1' || c == 'X').collect();
     assert_eq!(v, ["ghi", "abc1def"]);
    -

    Splits the string on the first occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn split_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>,

    Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".split_once('='), None);
     assert_eq!("cfg=".split_once('='), Some(("cfg", "")));
     assert_eq!("cfg=foo".split_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".split_once('='), Some(("cfg", "foo=bar")));
    -

    Splits the string on the last occurrence of the specified delimiter and +

    1.52.0 · source

    pub fn rsplit_once<'a, P>(&'a self, delimiter: P) -> Option<(&'a str, &'a str)>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Splits the string on the last occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter.

    Examples
    assert_eq!("cfg".rsplit_once('='), None);
     assert_eq!("cfg=foo".rsplit_once('='), Some(("cfg", "foo")));
     assert_eq!("cfg=foo=bar".rsplit_once('='), Some(("cfg=foo", "bar")));
    -

    An iterator over the disjoint matches of a pattern within the given string +

    1.2.0 · source

    pub fn matches<'a, P>(&'a self, pat: P) -> Matches<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within the given string slice.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatches method can be used.

    +from a forward search, the rmatches method can be used.

    Examples

    Basic usage:

    @@ -845,15 +873,17 @@ from a forward search, the let v: Vec<&str> = "1abc2abc3".matches(char::is_numeric).collect(); assert_eq!(v, ["1", "2", "3"]);
    -

    An iterator over the disjoint matches of a pattern within this string slice, +

    1.2.0 · source

    pub fn rmatches<'a, P>(&'a self, pat: P) -> RMatches<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within this string slice, yielded in reverse order.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the matches method can be used.

    +

    For iterating from the front, the matches method can be used.

    Examples

    Basic usage:

    @@ -862,18 +892,19 @@ search yields the same elements.

    let v: Vec<&str> = "1abc2abc3".rmatches(char::is_numeric).collect(); assert_eq!(v, ["3", "2", "1"]);
    -

    An iterator over the disjoint matches of a pattern within this string +

    1.5.0 · source

    pub fn match_indices<'a, P>(&'a self, pat: P) -> MatchIndices<'a, P>where + P: Pattern<'a>,

    An iterator over the disjoint matches of a pattern within this string slice as well as the index that the match starts at.

    For matches of pat within self that overlap, only the indices corresponding to the first match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior
    -

    The returned iterator will be a DoubleEndedIterator if the pattern +

    The returned iterator will be a DoubleEndedIterator if the pattern allows a reverse search and forward/reverse search yields the same -elements. This is true for, e.g., char, but not for &str.

    +elements. This is true for, e.g., char, but not for &str.

    If the pattern allows a reverse search but its results might differ -from a forward search, the rmatch_indices method can be used.

    +from a forward search, the rmatch_indices method can be used.

    Examples

    Basic usage:

    @@ -885,17 +916,19 @@ from a forward search, the let v: Vec<_> = "ababa".match_indices("aba").collect(); assert_eq!(v, [(0, "aba")]); // only the first `aba`
    -

    An iterator over the disjoint matches of a pattern within self, +

    1.5.0 · source

    pub fn rmatch_indices<'a, P>(&'a self, pat: P) -> RMatchIndices<'a, P>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    An iterator over the disjoint matches of a pattern within self, yielded in reverse order along with the index of the match.

    For matches of pat within self that overlap, only the indices corresponding to the last match are returned.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Iterator behavior

    The returned iterator requires that the pattern supports a reverse -search, and it will be a DoubleEndedIterator if a forward/reverse +search, and it will be a DoubleEndedIterator if a forward/reverse search yields the same elements.

    -

    For iterating from the front, the match_indices method can be used.

    +

    For iterating from the front, the match_indices method can be used.

    Examples

    Basic usage:

    @@ -907,7 +940,7 @@ search yields the same elements.

    let v: Vec<_> = "ababa".rmatch_indices("aba").collect(); assert_eq!(v, [(2, "aba")]); // only the last `aba`
    -

    Returns a string slice with leading and trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim(&self) -> &str

    Returns a string slice with leading and trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Examples
    @@ -916,7 +949,7 @@ Core Property White_Space, which includes newlines.

    let s = "\n Hello\tworld\t\n";
     
     assert_eq!("Hello\tworld", s.trim());
    -

    Returns a string slice with leading whitespace removed.

    +
    1.30.0 · source

    pub fn trim_start(&self) -> &str

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -936,7 +969,7 @@ Arabic or Hebrew, this will be the right side.

    let s = " עברית "; assert!(Some('ע') == s.trim_start().chars().next());
    -

    Returns a string slice with trailing whitespace removed.

    +
    1.30.0 · source

    pub fn trim_end(&self) -> &str

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space, which includes newlines.

    Text directionality
    @@ -956,7 +989,7 @@ Arabic or Hebrew, this will be the left side.

    let s = " עברית "; assert!(Some('ת') == s.trim_end().chars().rev().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    +
    1.0.0 · source

    pub fn trim_left(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_start

    Returns a string slice with leading whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -977,7 +1010,7 @@ the right side, not the left.

    let s = " עברית"; assert!(Some('ע') == s.trim_left().chars().next());
    -
    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    +
    1.0.0 · source

    pub fn trim_right(&self) -> &str

    👎Deprecated since 1.33.0: superseded by trim_end

    Returns a string slice with trailing whitespace removed.

    ‘Whitespace’ is defined according to the terms of the Unicode Derived Core Property White_Space.

    Text directionality
    @@ -998,9 +1031,11 @@ the left side, not the right.

    let s = "עברית "; assert!(Some('ת') == s.trim_right().chars().rev().next());
    -

    Returns a string slice with all prefixes and suffixes that match a +

    1.0.0 · source

    pub fn trim_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: DoubleEndedSearcher<'a>,

    Returns a string slice with all prefixes and suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a char, a slice of chars, or a function +

    The pattern can be a char, a slice of chars, or a function or closure that determines if a character matches.

    Examples

    Simple patterns:

    @@ -1013,9 +1048,10 @@ or closure that determines if a character matches.

    A more complex pattern, using a closure:

    assert_eq!("1foo1barXX".trim_matches(|c| c == '1' || c == 'X'), "foo1bar");
    -

    Returns a string slice with all prefixes that match a pattern +

    1.30.0 · source

    pub fn trim_start_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. start in this context means the first @@ -1030,29 +1066,34 @@ Arabic or Hebrew, this will be the right side.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_start_matches(x), "foo1bar12");
    -

    Returns a string slice with the prefix removed.

    +
    1.45.0 · source

    pub fn strip_prefix<'a, P>(&'a self, prefix: P) -> Option<&'a str>where + P: Pattern<'a>,

    Returns a string slice with the prefix removed.

    If the string starts with the pattern prefix, returns substring after the prefix, wrapped in Some. Unlike trim_start_matches, this method removes the prefix exactly once.

    If the string does not start with prefix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("foo:bar".strip_prefix("foo:"), Some("bar"));
     assert_eq!("foo:bar".strip_prefix("bar"), None);
     assert_eq!("foofoo".strip_prefix("foo"), Some("foo"));
    -

    Returns a string slice with the suffix removed.

    +
    1.45.0 · source

    pub fn strip_suffix<'a, P>(&'a self, suffix: P) -> Option<&'a str>where + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with the suffix removed.

    If the string ends with the pattern suffix, returns the substring before the suffix, wrapped in Some. Unlike trim_end_matches, this method removes the suffix exactly once.

    If the string does not end with suffix, returns None.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Examples
    assert_eq!("bar:foo".strip_suffix(":foo"), Some("bar"));
     assert_eq!("bar:foo".strip_suffix("bar"), None);
     assert_eq!("foofoo".strip_suffix("foo"), Some("foo"));
    -

    Returns a string slice with all suffixes that match a pattern +

    1.30.0 · source

    pub fn trim_end_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. end in this context means the last @@ -1070,9 +1111,10 @@ Arabic or Hebrew, this will be the left side.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_end_matches(|c| c == '1' || c == 'X'), "1foo");
    -
    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern +

    1.0.0 · source

    pub fn trim_left_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>,

    👎Deprecated since 1.33.0: superseded by trim_start_matches

    Returns a string slice with all prefixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Left’ in this context means the first @@ -1087,9 +1129,11 @@ the right side, not the left.

    let x: &[_] = &['1', '2']; assert_eq!("12foo1bar12".trim_left_matches(x), "foo1bar12");
    -
    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern +

    1.0.0 · source

    pub fn trim_right_matches<'a, P>(&'a self, pat: P) -> &'a strwhere + P: Pattern<'a>, + <P as Pattern<'a>>::Searcher: ReverseSearcher<'a>,

    👎Deprecated since 1.33.0: superseded by trim_end_matches

    Returns a string slice with all suffixes that match a pattern repeatedly removed.

    -

    The pattern can be a &str, char, a slice of chars, or a +

    The pattern can be a &str, char, a slice of chars, or a function or closure that determines if a character matches.

    Text directionality

    A string is a sequence of bytes. ‘Right’ in this context means the last @@ -1107,15 +1151,16 @@ the left side, not the right.

    A more complex pattern, using a closure:

    assert_eq!("1fooX".trim_right_matches(|c| c == '1' || c == 'X'), "1foo");
    -

    Parses this string slice into another type.

    +
    1.0.0 · source

    pub fn parse<F>(&self) -> Result<F, <F as FromStr>::Err>where + F: FromStr,

    Parses this string slice into another type.

    Because parse is so general, it can cause problems with type inference. As such, parse is one of the few times you’ll see the syntax affectionately known as the ‘turbofish’: ::<>. This helps the inference algorithm understand specifically which type you’re trying to parse into.

    -

    parse can parse into any type that implements the FromStr trait.

    +

    parse can parse into any type that implements the FromStr trait.

    Errors
    -

    Will return Err if it’s not possible to parse this string slice into +

    Will return Err if it’s not possible to parse this string slice into the desired type.

    Examples

    Basic usage

    @@ -1133,21 +1178,21 @@ the desired type.

    let nope = "j".parse::<u32>();
     
     assert!(nope.is_err());
    -

    Checks if all characters in this string are within the ASCII range.

    +
    1.23.0 · source

    pub fn is_ascii(&self) -> bool

    Checks if all characters in this string are within the ASCII range.

    Examples
    let ascii = "hello!\n";
     let non_ascii = "Grüße, Jürgen ❤";
     
     assert!(ascii.is_ascii());
     assert!(!non_ascii.is_ascii());
    -

    Checks that two strings are an ASCII case-insensitive match.

    +
    1.23.0 · source

    pub fn eq_ignore_ascii_case(&self, other: &str) -> bool

    Checks that two strings are an ASCII case-insensitive match.

    Same as to_ascii_lowercase(a) == to_ascii_lowercase(b), but without allocating and copying temporaries.

    Examples
    assert!("Ferris".eq_ignore_ascii_case("FERRIS"));
     assert!("Ferrös".eq_ignore_ascii_case("FERRöS"));
     assert!(!"Ferrös".eq_ignore_ascii_case("FERRÖS"));
    -

    Converts this string to its ASCII upper case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_uppercase(&mut self)

    Converts this string to its ASCII upper case equivalent in-place.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    To return a new uppercased value without modifying the existing one, use @@ -1158,7 +1203,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_uppercase(); assert_eq!("GRüßE, JüRGEN ❤", s);
    -

    Converts this string to its ASCII lower case equivalent in-place.

    +
    1.23.0 · source

    pub fn make_ascii_lowercase(&mut self)

    Converts this string to its ASCII lower case equivalent in-place.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    To return a new lowercased value without modifying the existing one, use @@ -1169,7 +1214,7 @@ but non-ASCII letters are unchanged.

    s.make_ascii_lowercase(); assert_eq!("grÜße, jÜrgen ❤", s);
    -

    Return an iterator that escapes each char in self with char::escape_debug.

    +
    1.34.0 · source

    pub fn escape_debug(&self) -> EscapeDebug<'_>

    Return an iterator that escapes each char in self with char::escape_debug.

    Note: only extended grapheme codepoints that begin the string will be escaped.

    Examples
    @@ -1188,7 +1233,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_debug().to_string(), "❤\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_default.

    +
    1.34.0 · source

    pub fn escape_default(&self) -> EscapeDefault<'_>

    Return an iterator that escapes each char in self with char::escape_default.

    Examples

    As an iterator:

    @@ -1205,7 +1250,7 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_default().to_string(), "\\u{2764}\\n!");
    -

    Return an iterator that escapes each char in self with char::escape_unicode.

    +
    1.34.0 · source

    pub fn escape_unicode(&self) -> EscapeUnicode<'_>

    Return an iterator that escapes each char in self with char::escape_unicode.

    Examples

    As an iterator:

    @@ -1222,8 +1267,9 @@ escaped.

    Using to_string:

    assert_eq!("❤\n!".escape_unicode().to_string(), "\\u{2764}\\u{a}\\u{21}");
    -

    Replaces all matches of a pattern with another string.

    -

    replace creates a new String, and copies the data from this string slice into it. +

    1.0.0 · source

    pub fn replace<'a, P>(&'a self, from: P, to: &str) -> Stringwhere + P: Pattern<'a>,

    Replaces all matches of a pattern with another string.

    +

    replace creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice.

    Examples
    @@ -1237,8 +1283,9 @@ replaces them with the replacement string slice.

    let s = "this is old";
     assert_eq!(s, s.replace("cookie monster", "little lamb"));
    -

    Replaces first N matches of a pattern with another string.

    -

    replacen creates a new String, and copies the data from this string slice into it. +

    1.16.0 · source

    pub fn replacen<'a, P>(&'a self, pat: P, to: &str, count: usize) -> Stringwhere + P: Pattern<'a>,

    Replaces first N matches of a pattern with another string.

    +

    replacen creates a new String, and copies the data from this string slice into it. While doing so, it attempts to find matches of a pattern. If it finds any, it replaces them with the replacement string slice at most count times.

    Examples
    @@ -1252,11 +1299,11 @@ replaces them with the replacement string slice at most count times
    let s = "this is old";
     assert_eq!(s, s.replacen("cookie monster", "little lamb", 10));
    -

    Returns the lowercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_lowercase(&self) -> String

    Returns the lowercase equivalent of this string slice, as a new String.

    ‘Lowercase’ is defined according to the terms of the Unicode Derived Core Property Lowercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1279,11 +1326,11 @@ parameter in-place.

    let new_year = "农历新年";
     
     assert_eq!(new_year, new_year.to_lowercase());
    -

    Returns the uppercase equivalent of this string slice, as a new String.

    +
    1.2.0 · source

    pub fn to_uppercase(&self) -> String

    Returns the uppercase equivalent of this string slice, as a new String.

    ‘Uppercase’ is defined according to the terms of the Unicode Derived Core Property Uppercase.

    Since some characters can expand into multiple characters when changing -the case, this function returns a String instead of modifying the +the case, this function returns a String instead of modifying the parameter in-place.

    Examples

    Basic usage:

    @@ -1301,7 +1348,7 @@ parameter in-place.

    let s = "tschüß";
     
     assert_eq!("TSCHÜSS", s.to_uppercase());
    -

    Creates a new String by repeating a string n times.

    +
    1.16.0 · source

    pub fn repeat(&self, n: usize) -> String

    Creates a new String by repeating a string n times.

    Panics

    This function will panic if the capacity would overflow.

    Examples
    @@ -1310,36 +1357,44 @@ parameter in-place.

    assert_eq!("abc".repeat(4), String::from("abcabcabcabc"));

    A panic upon overflow:

    -
    // this will panic at runtime
    +
    // this will panic at runtime
     let huge = "0123456789abcdef".repeat(usize::MAX);
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_uppercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII upper case equivalent.

    ASCII letters ‘a’ to ‘z’ are mapped to ‘A’ to ‘Z’, but non-ASCII letters are unchanged.

    -

    To uppercase the value in-place, use make_ascii_uppercase.

    +

    To uppercase the value in-place, use make_ascii_uppercase.

    To uppercase ASCII characters in addition to non-ASCII characters, use to_uppercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
    -

    Returns a copy of this string where each character is mapped to its +

    1.23.0 · source

    pub fn to_ascii_lowercase(&self) -> String

    Returns a copy of this string where each character is mapped to its ASCII lower case equivalent.

    ASCII letters ‘A’ to ‘Z’ are mapped to ‘a’ to ‘z’, but non-ASCII letters are unchanged.

    -

    To lowercase the value in-place, use make_ascii_lowercase.

    +

    To lowercase the value in-place, use make_ascii_lowercase.

    To lowercase ASCII characters in addition to non-ASCII characters, use to_lowercase.

    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    The resulting type after dereferencing.
    Dereferences the value.

    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).

    +

    Trait Implementations§

    source§

    impl Deref for INDEX_PAGE

    §

    type Target = String

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &String

    Dereferences the value.
    source§

    impl LazyStatic for INDEX_PAGE

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for INDEX_PAGE

    §

    impl Send for INDEX_PAGE

    §

    impl Sync for INDEX_PAGE

    §

    impl Unpin for INDEX_PAGE

    §

    impl UnwindSafe for INDEX_PAGE

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/widget/struct.IndexPage.html b/mcaptcha/widget/struct.IndexPage.html index 172b1967..60a7f0c1 100644 --- a/mcaptcha/widget/struct.IndexPage.html +++ b/mcaptcha/widget/struct.IndexPage.html @@ -1,9 +1,18 @@ -IndexPage in mcaptcha::widget - Rust

    Struct mcaptcha::widget::IndexPage

    source ·
    pub struct IndexPage;

    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).

    +IndexPage in mcaptcha::widget - Rust

    Struct mcaptcha::widget::IndexPage

    source ·
    pub struct IndexPage;

    Implementations§

    source§

    impl IndexPage

    source

    fn new() -> 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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The resulting type after obtaining ownership.
    Creates owned data from borrowed data, usually by cloning. Read more
    Uses borrowed data to replace owned data, usually by cloning. Read more
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/mcaptcha/widget/struct.show_widget.html b/mcaptcha/widget/struct.show_widget.html index 027bb715..19bb45d7 100644 --- a/mcaptcha/widget/struct.show_widget.html +++ b/mcaptcha/widget/struct.show_widget.html @@ -1,10 +1,18 @@ -show_widget in mcaptcha::widget - Rust
    pub struct show_widget;
    Expand description

    render a client side widget for CAPTCHA verification

    -

    Trait Implementations§

    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).

    +show_widget in mcaptcha::widget - Rust
    pub struct show_widget;
    Expand description

    render a client side widget for CAPTCHA verification

    +

    Trait Implementations§

    source§

    impl HttpServiceFactory for show_widget

    source§

    fn register(self, __config: &mut AppService)

    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,

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere + T: ?Sized,

    const: unstable · source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    const: unstable · source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    source§

    impl<T> Instrument for T

    source§

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided Span, returning an +Instrumented wrapper. Read more
    source§

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere + U: From<T>,

    const: unstable · source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

    -
    Should always be Self
    The type returned in the event of a conversion error.
    Performs the conversion.
    The type returned in the event of a conversion error.
    Performs the conversion.
    Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
    Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
    \ No newline at end of file +From<T> for U chooses to do.

    +
    source§

    impl<T> Same<T> for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

    §

    type Error = Infallible

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

    The type returned in the event of a conversion error.
    const: unstable · source§

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere + V: MultiLane<T>,

    §

    fn vzip(self) -> V

    source§

    impl<T> WithSubscriber for T

    source§

    fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where + S: Into<Dispatch>,

    Attaches the provided Subscriber to this type, returning a +WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a +WithDispatch wrapper. Read more
    \ No newline at end of file diff --git a/search-index.js b/search-index.js index 9375ff85..9b28c32a 100644 --- a/search-index.js +++ b/search-index.js @@ -1,8 +1,8 @@ var searchIndex = JSON.parse('{\ -"db_core":{"doc":"mCaptcha database operations","t":[3,3,8,3,13,2,3,4,8,3,3,3,3,3,3,3,13,10,10,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,10,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,10,10,11,11,11,11,11,11,11,10,10,10,10,12,12,11,11,11,11,11,11,11,11,11,11,11,11,0,12,12,12,12,10,11,11,11,11,11,11,11,11,11,11,11,11,0,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,12,10,12,12,12,12,0,12,10,0,12,10,10,10,10,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,0,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,10,10,10,12,12,12,10,12,11,11,11,11,11,11,11,11,11,11,11,11,23,13,6,13,13,4,13,6,13,13,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,16,8,8,8,8,16,10,10,10,5],"n":["AddNotification","Captcha","CloneSPDatabase","CreateCaptcha","Email","GetConnection","Level","Login","MCDatabase","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail","Username","add_captcha_levels","add_traffic_pattern","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","captcha_exists","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_db","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","config_fetches","config_id","confirms","create_captcha","create_notification","default","default","default","default","default","default","default","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","dev","difficulty_factor","duration","duration","email","email_exists","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into","into","into","into","into","into","into","into","into","into","into","key","key","mark_notification_read","message","message","name","new_email","ops","peak_sustainable_traffic","ping","prelude","received","record_confirm","record_fetch","record_solve","register","secret","secret","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","solves","tests","to","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","async_trait","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","borrow","borrow_mut","fmt","fmt","from","into","provide","source","to_string","try_from","try_into","type_id","vzip","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","database_works"],"q":["db_core","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_core::dev","db_core::errors","","","","","","","","","","","","","","","","","","","","","","","","","db_core::ops","","","","","","","","","db_core::tests"],"d":["Data required to add notification","Data representing a captcha","Trait to clone MCDatabase","data required to create new captcha","email as login","","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","type encapsulating username and hashed password of a user","Represents notification","Data required to register a new user","datastructure representing a user’s secret","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","data required to update them email of a user","username as login","Add levels to captcha","Add traffic configuration","average traffic of user’s website","","","","","","","","","","","","","","","","","","","","","","","","","traffic that bought the user’s website down; optional","check if captcha exists","","","","","","","","","","","","","clone DB","","","","","","","","","","","","","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","create new captcha","create new notification","","","","","","","","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","","","","","","","","","","","","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","","","","","","","","","","","","","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","","","","","","","","","","","","","times at which the PoW was solved","Test utilities","who is the notification addressed to?","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","","","","","","","","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","test all database functions"],"i":[0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,9,18,18,5,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,5,18,7,8,9,10,11,12,13,14,5,15,16,17,30,7,8,9,10,11,12,13,14,5,15,16,17,11,16,11,18,18,11,13,14,5,15,16,17,18,18,18,18,15,16,7,8,9,10,11,12,13,14,5,15,16,17,0,12,15,16,7,18,7,8,9,10,11,12,13,14,5,15,16,17,0,18,18,18,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,14,18,18,18,18,18,18,18,18,18,18,7,10,13,14,13,7,8,9,10,11,12,13,14,5,15,16,17,15,16,18,13,14,13,8,0,5,18,0,13,18,18,18,18,7,17,7,8,9,10,11,12,13,14,5,15,16,17,11,0,14,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,18,18,18,18,18,18,7,8,10,18,12,7,8,9,10,11,12,13,14,5,15,16,17,0,26,0,26,26,0,26,0,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,31,0,0,0,0,32,32,31,33,0],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[1,1],[[4,[[3,[2]]]]]],[[1,1,5],[[4,[[3,[2]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[6,[1]],1],[[4,[[3,[2]]]]]],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[5,5],[15,15],[16,16],[17,17],[[],[[3,[18]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[1,15],[[4,[[3,[2]]]]]],[14,[[4,[[3,[2]]]]]],[[],11],[[],13],[[],14],[[],5],[[],15],[[],16],[[],17],[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],0,0,[[],[[19,[7]]]],[[],[[19,[8]]]],[[],[[19,[9]]]],[[],[[19,[10]]]],[[],[[19,[11]]]],[[],[[19,[12]]]],[[],[[19,[13]]]],[[],[[19,[14]]]],[[],[[19,[5]]]],[[],[[19,[15]]]],[[],[[19,[16]]]],[[],[[19,[17]]]],0,0,0,0,0,[1,[[4,[[3,[2]]]]]],[[7,7],20],[[8,8],20],[[9,9],20],[[10,10],20],[[11,11],20],[[12,12],20],[[13,13],20],[[14,14],20],[[5,5],20],[[15,15],20],[[16,16],20],[[17,17],20],0,[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[[7,21],22],[[8,21],22],[[9,21],22],[[10,21],22],[[11,21],22],[[12,21],[[19,[23]]]],[[13,21],22],[[14,21],22],[[5,21],22],[[15,21],22],[[16,21],22],[[17,21],22],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[1,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[[[6,[1]],1],[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[9,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[1,24],[[4,[[3,[2]]]]]],0,0,0,0,0,0,[[],[[4,[[3,[2]]]]]],0,0,[1,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[7,[[4,[[3,[2]]]]]],0,0,[7,19],[8,19],[9,19],[10,19],[11,19],[12,19],[13,19],[14,19],[5,19],[15,19],[16,19],[17,19],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[1,1,1],[[4,[[3,[2]]]]]],[[1,15],[[4,[[3,[2]]]]]],[8,[[4,[[3,[2]]]]]],[10,[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],0,0,0,[1,[[4,[[3,[2]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[26,21],22],[[26,21],22],[[]],[[]],[27],[26,[[6,[28]]]],[[],29],[[],19],[[],19],[[],25],[[]],0,0,0,0,0,0,[[],[[4,[[3,[2]]]]]],[[],[[4,[[3,[2]]]]]],[[],[[4,[[3,[2]]]]]],[[7,15,5,14]]],"p":[[15,"str"],[8,"Future"],[3,"Box"],[3,"Pin"],[3,"TrafficPattern"],[4,"Option"],[3,"Register"],[3,"UpdateEmail"],[4,"Login"],[3,"NameHash"],[3,"StatsUnixTimestamp"],[3,"Level"],[3,"Notification"],[3,"AddNotification"],[3,"CreateCaptcha"],[3,"Captcha"],[3,"Secret"],[8,"MCDatabase"],[4,"Result"],[15,"bool"],[3,"Formatter"],[6,"Result"],[3,"Error"],[15,"i32"],[3,"TypeId"],[4,"DBError"],[3,"Demand"],[8,"Error"],[3,"String"],[8,"CloneSPDatabase"],[8,"GetConnection"],[8,"Connect"],[8,"Migrate"]]},\ -"db_sqlx_maria":{"doc":"","t":[3,4,3,13,3,13,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,12,11,11,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,12,11,12,11,12,12,0,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,13,3,6,3,13,13,8,13,13,13,13,16,8,3,4,13,8,6,2,13,13,13,13,4,8,13,3,4,8,8,13,3,3,13,16,13,13,13,3,13,3,13,3,13,3,13,13,3,13,13,13,10,10,11,23,12,11,11,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,0,12,12,12,12,10,0,10,10,10,11,11,11,11,11,11,11,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,11,11,12,12,10,12,12,10,12,12,0,12,10,0,11,12,10,10,10,10,12,12,12,11,0,12,11,11,11,11,10,10,10,10,10,10,12,12,12,10,12,11,12,12,12,12,12,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,23,12,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,12,12,12,12,10,0,10,10,10,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,10,12,12,10,12,12,0,12,10,0,12,10,10,10,10,12,12,12,0,12,10,10,10,10,10,10,12,12,12,10,12,13,6,13,13,4,13,6,13,13,13,13,13,16,8,8,8,8,16,10,10,10,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,12,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,12,12,12,12,10,10,10,10,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,10,12,12,10,12,12,12,10,12,10,10,10,10,12,12,12,12,10,10,10,10,10,10,12,12,12,10,12,5,13,6,13,13,4,13,6,13,13,13,13,13,16,8,8,8,8,16,10,10,10,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,12,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,0,12,12,12,12,10,10,10,10,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,10,12,12,10,12,12,12,10,12,10,10,10,10,12,12,12,12,10,10,10,10,10,10,12,12,12,10,12,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,23,12,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,12,12,12,12,10,10,10,10,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,10,12,12,10,12,12,12,10,12,10,10,10,10,12,12,12,12,10,10,10,10,10,10,12,12,12,10,12,5,5,5,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,10,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,10,10,10,11,11,11,11,11,11,11,10,10,10,10,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,10,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,10,12,12,10,12,12,0,12,10,11,12,10,10,10,10,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,11,0,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,10,10,10,12,12,12,10,12,11,11,11,11,11,11,11,11,11,11,11,11,11,16,8,8,8,8,16,10,10,10,5],"n":["Conn","ConnectionOptions","Database","Existing","Fresh","Fresh","InnerNotification","add_captcha_levels","add_traffic_pattern","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","captcha_exists","clone","clone","clone_db","clone_into","clone_into","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","dev","disable_logging","email_exists","eq","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","heading","id","into","into","into","into","into","mark_notification_read","message","migrate","name","ping","pool","pool_options","prelude","received","record_confirm","record_fetch","record_solve","register","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","url","username_exists","vzip","vzip","vzip","vzip","vzip","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","ColumnDecode","ColumnIndexOutOfBounds","ColumnNotFound","Configuration","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Database","Database","Decode","Email","EmailTaken","Error","GetConnection","Io","Level","Login","MCDatabase","Migrate","Migrate","NameHash","Notification","NotificationNotFound","Pool","PoolClosed","PoolTimedOut","Protocol","Register","RowNotFound","Secret","SecretTaken","StatsUnixTimestamp","Tls","TrafficPattern","TrafficPatternNotFound","TypeNotFound","UpdateEmail","Username","UsernameTaken","WorkerCrashed","add_captcha_levels","add_traffic_pattern","as_database_error","async_trait","avg_traffic","borrow","borrow_mut","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","dev","difficulty_factor","duration","duration","email","email_exists","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into_database_error","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","prelude","provide","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","source","tests","to","to_string","try_from","try_into","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","index","index","len","source","type_name","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","async_trait","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","errors","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","prelude","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","tests","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","database_works","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","dev","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","async_trait","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","database_works","map_register_err","map_row_not_found_err","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","captcha_exists","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_db","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","config_fetches","config_id","confirms","connect","create_captcha","create_notification","default","default","default","default","default","default","default","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","difficulty_factor","duration","duration","email","email_exists","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into","into","into","into","into","into","into","into","into","into","into","into","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","provide","received","record_confirm","record_fetch","record_solve","register","secret","secret","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","solves","source","tests","to","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","database_works"],"q":["db_sqlx_maria","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::Error","","","","","db_sqlx_maria::dev::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::dev::errors","","","","","","","","","","","","db_sqlx_maria::dev::dev::ops","","","","","","","","","db_sqlx_maria::dev::dev::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::dev::tests","db_sqlx_maria::dev::errors","","","","","","","","","","","","db_sqlx_maria::dev::ops","","","","","","","","","db_sqlx_maria::dev::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::prelude::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::tests","db_sqlx_maria::errors","","db_sqlx_maria::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::prelude::ops","","","","","","","","","db_sqlx_maria::prelude::tests"],"d":["Use an existing database pool","Connect to database","","existing connection","","fresh connection","Represents notification","Add levels to captcha","Add traffic configuration","","","","","","","","","","","check if captcha exists","","","","","","","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","","","check if email exists","","Error-handling utilities","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","mark a notification read","message of the notification","","receiver name of the notification","ping DB","","","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","","check if username exists","","","","","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","Error occurred while decoding a value from a specific …","Column index was out of bounds.","No column found for the given name.","Error occurred while parsing a connection string.","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","","Error returned from the database.","Error occurred while decoding a value.","email as login","Email is taken","Represents all the ways a method can fail within SQLx.","Get database connection","Error communicating with the database backend.","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Pool::close was called while we were waiting in …","A Pool::acquire timed out due to connections not becoming …","Unexpected or invalid data encountered while communicating …","Data required to register a new user","No rows returned by a query that expected to return at …","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","Error occurred while attempting to establish a TLS …","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","Type in query doesn’t exist. Likely due to typo or …","data required to update them email of a user","username as login","Username is taken","A background worker has crashed.","Add levels to captcha","Add traffic configuration","","","average traffic of user’s website","","","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","Returns the argument unchanged.","","","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","","Test utilities","who is the notification addressed to?","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","Test utilities","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","test all database functions","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","test all database functions","map postgres errors to DBError types","map custom row not found error to DB error","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","","","","","","","","","","","","","","","","","","","","","","","","","","","traffic that bought the user’s website down; optional","check if captcha exists","","","","","","","","","","","","","clone DB","","","","","","","","","","","","","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","","","","","","","","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","","","","","","","","","","","","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","","","","","","","","","","","","","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","","","","","","","","","","","","","times at which the PoW was solved","","Test utilities","who is the notification addressed to?","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","","","","","","","","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","test all database functions"],"i":[0,0,0,11,0,11,0,1,1,39,11,40,1,8,39,11,40,1,8,1,1,8,1,1,8,11,1,1,1,1,1,1,0,40,1,8,0,1,1,1,8,39,11,40,1,8,1,1,1,1,1,1,1,1,1,1,8,8,39,11,40,1,8,1,8,1,8,1,1,40,0,8,1,1,1,1,1,8,39,11,40,1,8,39,11,40,1,8,39,11,40,1,8,1,1,1,1,1,1,40,1,39,11,40,1,8,33,0,0,0,33,33,0,24,24,24,24,41,0,0,0,33,0,0,0,24,24,17,33,0,0,24,0,0,0,0,24,0,0,33,42,24,24,24,0,24,0,33,0,24,0,33,24,0,17,33,24,9,9,24,0,6,24,24,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,0,35,12,37,19,9,0,9,9,9,24,24,24,24,24,24,24,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,24,24,12,37,9,36,13,44,36,22,0,6,9,0,24,36,9,9,9,9,19,38,34,24,0,13,24,24,24,24,9,9,9,9,9,9,19,22,23,9,35,24,45,46,45,46,47,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,0,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,0,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,0,6,9,0,36,9,9,9,9,19,38,34,0,13,9,9,9,9,9,9,19,22,23,9,35,33,0,33,33,0,33,0,33,33,33,33,33,41,0,0,0,0,42,42,41,44,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,0,33,0,33,33,0,33,0,33,33,33,33,33,41,0,0,0,0,42,42,41,44,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,0,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,0,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,0,0,0,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,6,9,19,22,17,23,34,35,36,13,6,12,37,38,43,19,22,17,23,34,35,36,13,6,12,37,38,34,37,34,42,9,9,34,36,13,6,12,37,38,9,9,9,9,12,37,19,22,17,23,34,35,36,13,6,12,37,38,35,12,37,19,9,19,22,17,23,34,35,36,13,6,12,37,38,9,9,9,33,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,36,13,6,12,37,38,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,33,19,22,17,23,34,35,36,13,6,12,37,38,12,37,9,36,13,44,36,22,0,6,9,33,36,9,9,9,9,19,38,19,22,17,23,34,35,36,13,6,12,37,38,34,33,0,13,19,22,17,23,34,35,36,13,6,12,37,38,33,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,9,9,9,9,9,9,19,22,23,9,35,33,19,22,17,23,34,35,36,13,6,12,37,38,41,0,0,0,0,42,42,41,44,0],"f":[0,0,0,0,0,0,0,[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2,6],[[5,[[4,[3]]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,[7,[2]],2],[[5,[[4,[3]]]]]],[1,1],[8,8],[[],[[4,[9,10]]]],[[]],[[]],[11,[[5,[[4,[3]]]]]],[[1,2,12],[[5,[[4,[3]]]]]],[[1,13],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],0,0,[[1,2],[[5,[[4,[3]]]]]],[[8,8],14],0,[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[8,15],16],[[]],[[]],[[]],[[]],[[]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,[7,[2]],2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,17],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],0,0,[[]],[[]],[[]],[[]],[[]],[[1,2,18],[[5,[[4,[3]]]]]],0,[1,[[5,[[4,[3]]]]]],0,[1,[[5,[[4,[3]]]]]],0,0,0,0,[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,19],[[5,[[4,[3]]]]]],[[]],[[]],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],21],[[],21],[[],21],[[],21],[[],21],[[1,2,2,2],[[5,[[4,[3]]]]]],[[1,2,12],[[5,[[4,[3]]]]]],[[1,22],[[5,[[4,[3]]]]]],[[1,23],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],0,[[1,2],[[5,[[4,[3]]]]]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],[24,[[7,[25]]]],0,0,[[]],[[]],0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[24,15],[[20,[26]]]],[[24,15],[[20,[26]]]],[27,24],[28,24],[[]],[29,24],[[],24],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[]],[24,[[7,[[4,[25,10]]]]]],0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[30],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,[24,[[7,[31]]]],0,0,[[],32],[[],20],[[],20],[[],21],[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],0,0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[19,12,6,13],3],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[19,12,6,13],3],[24,33],[[24,33],33],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[19,19],[22,22],[17,17],[23,23],[34,34],[35,35],[36,36],[13,13],[6,6],[12,12],[37,37],[38,38],[[],[[4,[9,10]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[],34],[[],36],[[],13],[[],6],[[],12],[[],37],[[],38],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,[[],[[20,[19]]]],[[],[[20,[22]]]],[[],[[20,[17]]]],[[],[[20,[23]]]],[[],[[20,[34]]]],[[],[[20,[35]]]],[[],[[20,[36]]]],[[],[[20,[13]]]],[[],[[20,[6]]]],[[],[[20,[12]]]],[[],[[20,[37]]]],[[],[[20,[38]]]],0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[19,19],14],[[22,22],14],[[17,17],14],[[23,23],14],[[34,34],14],[[35,35],14],[[36,36],14],[[13,13],14],[[6,6],14],[[12,12],14],[[37,37],14],[[38,38],14],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[33,15],[[20,[26]]]],[[33,15],[[20,[26]]]],[[19,15],[[20,[26]]]],[[22,15],[[20,[26]]]],[[17,15],[[20,[26]]]],[[23,15],[[20,[26]]]],[[34,15],[[20,[26]]]],[[35,15],[[20,[26]]]],[[36,15],[[20,[26]]]],[[13,15],[[20,[26]]]],[[6,15],[[20,[26]]]],[[12,15],[[20,[26]]]],[[37,15],[[20,[26]]]],[[38,15],[[20,[26]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[8,36],[[]],[[]],[[]],[[]],[[]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[30],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,[19,20],[22,20],[17,20],[23,20],[34,20],[35,20],[36,20],[13,20],[6,20],[12,20],[37,20],[38,20],0,[33,[[7,[31]]]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],32],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[19,12,6,13],3]],"p":[[3,"Database"],[15,"str"],[8,"Future"],[3,"Box"],[3,"Pin"],[3,"TrafficPattern"],[4,"Option"],[3,"InnerNotification"],[8,"MCDatabase"],[3,"Global"],[4,"ConnectionOptions"],[3,"CreateCaptcha"],[3,"AddNotification"],[15,"bool"],[3,"Formatter"],[6,"Result"],[4,"Login"],[15,"i32"],[3,"Register"],[4,"Result"],[3,"TypeId"],[3,"UpdateEmail"],[3,"NameHash"],[4,"Error"],[8,"DatabaseError"],[3,"Error"],[3,"InvalidDNSNameError"],[3,"Error"],[4,"MigrateError"],[3,"Demand"],[8,"Error"],[3,"String"],[4,"DBError"],[3,"StatsUnixTimestamp"],[3,"Level"],[3,"Notification"],[3,"Captcha"],[3,"Secret"],[3,"Conn"],[3,"Fresh"],[8,"GetConnection"],[8,"Connect"],[8,"CloneSPDatabase"],[8,"Migrate"],[13,"ColumnIndexOutOfBounds"],[13,"ColumnDecode"],[13,"TypeNotFound"]]},\ -"db_sqlx_postgres":{"doc":"","t":[3,4,3,13,3,13,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,12,11,11,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,12,11,12,11,12,12,0,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,13,3,6,3,13,13,8,13,13,13,13,16,8,3,4,13,8,6,2,13,13,13,13,4,8,13,3,4,8,8,13,3,3,13,16,13,13,13,3,13,3,13,3,13,3,13,13,3,13,13,13,10,10,11,23,12,11,11,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,0,12,12,12,12,10,0,10,10,10,11,11,11,11,11,11,11,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,11,11,12,12,10,12,12,10,12,12,0,12,10,0,11,12,10,10,10,10,12,12,12,11,0,12,11,11,11,11,10,10,10,10,10,10,12,12,12,10,12,11,12,12,12,12,12,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,23,12,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,12,12,12,12,10,0,10,10,10,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,10,12,12,10,12,12,0,12,10,0,12,10,10,10,10,12,12,12,0,12,10,10,10,10,10,10,12,12,12,10,12,13,6,13,13,4,13,6,13,13,13,13,13,16,8,8,8,8,16,10,10,10,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,12,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,12,12,12,12,10,10,10,10,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,10,12,12,10,12,12,12,10,12,10,10,10,10,12,12,12,12,10,10,10,10,10,10,12,12,12,10,12,5,13,6,13,13,4,13,6,13,13,13,13,13,16,8,8,8,8,16,10,10,10,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,12,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,0,12,12,12,12,10,10,10,10,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,10,12,12,10,12,12,12,10,12,10,10,10,10,12,12,12,12,10,10,10,10,10,10,12,12,12,10,12,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,23,12,12,10,10,12,12,12,10,10,10,10,10,10,10,12,12,12,12,12,12,10,10,10,10,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,10,12,12,10,12,12,12,10,12,10,10,10,10,12,12,12,12,10,10,10,10,10,10,12,12,12,10,12,5,5,5,13,3,6,3,13,13,8,16,8,3,4,13,8,6,13,13,8,3,4,8,8,3,3,13,16,3,3,13,3,3,13,3,13,13,10,10,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,10,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,10,10,10,11,11,11,11,11,11,11,10,10,10,10,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,10,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,10,12,12,10,12,12,0,12,10,11,12,10,10,10,10,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,11,0,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,10,10,10,10,10,12,12,12,10,12,11,11,11,11,11,11,11,11,11,11,11,11,11,16,8,8,8,8,16,10,10,10,5],"n":["Conn","ConnectionOptions","Database","Existing","Fresh","Fresh","InnerNotification","add_captcha_levels","add_traffic_pattern","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","captcha_exists","clone","clone","clone_db","clone_into","clone_into","connect","create_captcha","create_notification","default","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","dev","disable_logging","email_exists","eq","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","heading","id","into","into","into","into","into","mark_notification_read","message","migrate","name","ping","pool","pool_options","prelude","received","record_confirm","record_fetch","record_solve","register","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","url","username_exists","vzip","vzip","vzip","vzip","vzip","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","ColumnDecode","ColumnIndexOutOfBounds","ColumnNotFound","Configuration","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Database","Database","Decode","Email","EmailTaken","Error","GetConnection","Io","Level","Login","MCDatabase","Migrate","Migrate","NameHash","Notification","NotificationNotFound","Pool","PoolClosed","PoolTimedOut","Protocol","Register","RowNotFound","Secret","SecretTaken","StatsUnixTimestamp","Tls","TrafficPattern","TrafficPatternNotFound","TypeNotFound","UpdateEmail","Username","UsernameTaken","WorkerCrashed","add_captcha_levels","add_traffic_pattern","as_database_error","async_trait","avg_traffic","borrow","borrow_mut","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","dev","difficulty_factor","duration","duration","email","email_exists","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into_database_error","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","prelude","provide","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","source","tests","to","to_string","try_from","try_into","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","index","index","len","source","type_name","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","async_trait","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","errors","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","prelude","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","tests","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","database_works","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","dev","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","async_trait","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","database_works","map_register_err","map_row_not_found_err","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","captcha_exists","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_db","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","config_fetches","config_id","confirms","connect","create_captcha","create_notification","default","default","default","default","default","default","default","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","difficulty_factor","duration","duration","email","email_exists","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into","into","into","into","into","into","into","into","into","into","into","into","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","provide","received","record_confirm","record_fetch","record_solve","register","secret","secret","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","solves","source","tests","to","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","database_works"],"q":["db_sqlx_postgres","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::Error","","","","","db_sqlx_postgres::dev::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::dev::errors","","","","","","","","","","","","db_sqlx_postgres::dev::dev::ops","","","","","","","","","db_sqlx_postgres::dev::dev::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::dev::tests","db_sqlx_postgres::dev::errors","","","","","","","","","","","","db_sqlx_postgres::dev::ops","","","","","","","","","db_sqlx_postgres::dev::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::prelude::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::tests","db_sqlx_postgres::errors","","db_sqlx_postgres::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::prelude::ops","","","","","","","","","db_sqlx_postgres::prelude::tests"],"d":["Use an existing database pool","Connect to database","","existing connection","","fresh connection","Represents notification","Add levels to captcha","Add traffic configuration","","","","","","","","","","","check if captcha exists","","","","","","","create new captcha","create new notification","","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","","","check if email exists","","Error-handling utilities","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","mark a notification read","message of the notification","","receiver name of the notification","ping DB","","","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","","check if username exists","","","","","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","Error occurred while decoding a value from a specific …","Column index was out of bounds.","No column found for the given name.","Error occurred while parsing a connection string.","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","","Error returned from the database.","Error occurred while decoding a value.","email as login","Email is taken","Represents all the ways a method can fail within SQLx.","Get database connection","Error communicating with the database backend.","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Pool::close was called while we were waiting in …","A Pool::acquire timed out due to connections not becoming …","Unexpected or invalid data encountered while communicating …","Data required to register a new user","No rows returned by a query that expected to return at …","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","Error occurred while attempting to establish a TLS …","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","Type in query doesn’t exist. Likely due to typo or …","data required to update them email of a user","username as login","Username is taken","A background worker has crashed.","Add levels to captcha","Add traffic configuration","","","average traffic of user’s website","","","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","Returns the argument unchanged.","","","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","","Test utilities","who is the notification addressed to?","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","Test utilities","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","test all database functions","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","test all database functions","map postgres errors to DBError types","map custom row not found error to DB error","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","","","","","","","","","","","","","","","","","","","","","","","","","","","traffic that bought the user’s website down; optional","check if captcha exists","","","","","","","","","","","","","clone DB","","","","","","","","","","","","","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","","","","","","","","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","","","","","","","","","","","","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","","","","","","","","","","","","","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","","","","","","","","","","","","","times at which the PoW was solved","","Test utilities","who is the notification addressed to?","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","","","","","","","","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","test all database functions"],"i":[0,0,0,11,0,11,0,1,1,39,11,40,1,8,39,11,40,1,8,1,1,8,1,1,8,11,1,1,8,1,1,1,1,0,40,1,8,0,1,1,1,8,39,11,40,1,8,1,1,1,1,1,1,1,1,1,1,8,8,39,11,40,1,8,1,8,1,8,1,1,40,0,8,1,1,1,1,1,8,39,11,40,1,8,39,11,40,1,8,39,11,40,1,8,1,1,1,1,1,1,40,1,39,11,40,1,8,33,0,0,0,33,33,0,24,24,24,24,41,0,0,0,33,0,0,0,24,24,17,33,0,0,24,0,0,0,0,24,0,0,33,42,24,24,24,0,24,0,33,0,24,0,33,24,0,17,33,24,9,9,24,0,6,24,24,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,0,35,12,37,19,9,0,9,9,9,24,24,24,24,24,24,24,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,24,24,12,37,9,36,13,44,36,22,0,6,9,0,24,36,9,9,9,9,19,38,34,24,0,13,24,24,24,24,9,9,9,9,9,9,19,22,23,9,35,24,45,46,45,46,47,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,0,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,0,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,0,6,9,0,36,9,9,9,9,19,38,34,0,13,9,9,9,9,9,9,19,22,23,9,35,33,0,33,33,0,33,0,33,33,33,33,33,41,0,0,0,0,42,42,41,44,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,0,33,0,33,33,0,33,0,33,33,33,33,33,41,0,0,0,0,42,42,41,44,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,0,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,0,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,0,0,0,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,6,9,19,22,17,23,34,35,36,13,6,12,37,38,43,19,22,17,23,34,35,36,13,6,12,37,38,34,37,34,42,9,9,34,36,13,6,12,37,38,9,9,9,9,12,37,19,22,17,23,34,35,36,13,6,12,37,38,35,12,37,19,9,19,22,17,23,34,35,36,13,6,12,37,38,9,9,9,33,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,36,13,6,12,37,38,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,33,19,22,17,23,34,35,36,13,6,12,37,38,12,37,9,36,13,44,36,22,0,6,9,33,36,9,9,9,9,19,38,19,22,17,23,34,35,36,13,6,12,37,38,34,33,0,13,19,22,17,23,34,35,36,13,6,12,37,38,33,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,9,9,9,9,9,9,19,22,23,9,35,33,19,22,17,23,34,35,36,13,6,12,37,38,41,0,0,0,0,42,42,41,44,0],"f":[0,0,0,0,0,0,0,[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2,6],[[5,[[4,[3]]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,[7,[2]],2],[[5,[[4,[3]]]]]],[1,1],[8,8],[[],[[4,[9,10]]]],[[]],[[]],[11,[[5,[[4,[3]]]]]],[[1,2,12],[[5,[[4,[3]]]]]],[[1,13],[[5,[[4,[3]]]]]],[[],8],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],0,0,[[1,2],[[5,[[4,[3]]]]]],[[8,8],14],0,[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[8,15],16],[[]],[[]],[[]],[[]],[[]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,[7,[2]],2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,17],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],0,0,[[]],[[]],[[]],[[]],[[]],[[1,2,18],[[5,[[4,[3]]]]]],0,[1,[[5,[[4,[3]]]]]],0,[1,[[5,[[4,[3]]]]]],0,0,0,0,[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,19],[[5,[[4,[3]]]]]],[[]],[[]],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],21],[[],21],[[],21],[[],21],[[],21],[[1,2,2,2],[[5,[[4,[3]]]]]],[[1,2,12],[[5,[[4,[3]]]]]],[[1,22],[[5,[[4,[3]]]]]],[[1,23],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],0,[[1,2],[[5,[[4,[3]]]]]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],[24,[[7,[25]]]],0,0,[[]],[[]],0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[24,15],[[20,[26]]]],[[24,15],[[20,[26]]]],[27,24],[28,24],[[]],[[],24],[29,24],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[]],[24,[[7,[[4,[25,10]]]]]],0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[30],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,[24,[[7,[31]]]],0,0,[[],32],[[],20],[[],20],[[],21],[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],0,0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[19,12,6,13],3],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[19,12,6,13],3],[24,33],[[24,33],33],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[19,19],[22,22],[17,17],[23,23],[34,34],[35,35],[36,36],[13,13],[6,6],[12,12],[37,37],[38,38],[[],[[4,[9,10]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[],34],[[],36],[[],13],[[],6],[[],12],[[],37],[[],38],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,[[],[[20,[19]]]],[[],[[20,[22]]]],[[],[[20,[17]]]],[[],[[20,[23]]]],[[],[[20,[34]]]],[[],[[20,[35]]]],[[],[[20,[36]]]],[[],[[20,[13]]]],[[],[[20,[6]]]],[[],[[20,[12]]]],[[],[[20,[37]]]],[[],[[20,[38]]]],0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[19,19],14],[[22,22],14],[[17,17],14],[[23,23],14],[[34,34],14],[[35,35],14],[[36,36],14],[[13,13],14],[[6,6],14],[[12,12],14],[[37,37],14],[[38,38],14],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[33,15],[[20,[26]]]],[[33,15],[[20,[26]]]],[[19,15],[[20,[26]]]],[[22,15],[[20,[26]]]],[[17,15],[[20,[26]]]],[[23,15],[[20,[26]]]],[[34,15],[[20,[26]]]],[[35,15],[[20,[26]]]],[[36,15],[[20,[26]]]],[[13,15],[[20,[26]]]],[[6,15],[[20,[26]]]],[[12,15],[[20,[26]]]],[[37,15],[[20,[26]]]],[[38,15],[[20,[26]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[8,36],[[]],[[]],[[]],[[]],[[]],[[]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[30],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,[19,20],[22,20],[17,20],[23,20],[34,20],[35,20],[36,20],[13,20],[6,20],[12,20],[37,20],[38,20],0,[33,[[7,[31]]]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],32],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[19,12,6,13],3]],"p":[[3,"Database"],[15,"str"],[8,"Future"],[3,"Box"],[3,"Pin"],[3,"TrafficPattern"],[4,"Option"],[3,"InnerNotification"],[8,"MCDatabase"],[3,"Global"],[4,"ConnectionOptions"],[3,"CreateCaptcha"],[3,"AddNotification"],[15,"bool"],[3,"Formatter"],[6,"Result"],[4,"Login"],[15,"i32"],[3,"Register"],[4,"Result"],[3,"TypeId"],[3,"UpdateEmail"],[3,"NameHash"],[4,"Error"],[8,"DatabaseError"],[3,"Error"],[3,"Error"],[3,"InvalidDNSNameError"],[4,"MigrateError"],[3,"Demand"],[8,"Error"],[3,"String"],[4,"DBError"],[3,"StatsUnixTimestamp"],[3,"Level"],[3,"Notification"],[3,"Captcha"],[3,"Secret"],[3,"Conn"],[3,"Fresh"],[8,"GetConnection"],[8,"Connect"],[8,"CloneSPDatabase"],[8,"Migrate"],[13,"ColumnIndexOutOfBounds"],[13,"ColumnDecode"],[13,"TypeNotFound"]]},\ -"mcaptcha":{"doc":"","t":[6,6,3,17,17,3,3,17,3,3,3,3,17,3,3,3,3,3,3,3,17,17,17,17,3,3,3,3,17,3,3,17,17,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,0,12,0,0,12,12,0,11,11,11,11,11,11,11,11,0,0,0,11,11,11,11,11,11,11,11,5,5,11,11,11,11,11,11,11,11,12,5,0,12,0,12,0,12,12,12,0,0,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,0,2,3,0,0,11,11,11,11,5,11,0,0,0,0,12,0,5,11,11,11,11,3,3,2,11,11,11,11,11,11,11,11,0,11,11,0,12,11,11,11,11,11,11,2,0,0,0,11,11,5,11,11,11,11,11,11,11,11,0,12,11,11,11,11,3,11,11,11,0,5,11,11,11,11,5,3,11,11,11,11,11,11,11,11,11,12,3,11,11,11,11,11,11,11,11,11,11,5,3,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,12,12,12,11,11,5,11,11,11,11,11,11,11,11,11,11,5,3,11,11,11,3,11,11,12,12,11,12,11,11,11,11,11,12,12,12,12,12,11,11,11,11,11,11,11,3,11,11,11,11,5,11,11,11,11,11,11,3,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,11,5,3,11,11,11,11,11,11,11,11,11,11,12,3,11,11,11,5,11,11,11,11,11,11,11,11,11,11,11,11,3,3,11,11,11,0,0,5,3,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,12,12,11,12,11,11,11,11,3,3,3,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,12,11,11,11,11,11,11,11,11,11,12,5,12,12,12,5,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,0,0,0,0,5,0,5,0,0,3,3,11,11,11,11,11,11,11,11,3,12,11,11,12,11,11,11,11,11,11,11,12,12,12,11,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,5,3,11,11,11,11,11,11,3,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,11,3,3,12,11,11,11,11,11,11,11,11,12,5,11,11,11,11,3,11,12,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,0,11,11,5,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,3,11,11,12,11,11,11,11,11,11,12,11,3,3,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,3,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,3,11,11,12,12,12,11,12,11,11,12,11,11,11,12,12,11,3,11,11,11,11,11,11,11,11,11,11,3,11,11,12,11,0,11,11,11,11,11,11,11,11,11,11,3,11,11,11,12,11,11,11,11,11,11,3,11,11,11,11,11,11,12,11,12,11,11,11,11,11,11,12,12,11,11,0,11,11,11,11,11,11,11,11,11,11,3,3,11,11,11,5,3,3,4,3,3,4,13,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,3,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,0,11,11,5,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,3,11,11,12,11,12,11,11,11,11,11,11,0,0,0,0,5,3,3,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,12,11,11,12,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,3,12,12,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,12,11,11,3,11,11,11,11,11,11,11,11,11,11,3,12,11,11,11,12,11,12,11,11,11,11,11,2,0,0,5,0,0,3,11,11,11,11,11,11,11,11,11,11,3,5,11,11,12,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,12,11,11,14,12,11,11,11,11,12,11,12,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,3,11,11,3,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,12,11,11,11,11,12,11,11,11,11,11,11,11,11,11,12,3,11,11,11,17,3,12,12,11,11,12,11,11,11,12,11,12,12,11,11,11,11,3,13,6,13,4,11,11,11,11,11,12,12,12,14,14,11,11,11,11,11,11,11,12,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,17,3,17,17,17,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,6,0,0,5,5,17,17,3,11,11,11,11,11,12,11,11,11,11,11,11,11,11,3,17,17,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,5,3,11,11,11,11,11,11,11,11,11,0,5,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,12,11,11,11,12,11,11,12,11,11,11,11,0,3,17,11,11,11,11,11,11,11,11,11,11,11,11,11,5,12,11,13,13,13,13,13,13,3,13,3,13,13,13,13,4,6,13,13,13,13,4,13,6,3,13,13,13,13,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,17,0,0,5,0,0,5,0,0,0,0,5,0,3,3,17,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,17,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,12,12,11,11,11,11,11,17,3,11,11,11,11,12,11,11,11,11,11,11,11,11,11,12,11,17,3,3,17,3,12,12,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,12,11,11,11,11,0,5,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,12,11,11,11,11,11,12,11,3,17,11,11,11,11,11,11,11,11,11,11,11,0,3,11,11,11,0,5,0,0,12,11,11,11,11,11,11,11,11,11,3,3,17,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,12,12,12,11,3,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,12,11,11,12,12,12,11,11,11,11,3,17,11,11,11,11,11,11,11,11,11,11,3,12,11,11,11,11,11,11,11,11,11,11,11,11,11,0,12,5,3,11,11,11,11,11,11,11,11,11,11,11,11,11,3,12,11,11,11,11,3,11,11,12,11,11,12,11,11,11,11,11,12,11,0,0,0,0,0,5,0,3,3,3,3,17,12,12,3,12,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,3,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,3,3,17,3,11,11,11,11,11,11,11,11,11,11,11,11,12,3,12,11,11,11,11,11,11,11,11,12,12,12,12,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,17,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,12,11,11,11,11,11,11,11,11,11,3,12,12,11,11,12,12,12,11,11,11,11,11,11,11,12,11,11,11,11,12,11,3,17,11,11,11,11,11,11,12,11,11,11,11,12,12,12,11,11,11,11,12,11,11,11,11,11,11,11,3,11,11,17,3,12,12,11,11,12,12,11,11,11,12,11,11,12,12,12,12,12,11,11,11,11,3,3,12,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,12,11,11,11,5,3,4,3,3,13,13,3,3,3,3,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,5,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,12,11,11,11,11,11,11,11,11,11,12,11,12,12,12,12,12,12,12,12,12,12,12,12,11,12,5,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,11,11,11,11,11,11,11,11,2,0,5,0,3,11,11,12,11,11,11,11,11,11,11,11,3,3,0,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,5,5,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,3,3,3,3,6,3,3,3,3,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,8,3,3,8,11,11,11,11,11,11,11,11,11,11,11,11,10,12,12,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,10,11,11,10,11,11,10,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,17,17,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,5,3,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,12,11],"n":["AppData","ArcData","BAR_CHART","CACHE_AGE","COMPILED_DATE","CREDIT_CARD","CSS","DOCS","DOCS_ICON","Data","FILES","GITHUB","GIT_COMMIT_HASH","HELP_CIRCLE","HOME","JS","KEY","MCAPTCHA_TRANS_ICON","MESSAGE","MOBILE_CSS","PAGES","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","SETTINGS_ICON","SOURCE_FILES_OF_INSTANCE","Settings","V1_API_ROUTES","VERIFICATIN_WIDGET_CSS","VERIFICATIN_WIDGET_JS","VERSION","WIDGET_ROUTES","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","allow_demo","allow_registration","api","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","captcha","captcha","commercial","creds","data","database","date","db","db","debug","demo","deref","deref","deref","deref","deref","deref","deref","deref","docs","email","errors","from","from","from","from","from","from","from","from","get_identity_service","get_json_err","into","into","into","into","into","into","into","into","mailer","main","pages","redis","routes","server","settings","settings","smtp","source_code","static_assets","stats","stats","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","widget","v1","ROUTES","RedirectQuery","account","auth","borrow","borrow_mut","deserialize","from","get_middleware","into","mcaptcha","meta","notifications","pow","redirect_to","routes","services","try_from","try_into","type_id","vzip","AccountCheckPayload","AccountCheckResp","auth","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","delete","deserialize","deserialize","email","exists","fmt","fmt","from","from","into","into","mcaptcha","password","routes","secret","serialize","serialize","services","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","username","val","vzip","vzip","borrow","borrow_mut","delete_account","from","into","register","runners","services","try_from","try_into","type_id","vzip","delete_user","Email","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deserialize","email","email_exists","fmt","from","from","from","into","into","into","register","register","serialize","services","set_email","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","ChangePasswordReqest","UpdatePassword","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","confirm_new_password","confirm_new_password","deserialize","fmt","from","from","from","from","into","into","into","new_password","new_password","password","register","serialize","services","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","update_password_runner","update_user_password","vzip","vzip","vzip","Account","borrow","borrow_mut","delete","email_exists","from","get_secret","into","new","try_from","try_into","type_id","update_email","update_password","update_secret","update_username","username_exists","vzip","borrow","borrow","borrow_mut","borrow_mut","from","from","get_secret","into","into","register","register","services","try_from","try_from","try_into","try_into","type_id","type_id","update_user_secret","vzip","vzip","Username","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deserialize","fmt","from","from","from","into","into","into","register","register","runners","serialize","services","set_username","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","username","username_exists","vzip","vzip","vzip","username_exists","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","from","from","from","into","into","into","login","register","register","register","register","routes","runners","services","signout","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Auth","borrow","borrow_mut","from","get_login_route","into","login","logout","new","register","try_from","try_into","type_id","vzip","Login","Password","Register","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","confirm_password","deserialize","deserialize","deserialize","email","fmt","fmt","fmt","from","from","from","into","into","into","login","login_runner","password","password","password","register_runner","serialize","serialize","serialize","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","username","vzip","vzip","vzip","create","delete","easy","get","get_random","routes","services","stats","update","CreateCaptcha","MCaptchaDetails","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","create","description","deserialize","deserialize","duration","fmt","from","from","from","into","into","into","key","levels","name","register","runner","serialize","serialize","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","create","DeleteCaptcha","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","delete","deserialize","fmt","from","from","into","into","key","password","register","serialize","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","TrafficPatternRequest","UpdateTrafficPattern","avg_traffic","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","calculate","clone","clone","clone_into","clone_into","create","default","description","deserialize","deserialize","fmt","fmt","from","from","from","from","into","into","into","into","key","pattern","peak_sustainable_traffic","register","register","routes","serialize","serialize","services","to_owned","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","update","vzip","vzip","vzip","vzip","Easy","borrow","borrow_mut","create","from","into","new","try_from","try_into","type_id","update","vzip","I32Levels","Levels","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","deserialize","deserialize","difficulty_factor","fmt","fmt","from","from","from","get_captcha","into","into","into","levels","register","serialize","serialize","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","visitor_threshold","vzip","vzip","vzip","Captcha","borrow","borrow_mut","create","delete","easy","from","get","into","new","stats","try_from","try_into","type_id","update","update_key","vzip","StatsPayload","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","deserialize","fmt","from","from","get","into","into","key","register","routes","serialize","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Stats","borrow","borrow_mut","from","get","into","new","try_from","try_into","type_id","vzip","UpdateCaptcha","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","description","deserialize","duration","from","from","from","into","into","into","key","levels","register","register","runner","serialize","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","update_captcha","update_key","vzip","vzip","vzip","update_captcha","BuildDetails","BuildDetailsBuilder","BuildDetailsBuilderError","Health","HealthBuilder","HealthBuilderError","UninitializedField","UninitializedField","ValidationError","ValidationError","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","build","build_details","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","create_empty","create_empty","db","db","db","default","default","deserialize","deserialize","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","git_commit_hash","git_commit_hash","git_commit_hash","health","into","into","into","into","into","into","into","into","is_redis","provide","provide","redis","redis","redis","register","register","routes","serialize","serialize","services","to_owned","to_owned","to_owned","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","version","version","version","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Meta","borrow","borrow_mut","build_details","from","health","into","new","try_from","try_into","type_id","vzip","add","get","mark_read","routes","services","AddNotificationRequest","add_notification","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","default","deserialize","eq","fmt","from","from","heading","into","into","message","register","serialize","to","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","NotificationResp","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","default","deserialize","eq","from","from","from","from_notifications","get_notification","heading","id","into","into","message","name","received","register","serialize","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","MarkReadReq","borrow","borrow","borrow_mut","borrow_mut","deserialize","from","from","id","into","into","mark_read","register","serialize","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Notifications","add","borrow","borrow_mut","from","get","into","mark_read","new","try_from","try_into","type_id","vzip","I32Levels","get_config","routes","services","verify_pow","verify_token","GetConfigPayload","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","deserialize","fmt","from","from","get_config","init_mcaptcha","into","into","key","register","serialize","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","PoW","borrow","borrow_mut","from","get_config","get_config","into","new","rm_scope","scope","try_from","try_into","type_id","validate_captcha_token","validate_captcha_token","verify_pow","verify_pow","vzip","ValidationToken","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","deserialize","fmt","from","from","into","into","register","serialize","to_owned","token","try_from","try_from","try_into","try_into","type_id","type_id","verify_pow","vzip","vzip","CaptchaValidateResp","VerifyCaptchaResultPayload","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","deserialize","deserialize","fmt","fmt","from","from","from","into","into","into","key","register","secret","serialize","serialize","to_owned","to_owned","token","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","valid","validate_captcha_token","vzip","vzip","vzip","ROUTES","Routes","account","auth","borrow","borrow_mut","captcha","from","get_login_route","into","meta","new","notifications","pow","try_from","try_into","type_id","vzip","Data","Embedded","Mailer","Redis","SystemGroup","add_site","borrow","borrow","borrow_mut","borrow_mut","captcha","creds","db","enum_system_actor","enum_system_wrapper","from","from","get_creds","get_mailer","get_pow","into","into","mailer","new","new","new_system","remove","rename","settings","stats","try_from","try_from","try_into","try_into","type_id","type_id","validate_verification_tokens","verify_pow","vzip","vzip","DAY","Date","HOUR","MINUTE","WEEK","borrow","borrow_mut","clone","clone_into","date","fmt","format","from","into","new","print_date","time","to_owned","try_from","try_into","type_id","vzip","BoxDB","maria","pg","get_data","get_data","DEMO_PASSWORD","DEMO_USER","DemoUser","abort","borrow","borrow_mut","delete_demo_user","from","handle","into","register_demo_user","run","spawn","try_from","try_into","type_id","vzip","Asset","DOCS","OPEN_API_SPEC","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","dist","from","from","from","from","get","get","handle_embedded_file","index","into","into","into","into","iter","iter","register","register","register","routes","services","spec","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Docs","assets","borrow","borrow_mut","from","home","into","new","spec","try_from","try_into","type_id","vzip","verification","IndexPage","PAGE","borrow","borrow_mut","clone","clone_into","from","into","new","render_once","render_once_to","to_owned","try_from","try_into","type_id","verification","verification_link","vzip","AccountNotFound","BlacklistError","CaptchaError","CaptchaNotFound","ClosedForRegistration","DBError","DBErrorWrapper","EmailTaken","ErrorToResponse","InternalServerError","InternalServerError","NotAUrl","NotAnEmail","PageError","PageResult","PasswordTooLong","PasswordTooShort","PasswordsDontMatch","ProfainityError","ServiceError","ServiceError","ServiceResult","SmtpErrorWrapper","TokenNotFound","TrafficPatternNotFound","UnableToSendEmail","UsernameCaseMappedError","UsernameNotFound","UsernameTaken","WrongPassword","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","deserialize","eq","eq","eq","eq","error","error_response","error_response","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","provide","provide","provide","provide","serialize","source","source","source","source","status_code","status_code","to_string","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","NAME","auth","errors","get_middleware","panel","routes","services","sitemap","login","register","routes","services","sudo","INDEX","IndexPage","PAGE","__private_field","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","default","deref","from","from","from","into","into","into","login","register","render_once","render_once_to","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","INDEX","IndexPage","PAGE","__private_field","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","default","deref","from","from","from","into","into","into","join","register","render_once","render_once_to","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Auth","borrow","borrow_mut","from","get_login_route","get_sitemap","into","join","login","new","try_from","try_into","type_id","vzip","PAGE","SudoPage","borrow","borrow_mut","clone","clone_into","data","from","into","new","render_once","render_once_to","to_owned","try_from","try_into","type_id","url","vzip","ERROR_ROUTE","ErrorPage","INTERNAL_SERVER_ERROR_BODY","PAGE","UNKNOWN_ERROR_BODY","__private_field","__private_field","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deref","deref","error","from","from","from","from","into","into","into","into","message","new","register","render_once","render_once_to","routes","services","title","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Errors","borrow","borrow_mut","from","internal_server_error","into","new","try_from","try_into","type_id","unknown_error","vzip","IndexPage","PAGE","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","from","from","into","into","new","notifications","panel","register","render_once","render_once_to","routes","services","settings","sitekey","sitekeys","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","IndexPage","Notification","PAGE","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","from","from","from","from","heading","id","into","into","into","message","n","name","new","notifications","print_date","received","register","render_once","render_once_to","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Panel","borrow","borrow_mut","from","get_sitemap","home","into","new","notifications","settings","sitekey","try_from","try_into","type_id","vzip","IndexPage","PAGE","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","delete_account","email","from","from","from","from","into","into","into","into","register","register","register","render_once","render_once_to","routes","secret","services","settings","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","update_secret","username","vzip","vzip","vzip","vzip","Settings","borrow","borrow_mut","delete_account","from","get_sitemap","home","into","new","try_from","try_into","type_id","update_secret","vzip","add","delete","edit","list","routes","services","view","ADVANCE_INDEX","AdvanceIndexPage","EASY_INDEX","EasyIndexPage","PAGE","__private_field","__private_field","advance","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","clone","clone","clone_into","clone_into","default","default","deref","deref","easy","form_description","form_description","form_duration","form_title","form_title","from","from","from","from","from","from","into","into","into","into","into","into","levels","peak_sustainable_traffic","register","register","render_once","render_once","render_once_to","render_once_to","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","borrow","borrow_mut","delete_sitekey","from","into","register","try_from","try_into","type_id","vzip","AdvanceEditPage","EasyEditPage","PAGE","advance","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","duration","easy","form_title","from","from","from","from","into","into","into","into","key","key","levels","name","new","new","pattern","register","register","render_once","render_once","render_once_to","render_once_to","to_owned","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","IndexPage","PAGE","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","from","from","into","into","list_sitekeys","new","register","render_once","render_once_to","sitekeys","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Sitekey","add_advance","add_easy","borrow","borrow_mut","delete","edit_advance","edit_easy","from","get_delete","get_edit_advance","get_edit_easy","get_sitemap","get_view","into","list","new","try_from","try_into","type_id","view","vzip","IndexPage","PAGE","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","duration","from","from","into","into","key","levels","name","new","register","render_once","render_once_to","stats","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","view_sitekey","vzip","vzip","ROUTES","Routes","about","auth","borrow","borrow_mut","donate","errors","from","get_login_route","get_sitemap","home","into","new","panel","privacy","security","sitemap","thanks","try_from","try_into","type_id","vzip","INDEX","IndexPage","__private_field","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","default","deref","domain","from","from","from","into","into","into","register","render_once","render_once_to","sitemap","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","urls","vzip","vzip","vzip","services","Captcha","DBType","Database","DefaultDifficultyStrategy","Maria","Postgres","Redis","Server","Settings","Smtp","allow_demo","allow_registration","avg_traffic_difficulty","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic_difficulty","captcha","check_url","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","commercial","cookie_secret","database","database_type","debug","default_difficulty_strategy","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","domain","duration","enable_stats","eq","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from_url","gc","get_ip","into","into","into","into","into","into","into","into","ip","new","password","peak_sustainable_traffic_difficulty","pool","pool","port","port","proxy_has_tls","queue_length","redis","reply","runners","salt","serialize","server","set_database_url","smtp","source_code","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","url","url","url","url_prefix","username","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","FileMap","filemap","services","static_files","FileMap","borrow","borrow_mut","files","from","get","into","new","try_from","try_into","type_id","vzip","Asset","Favicons","assets","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","favicons","from","from","from","from","get","get","get","get","handle_assets","handle_favicons","into","into","into","into","iter","iter","iter","iter","register","register","static_files","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","BAR_CHART","CREDIT_CARD","DOCS_ICON","GITHUB","HELP_CIRCLE","HOME","Img","KEY","MCAPTCHA_TRANS_ICON","MESSAGE","SETTINGS_ICON","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","CaptchaStats","CloneStats","Dummy","Real","Stats","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","clone_stats","config_fetches","confirms","default","default","default","deserialize","eq","eq","eq","fetch","fetch","fetch","fmt","fmt","fmt","from","from","from","into","into","into","record_confirm","record_confirm","record_confirm","record_fetch","record_fetch","record_fetch","record_solve","record_solve","record_solve","serialize","solves","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","INDEX_PAGE","IndexPage","PAGE","WIDGET_ROUTES","__private_field","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deref","from","from","from","into","into","into","new","register","render_once","render_once_to","routes","services","show_widget","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Widget","borrow","borrow_mut","from","into","new","try_from","try_into","type_id","verification_widget","vzip"],"q":["mcaptcha","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api","mcaptcha::api::v1","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::delete","","","","","","","","","","","","mcaptcha::api::v1::account::delete::runners","mcaptcha::api::v1::account::email","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::password","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::routes","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::secret","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::username","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::username::runners","mcaptcha::api::v1::auth","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::auth::routes","","","","","","","","","","","","","","mcaptcha::api::v1::auth::runners","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha","","","","","","","","","mcaptcha::api::v1::mcaptcha::create","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::create::runner","mcaptcha::api::v1::mcaptcha::delete","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::easy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::easy::routes","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::get","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::routes","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::stats","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::stats::routes","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::update","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::update::runner","mcaptcha::api::v1::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::meta::routes","","","","","","","","","","","","mcaptcha::api::v1::notifications","","","","","mcaptcha::api::v1::notifications::add","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::notifications::get","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::notifications::mark_read","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::notifications::routes","","","","","","","","","","","","","mcaptcha::api::v1::pow","","","","","","mcaptcha::api::v1::pow::get_config","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::pow::routes","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::pow::verify_pow","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::pow::verify_token","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::routes","","","","","","","","","","","","","","","","","","mcaptcha::data","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::date","","","","","","","","","","","","","","","","","","","","","","mcaptcha::db","","","mcaptcha::db::maria","mcaptcha::db::pg","mcaptcha::demo","","","","","","","","","","","","","","","","","mcaptcha::docs","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::docs::routes","","","","","","","","","","","","","mcaptcha::email","mcaptcha::email::verification","","","","","","","","","","","","","","","","","","mcaptcha::errors","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages","","","","","","","","mcaptcha::pages::auth","","","","","mcaptcha::pages::auth::login","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::auth::register","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::auth::routes","","","","","","","","","","","","","","mcaptcha::pages::auth::sudo","","","","","","","","","","","","","","","","","","mcaptcha::pages::errors","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::errors::routes","","","","","","","","","","","","mcaptcha::pages::panel","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::notifications","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::routes","","","","","","","","","","","","","","","mcaptcha::pages::panel::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::settings::routes","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey","","","","","","","mcaptcha::pages::panel::sitekey::add","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey::delete","","","","","","","","","","mcaptcha::pages::panel::sitekey::edit","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey::list","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey::routes","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey::view","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::routes","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::sitemap","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::routes","mcaptcha::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::static_assets","","","","mcaptcha::static_assets::filemap","","","","","","","","","","","","mcaptcha::static_assets::static_files","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::static_assets::static_files::assets","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::stats","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::widget","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::widget::routes","","","","","","","","","",""],"d":["","","","","","","","","","App data","","","","","","","","","","","","","","","","","points to source files matching build commit","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mCaptcha system: Redis cache, etc.","","","credential management configuration","App data: redis cache, database connections, etc.","","","","database ops defined by db crates","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","email client","","","","","","","app settings","","","","","stats recorder","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","User facing CAPTCHA widget","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","update email","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","update username","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","returns Ok(()) when everything checks out and the user is …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","User’s traffic pattern; used in generating a captcha …","","average traffic of user’s website","","","","","","","","","traffic that bought the user’s website down; optional","","","","","","","","Captcha description","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","the peak traffic that the user’s website can handle","","","","","","","","","","","","","","","","","","","","","","","","","","","","","easy is using defaults","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","Builder for BuildDetails.","Error type for BuildDetailsBuilder","Health check return datatype","Builder for Health.","Error type for HealthBuilder","Uninitialized field","Uninitialized field","Custom validation error","Custom validation error","","","","","","","","","","","","","","","","","Builds a new BuildDetails.","Builds a new Health.","emits build details of the bninary","","","","","","","","","Create an empty builder, with all fields set to None or …","Create an empty builder, with all fields set to None or …","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","Returns the argument unchanged.","","","","checks all components of the system","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","route handler that adds a notification message","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","route handler that gets all unread notifications","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","route handler that marks a notification read","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","PoW Verification module","PoW success token module","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","get PoW configuration for an mcaptcha key","Call this when MCaptcha is not in master.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","Returns the argument unchanged.","remove scope for $name route","","Calls U::from(self).","","","","","","","remove scope for $name route","","remove scope for $name route","","","validation token that clients receive as proof for …","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","route handler that verifies PoW and issues a solution token","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","route handler that validates a PoW solution token","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","App data","","Mailer data type AsyncSmtpTransport","","Represents mCaptcha cache and master system. When Redis is …","","","","","","mCaptcha system: Redis cache, etc.","credential management configuration","database ops defined by db crates","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self).","Calls U::from(self).","email client","","create new instance of app data","","","","app settings","stats recorder","","","","","","","","","","","","","","","","","","","","print date","","","Returns the argument unchanged.","Calls U::from(self).","","print relative time from date","","","","","","","","","","","","Demo password","Demo username","","","","","","Returns the argument unchanged.","","Calls U::from(self).","register demo user runner","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Get an embedded file and its metadata.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Iterates over the file paths in the folder.","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","Email operations: verification, notification, etc","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","when the value passed contains blacklisted words see …","","captcha not found","","","","email is already taken","","","","","","","","","","","when the value passed contains profainity","","","","","token not found","Traffic pattern not found","Unable to send email","when the value passed contains characters not present in …","","when the a username is already taken","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","Returns the argument unchanged.","","","","","","","Returns the argument unchanged.","","","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","notifications","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","route handler that renders individual views for sitekeys","","","","","","","","","","","","","","route handler that renders individual views for sitekeys","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","render a list of all sitekeys that a user has","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","route handler that renders individual views for sitekeys","","","","","","","","","","","Returns the argument unchanged.","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Get an embedded file and its metadata.","","","Get an embedded file and its metadata.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Iterates over the file paths in the folder.","","","Iterates over the file paths in the folder.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Trait to clone MCDatabase","","","","","","","","","","","","","","","","clone DB","","","","","","","","","","fetch stats","fetch stats","fetch stats","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","record PoWConfig confirms","record PoWConfig confirms","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig fetches","record PoWConfig fetches","record PoWConfig solves","record PoWConfig solves","record PoWConfig solves","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","widget services","render a client side widget for CAPTCHA verification","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,212,213,214,215,216,217,218,219,220,221,1,3,5,7,8,9,10,11,2,2,0,1,3,5,7,8,9,10,11,1,3,5,7,8,9,10,11,37,2,2,37,0,2,0,0,37,2,0,1,3,5,7,8,9,10,11,0,0,0,1,3,5,7,8,9,10,11,0,0,1,3,5,7,8,9,10,11,37,0,0,2,0,2,0,37,2,2,0,0,37,1,3,5,7,8,9,10,11,1,3,5,7,8,9,10,11,1,3,5,7,8,9,10,11,1,3,5,7,8,9,10,11,0,0,0,0,0,0,19,19,19,19,0,19,0,0,0,0,19,0,0,19,19,19,19,0,0,0,23,24,23,24,23,24,23,24,0,23,24,0,24,23,24,23,24,23,24,0,0,0,0,23,24,0,23,24,23,24,23,24,23,24,0,23,23,24,27,27,0,27,27,27,0,0,27,27,27,27,0,0,31,32,33,31,32,33,31,31,31,31,0,31,31,32,33,31,32,33,32,33,31,0,0,31,31,32,33,31,32,33,31,32,33,31,32,33,0,0,35,34,36,35,34,36,34,34,35,34,34,34,35,35,34,36,35,34,36,35,34,34,36,34,0,34,35,34,36,35,34,36,35,34,36,0,0,35,34,36,0,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,39,40,39,40,39,40,0,39,40,39,40,0,39,40,39,40,39,40,0,39,40,0,42,41,43,42,41,43,41,41,41,41,42,41,43,42,41,43,42,43,0,41,0,0,41,42,41,43,42,41,43,42,41,43,41,0,42,41,43,0,44,45,46,44,45,46,44,45,46,44,45,46,0,0,44,45,46,0,0,0,0,44,45,46,44,45,46,44,45,46,44,45,46,0,47,47,47,47,47,47,47,47,47,47,47,47,47,0,0,0,49,50,51,49,50,51,49,50,51,49,50,51,49,49,50,51,49,49,50,51,49,50,51,49,50,51,50,0,49,50,51,0,49,50,51,49,50,51,49,50,51,49,50,51,49,50,51,49,49,50,51,0,0,0,0,0,0,0,0,0,0,0,54,53,55,54,53,55,53,53,0,54,54,53,54,53,54,53,55,54,53,55,53,54,53,55,0,54,53,53,54,53,55,54,53,55,54,53,55,54,53,55,0,0,56,57,56,57,56,56,0,56,56,56,57,56,57,56,56,57,56,56,56,57,56,57,56,57,56,57,0,0,62,62,64,63,65,62,64,63,65,62,0,62,63,62,63,0,62,62,62,63,62,63,62,64,63,65,62,64,63,65,63,63,62,64,65,0,62,63,0,62,63,62,64,63,65,62,64,63,65,62,64,63,65,0,62,64,63,65,0,66,66,66,66,66,66,66,66,66,66,66,0,0,69,67,68,69,67,68,67,68,67,68,67,68,68,67,68,69,67,68,0,69,67,68,67,69,67,68,67,68,69,67,68,69,67,68,69,67,68,68,69,67,68,0,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,0,71,72,71,72,71,71,71,71,71,72,0,71,72,71,72,0,71,71,71,72,71,72,71,72,71,72,0,73,73,73,73,73,73,73,73,73,73,0,75,74,76,75,74,76,74,74,74,75,74,76,75,74,76,74,74,75,76,0,74,75,74,76,75,74,76,75,74,76,0,0,75,74,76,0,0,0,0,0,0,0,79,82,79,82,78,77,79,86,81,80,82,87,78,77,79,86,81,80,82,87,77,80,0,78,77,81,80,78,77,81,80,77,80,80,81,80,77,80,78,81,78,79,79,81,82,82,78,77,79,79,79,86,81,80,82,82,82,87,77,78,77,0,78,77,79,86,81,80,82,87,81,79,82,80,81,80,86,87,0,78,81,0,78,77,81,80,79,82,78,77,79,86,81,80,82,87,78,77,79,86,81,80,82,87,78,77,79,86,81,80,82,87,77,78,77,78,77,79,86,81,80,82,87,0,88,88,88,88,88,88,88,88,88,88,88,0,0,0,0,0,0,0,89,90,89,90,89,89,89,89,89,89,89,90,89,89,90,89,90,89,89,89,89,90,89,90,89,90,89,90,0,91,93,91,93,91,91,91,91,91,91,91,93,91,0,91,91,91,93,91,91,91,93,91,91,91,93,91,93,91,93,91,93,0,94,95,94,95,94,94,95,94,94,95,0,95,94,94,95,94,95,94,95,94,95,0,96,96,96,96,96,96,96,96,96,96,96,96,0,0,0,0,0,0,0,97,98,97,98,97,97,97,97,97,98,0,0,97,98,97,98,97,97,97,98,97,98,97,98,97,98,0,99,99,99,99,99,99,99,0,99,99,99,99,99,99,99,99,99,0,100,101,100,101,100,100,100,100,100,101,100,101,101,100,100,100,100,101,100,101,100,101,0,100,101,0,0,102,103,104,102,103,104,102,103,102,103,102,103,102,103,102,103,104,102,103,104,103,104,103,102,103,102,103,103,102,103,104,102,103,104,102,103,104,102,0,102,103,104,0,0,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,0,105,0,105,0,105,105,37,105,37,37,37,37,0,0,105,37,37,37,105,105,37,37,105,37,105,105,105,37,37,105,37,105,37,105,37,105,105,105,37,0,0,0,0,0,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,0,0,0,0,0,0,0,0,126,126,126,126,126,126,126,126,126,126,126,126,126,126,0,0,0,231,133,134,135,231,133,134,135,0,231,133,134,135,231,231,0,0,231,133,134,135,231,231,133,134,135,0,0,0,231,133,134,135,231,133,134,135,231,133,134,135,231,133,134,135,0,136,136,136,136,136,136,136,136,136,136,136,136,0,0,0,137,137,137,137,137,137,137,137,137,137,137,137,137,0,137,137,30,30,30,30,30,30,0,30,0,30,144,30,30,0,0,30,30,30,30,0,144,0,0,30,30,30,30,30,30,30,142,143,30,141,144,142,143,30,141,144,141,142,143,30,144,141,30,144,142,142,143,143,30,30,144,144,142,143,30,30,30,30,30,30,30,30,30,141,144,144,144,142,143,30,141,144,142,143,30,144,141,142,143,30,144,30,144,142,143,30,144,142,143,30,141,144,142,143,30,141,144,142,143,30,141,144,142,143,30,141,144,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,157,156,157,158,156,157,158,156,156,156,157,156,157,158,156,157,158,0,158,156,156,156,156,157,158,156,157,158,156,157,158,156,157,158,0,0,0,160,159,160,161,159,160,161,159,159,159,160,159,160,161,159,160,161,0,161,159,159,159,159,160,161,159,160,161,159,160,161,159,160,161,0,162,162,162,162,162,162,162,162,162,162,162,162,162,0,0,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,163,0,0,0,0,0,165,166,164,165,166,167,164,165,166,167,164,164,165,166,0,164,165,166,167,164,165,166,167,164,164,167,164,164,0,0,164,164,164,165,166,167,164,165,166,167,164,165,166,167,164,165,166,167,0,168,168,168,168,168,168,168,168,168,168,168,0,0,169,171,169,171,169,169,169,171,169,171,169,0,0,171,169,169,0,0,0,0,169,169,169,171,169,171,169,171,169,171,0,0,0,172,173,174,172,173,174,172,172,173,174,172,172,172,173,174,172,173,172,173,0,172,172,174,173,173,172,173,174,172,173,174,172,173,174,172,173,174,0,175,175,175,175,175,175,175,175,175,175,175,175,175,175,0,0,176,177,178,179,176,177,178,179,176,176,0,176,176,177,178,179,176,177,178,179,177,178,179,176,176,0,176,0,0,176,176,177,178,179,176,177,178,179,176,177,178,179,0,176,176,177,178,179,0,180,180,180,180,180,180,180,180,180,180,180,180,180,0,0,0,0,0,0,0,0,0,0,0,0,183,184,0,182,183,184,181,185,182,186,183,184,181,185,182,186,182,181,182,181,182,181,182,183,184,0,181,182,181,181,182,183,184,181,185,182,186,183,184,181,185,182,186,181,182,185,186,181,182,181,182,181,182,183,184,181,185,182,186,183,184,181,185,182,186,183,184,181,185,182,186,183,184,181,185,182,186,187,187,0,187,187,187,187,187,187,187,0,0,0,0,188,190,189,191,188,190,189,191,188,189,188,189,188,0,189,188,190,189,191,188,190,189,191,188,189,188,188,188,189,189,190,191,188,189,188,189,188,189,188,190,189,191,188,190,189,191,188,190,189,191,188,190,189,191,0,0,192,193,192,193,192,192,192,193,192,193,0,192,193,192,192,192,192,192,193,192,193,192,193,192,193,0,194,194,194,194,194,194,194,194,194,194,194,194,194,194,194,194,194,194,194,194,194,0,0,195,197,195,197,195,195,195,195,197,195,197,195,195,195,195,197,195,195,195,195,195,197,195,197,195,197,0,195,197,0,0,155,155,155,155,155,155,155,155,155,155,155,155,155,155,155,155,155,155,155,155,155,0,0,199,198,199,200,198,199,200,198,198,198,199,198,198,199,200,198,199,200,200,198,198,0,198,198,199,200,198,199,200,198,199,200,198,198,199,200,0,0,0,0,0,205,205,0,0,0,0,2,2,59,202,203,59,204,205,206,207,2,202,203,59,204,205,206,207,2,59,2,0,202,203,59,204,205,206,207,2,202,203,59,204,205,206,207,2,2,202,2,206,2,203,202,203,59,204,205,206,207,2,202,59,203,205,202,203,59,204,205,205,206,207,2,202,203,59,204,205,206,207,2,204,205,203,202,202,203,59,204,205,206,207,2,202,2,204,59,206,207,202,204,202,203,2,204,203,203,205,2,0,2,2,202,203,59,204,205,206,207,2,205,202,203,59,204,205,206,207,2,202,203,59,204,205,206,207,2,202,203,59,204,205,206,207,2,204,206,207,202,204,202,203,59,204,205,206,207,2,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,232,210,233,211,232,210,233,211,0,232,210,233,211,232,232,233,233,0,0,232,210,233,211,232,232,233,233,210,211,0,232,210,233,211,232,210,233,211,232,210,233,211,232,210,233,211,0,0,0,0,0,0,0,0,0,0,0,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,212,213,214,215,216,217,218,219,220,221,0,0,0,0,0,196,222,223,196,222,223,196,222,223,196,222,223,234,196,196,196,222,223,196,196,222,223,224,222,223,196,222,223,196,222,223,196,222,223,224,222,223,224,222,223,224,222,223,196,196,196,222,223,196,222,223,196,222,223,196,222,223,196,222,223,0,0,0,0,228,227,228,229,227,228,229,227,227,228,227,228,229,227,228,229,227,229,227,227,0,0,0,227,227,228,229,227,228,229,227,228,229,227,228,229,0,230,230,230,230,230,230,230,230,230,230],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,[1,2],[3,4],[5,6],[7,6],[8,6],[9,6],[10,6],[11,12],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[2,[[14,[13]]]],[[],15],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[],16],0,0,0,0,0,0,0,0,0,0,0,[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,[[]],[[]],[[],[[17,[19]]]],[[]],[[],[[21,[20]]]],[[]],0,0,0,0,0,0,[22],[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[[]],[[]],[23,23],[24,24],[[]],[[]],0,[[],[[17,[23]]]],[[],[[17,[24]]]],0,0,[[23,25],26],[[24,25],26],[[]],[[]],[[]],[[]],0,0,0,0,[23,17],[24,17],[22],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],0,0,[[]],[[]],[[]],[[]],0,[[]],[[]],[[27,28]],0,[22],[[],17],[[],17],[[],18],[[]],[[6,29],[[17,[30]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[31,31],[[]],[[],[[17,[31]]]],0,0,[[31,25],26],[[]],[[]],[[]],[[]],[[]],[[]],[[32,28]],[[33,28]],[31,17],[22],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[34,34],[[]],0,0,[[],[[17,[34]]]],[[34,25],26],[34,35],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[36,28]],[34,17],[22],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[6,35,37],[[17,[30]]]],0,[[]],[[]],[[]],0,[[]],[[]],0,0,[[]],0,[[]],[[],38],[[],17],[[],17],[[],18],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[39,28]],[[40,28]],[22],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],0,[[]],[[]],0,[[]],[[]],[[]],[[]],[[]],[[]],[41,41],[[]],[[],[[17,[41]]]],[[41,25],26],[[]],[[]],[[]],[[]],[[]],[[]],[[42,28]],[[43,28]],0,[41,17],[22],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],0,0,[[]],[[]],[[]],[[23,29],[[17,[24,30]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[44,28]],[[45,28]],[[46,28]],0,0,[22],0,[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,[[]],[[]],[[]],[[47,[48,[6]]],12],[[]],0,0,[[],47],0,[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[49,49],[50,50],[51,51],[[]],[[]],[[]],0,[[],[[17,[49]]]],[[],[[17,[50]]]],[[],[[17,[51]]]],0,[[49,25],26],[[50,25],26],[[51,25],26],[[]],[[]],[[]],[[]],[[]],[[]],0,[[50,29],[[17,[12,30]]]],0,0,0,[[49,29],[[17,[30]]]],[49,17],[50,17],[51,17],[[]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],0,[[]],[[]],[[]],0,0,0,0,[52,12],0,[22],0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[53,53],[[]],0,0,[[],[[17,[54]]]],[[],[[17,[53]]]],0,[[53,25],26],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[55,28]],0,[54,17],[53,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[54,29,6],[[17,[53,30]]]],0,[[]],[[]],[[]],[[]],[56,56],[[]],0,[[],[[17,[56]]]],[[56,25],26],[[]],[[]],[[]],[[]],0,0,[[57,28]],[56,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[58,59],[[17,[[61,[60]],30]]]],[62,62],[63,63],[[]],[[]],0,[[],62],0,[[],[[17,[62]]]],[[],[[17,[63]]]],[[62,25],26],[[63,25],26],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[64,28]],[[65,28]],0,[62,17],[63,17],[22],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],0,[[]],[[]],[[]],[[]],0,[[]],[[]],0,[[]],[[]],[[],66],[[],17],[[],17],[[],18],0,[[]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[67,67],[68,68],[[]],[[]],[[],[[17,[67]]]],[[],[[17,[68]]]],0,[[67,25],26],[[68,25],26],[[]],[[]],[[]],0,[[]],[[]],[[]],0,[[69,28]],[67,17],[68,17],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],0,[[]],[[]],[[]],0,[[]],[[]],0,0,0,[[]],0,[[]],[[],70],0,[[],17],[[],17],[[],18],0,0,[[]],0,[[]],[[]],[[]],[[]],[71,71],[[]],[[],[[17,[71]]]],[[71,25],26],[[]],[[]],0,[[]],[[]],0,[[72,28]],0,[71,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,[[]],[[]],[[]],0,[[]],[[],73],[[],17],[[],17],[[],18],[[]],0,[[]],[[]],[[]],[[]],[[]],[[]],0,[[],[[17,[74]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[75,28]],[[76,28]],0,[74,17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],0,0,[[]],[[]],[[]],[[74,29,6],[[17,[30]]]],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[77,[[17,[78,79]]]],[80,[[17,[81,82]]]],0,[78,78],[77,77],[81,81],[80,80],[[]],[[]],[[]],[[]],[[],77],[[],80],[[80,83],80],0,0,[[],77],[[],80],[[],[[17,[78]]]],[[],[[17,[81]]]],[[78,25],26],[[79,25],26],[[79,25],26],[[81,25],26],[[82,25],26],[[82,25],26],[[]],[[]],[12,79],[[]],[84,79],[[]],[[]],[[]],[12,82],[[]],[84,82],[[]],[[77,6],77],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[48,83],[85],[85],[[80,[48,[83]]],80],0,0,[[86,28]],[[87,28]],0,[78,17],[81,17],[22],[[]],[[]],[[]],[[]],[[],12],[[],12],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[77,6],77],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],0,[[]],0,[[]],[[],88],[[],17],[[],17],[[],18],[[]],0,0,0,0,[22],0,0,[[]],[[]],[[]],[[]],[89,89],[[]],[[],89],[[],[[17,[89]]]],[[89,89],83],[[89,25],26],[[]],[[]],0,[[]],[[]],0,[[90,28]],[89,17],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,[[]],[[]],[[]],[[]],[91,91],[[]],[[],91],[[],[[17,[91]]]],[[91,91],83],[92,91],[[]],[[]],[[[61,[92]]],[[61,[91]]]],0,0,0,[[]],[[]],0,0,0,[[93,28]],[91,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,[[]],[[]],[[]],[[]],[[],[[17,[94]]]],[[]],[[]],0,[[]],[[]],0,[[95,28]],[94,17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,0,[[]],[[]],[[]],0,[[]],0,[[],96],[[],17],[[],17],[[],18],[[]],0,0,0,[22],0,0,0,[[]],[[]],[[]],[[]],[97,97],[[]],[[],[[17,[97]]]],[[97,25],26],[[]],[[]],0,[[29,6],[[17,[30]]]],[[]],[[]],0,[[98,28]],[97,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,[[]],[[]],[[]],[99,6],0,[[]],[[],99],0,0,[[],17],[[],17],[[],18],[99,6],0,[99,6],0,[[]],0,[[]],[[]],[[]],[[]],[100,100],[[]],[[],[[17,[100]]]],[[100,25],26],[[]],[[]],[[]],[[]],[[101,28]],[100,17],[[]],0,[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],0,[[]],[[]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[102,102],[103,103],[[]],[[]],[[],[[17,[102]]]],[[],[[17,[103]]]],[[102,25],26],[[103,25],26],[[]],[[]],[[]],[[]],[[]],[[]],0,[[104,28]],0,[102,17],[103,17],[[]],[[]],0,[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],0,0,[[]],[[]],[[]],0,0,0,0,[[]],[[]],0,[[]],[[20,[48,[6]]],12],[[]],0,[[],20],0,0,[[],17],[[],17],[[],18],[[]],0,0,0,0,0,[[105,106],[[17,[30]]]],[[]],[[]],[[]],[[]],0,0,0,0,0,[[]],[[]],[[],107],[2,[[48,[[109,[108]]]]]],[[105,12],[[111,[[48,[110]]]]]],[[]],[[]],0,[2,105],[2,[[112,[37]]]],[[2,[114,[113]],[114,[115]]],[[116,[115,113]]]],[[105,117],[[17,[30]]]],[[105,118],[[17,[30]]]],0,0,[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[105,119],[[111,[83]]]],[[105,120,12],[[111,[12]]]],[[]],[[]],0,0,0,0,0,[[]],[[]],[121,121],[[]],[121,12],[[121,25],26],[122,12],[[]],[[]],[123,121],[121,12],0,[[]],[[],17],[[],17],[[],18],[[]],0,0,0,[[[48,[2]]],[[125,[124]]]],[[[48,[2]]],[[125,[124]]]],0,0,0,[126],[[]],[[]],[29,[[17,[30]]]],[[]],0,[[]],[29,[[17,[30]]]],[[29,127],[[17,[128,30]]]],[[29,127],[[17,[126,30]]]],[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],[6,[[48,[129]]]],[6,[[48,[129]]]],[6,130],0,[[]],[[]],[[]],[[]],[[],131],[[],132],[[133,28]],[[134,28]],[[135,28]],0,[22],0,[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],0,0,[[]],[[]],[[]],0,[[]],[[],136],0,[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[137,137],[[]],[[]],[[]],[6,137],[137,138],[[137,139],[[17,[140]]]],[[]],[[],17],[[],17],[[],18],[[37,6,6],[[17,[30]]]],0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],[[17,[141]]]],[[142,142],83],[[143,143],83],[[30,30],83],[[144,144],83],0,[30,130],[144,130],[[142,25],26],[[142,25],26],[[143,25],26],[[143,25],26],[[30,25],26],[[30,25],26],[[144,25],26],[[144,25],26],[[]],[[]],[145,30],[146,30],[[]],[147,30],[148,30],[149,30],[150,30],[151,30],[152,30],[[]],[147,144],[30,144],[[]],[[]],[[]],[[]],[[]],[[]],[85],[85],[85],[85],[141,17],[142,[[48,[153]]]],[143,[[48,[153]]]],[30,[[48,[153]]]],[144,[[48,[153]]]],[30,154],[144,154],[[],12],[[],12],[[],12],[[],12],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],[[]],0,0,0,[[],[[21,[155]]]],0,0,[22],0,0,0,0,[22],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[156,156],[[]],[[],156],[157,12],[[]],[[]],[[]],[[]],[[]],[[]],0,[[158,28]],[156,138],[[156,139],[[17,[140]]]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[159,159],[[]],[[],159],[160,12],[[]],[[]],[[]],[[]],[[]],[[]],0,[[161,28]],[159,138],[[159,139],[[17,[140]]]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,[[]],[[]],[[]],[[162,[48,[6]]],12],[[]],[[]],0,0,[[],162],[[],17],[[],17],[[],18],[[]],0,0,[[]],[[]],[163,163],[[]],0,[[]],[[]],[[6,[48,[61]]],163],[163,138],[[163,139],[[17,[140]]]],[[]],[[],17],[[],17],[[],18],0,[[]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[164,164],[[]],[165,12],[166,12],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[6,6],164],[[167,28]],[164,138],[[164,139],[[17,[140]]]],0,[22],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],0,[[]],[[],168],[[],17],[[],17],[[],18],0,[[]],0,0,[[]],[[]],[[]],[[]],[169,169],[[]],[[]],[[]],[[]],[[]],[[[61,[170]]],169],0,0,[[171,28]],[169,138],[[169,139],[[17,[140]]]],0,[22],0,0,0,[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[92,172],[[]],[[]],[[]],0,0,[[]],[[]],[[]],0,0,0,[[[61,[172]]],173],0,[172,12],0,[[174,28]],[173,138],[[173,139],[[17,[140]]]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],0,[[]],[[],175],0,0,0,[[],17],[[],17],[[],18],[[]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[176,176],[[]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[177,28]],[[178,28]],[[179,28]],[176,138],[[176,139],[[17,[140]]]],0,0,[22],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],0,0,[[]],[[]],[[]],[[]],0,[[]],[[]],0,[[]],[[]],0,[[]],[[],180],[[],17],[[],17],[[],18],0,[[]],0,0,0,0,0,[22],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[181,181],[182,182],[[]],[[]],[[],181],[[],182],[183,12],[184,12],0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[185,28]],[[186,28]],[181,138],[182,138],[[181,139],[[17,[140]]]],[[182,139],[[17,[140]]]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[187,28]],[[],17],[[],17],[[],18],[[]],0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[188,188],[189,189],[[]],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[[170,[61,[60]],12],188],[[12,62],189],0,[[190,28]],[[191,28]],[188,138],[189,138],[[188,139],[[17,[140]]]],[[189,139],[[17,[140]]]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],0,0,[[]],[[]],[[]],[[]],[192,192],[[]],[[]],[[]],[[]],[[]],0,[[[61,[170]]],192],[[193,28]],[192,138],[[192,139],[[17,[140]]]],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,0,0,[[]],[[]],0,0,0,[[]],[[194,6],12],[[194,6],12],[[194,6],12],[[]],[[194,6],12],[[]],0,[[],194],[[],17],[[],17],[[],18],0,[[]],0,0,[[]],[[]],[[]],[[]],[195,195],[[]],0,[[]],[[]],[[]],[[]],0,0,0,[[196,170,[61,[60]],12],195],[[197,28]],[195,138],[[195,139],[[17,[140]]]],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],0,[[]],[[]],0,0,0,0,[[]],[[]],0,0,[[]],[[155,[48,[6]]],12],[[]],0,[[]],[[],155],0,0,0,0,0,[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[198,198],[[]],[[],198],[199,12],0,[[]],[[]],[[]],[[]],[[]],[[]],[[200,28]],[198,138],[[198,139],[[17,[140]]]],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],0,[[]],[[]],[[]],[22],0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[201],[202,202],[203,203],[59,59],[204,204],[205,205],[206,206],[207,207],[2,2],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,[[],[[17,[202]]]],[[],[[17,[203]]]],[[],[[17,[59]]]],[[],[[17,[204]]]],[[],[[17,[205]]]],[[],[[17,[206]]]],[[],[[17,[207]]]],[[],[[17,[2]]]],0,0,0,[[205,205],83],[[202,25],26],[[203,25],26],[[59,25],26],[[204,25],26],[[205,25],26],[[205,25],26],[[206,25],26],[[207,25],26],[[2,25],26],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[208,[[17,[205,209]]]],0,[202,12],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[],[[17,[2,209]]]],0,0,0,0,0,0,0,0,0,0,0,0,[205,17],0,[201],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],12],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[22],0,0,[[]],[[]],0,[[]],[[4,6],[[48,[6]]]],[[]],[[],4],[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],[6,[[48,[129]]]],[6,[[48,[129]]]],[6,[[48,[129]]]],[6,[[48,[129]]]],[6,130],[6,130],[[]],[[]],[[]],[[]],[[],132],[[],131],[[],131],[[],132],[[210,28]],[[211,28]],0,[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[212],[213],[214],[215],[216],[217],[218],[219],[220],[221],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[196,196],[222,222],[223,223],[[]],[[]],[[]],[[],[[125,[224]]]],0,0,[[],196],[[],222],[[],223],[[],[[17,[196]]]],[[196,196],83],[[222,222],83],[[223,223],83],[[37,6,6],[[226,[[125,[225]]]]]],[[222,37,6,6],[[226,[[125,[225]]]]]],[[223,37,6,6],[[226,[[125,[225]]]]]],[[196,25],26],[[222,25],26],[[223,25],26],[[]],[[]],[[]],[[]],[[]],[[]],[[37,6],[[226,[[125,[225]]]]]],[[222,37,6],[[226,[[125,[225]]]]]],[[223,37,6],[[226,[[125,[225]]]]]],[[37,6],[[226,[[125,[225]]]]]],[[222,37,6],[[226,[[125,[225]]]]]],[[223,37,6],[[226,[[125,[225]]]]]],[[37,6],[[226,[[125,[225]]]]]],[[222,37,6],[[226,[[125,[225]]]]]],[[223,37,6],[[226,[[125,[225]]]]]],[196,17],0,[[]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[227,227],[[]],[228,12],[[]],[[]],[[]],[[]],[[]],[[]],[[],227],[[229,28]],[227,138],[[227,139],[[17,[140]]]],0,[22],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],[[],230],[[],17],[[],17],[[],18],0,[[]]],"p":[[3,"SETTINGS"],[3,"Settings"],[3,"FILES"],[3,"FileMap"],[3,"JS"],[15,"str"],[3,"CSS"],[3,"MOBILE_CSS"],[3,"VERIFICATIN_WIDGET_JS"],[3,"VERIFICATIN_WIDGET_CSS"],[3,"SOURCE_FILES_OF_INSTANCE"],[3,"String"],[3,"CookieIdentityPolicy"],[3,"IdentityService"],[3,"JsonConfig"],[6,"Result"],[4,"Result"],[3,"TypeId"],[3,"RedirectQuery"],[3,"Routes"],[3,"Authentication"],[3,"ServiceConfig"],[3,"AccountCheckPayload"],[3,"AccountCheckResp"],[3,"Formatter"],[6,"Result"],[3,"delete_account"],[3,"AppService"],[6,"AppData"],[4,"ServiceError"],[3,"Email"],[3,"email_exists"],[3,"set_email"],[3,"ChangePasswordReqest"],[3,"UpdatePassword"],[3,"update_user_password"],[3,"Data"],[3,"Account"],[3,"get_secret"],[3,"update_user_secret"],[3,"Username"],[3,"username_exists"],[3,"set_username"],[3,"register"],[3,"login"],[3,"signout"],[3,"Auth"],[4,"Option"],[3,"Register"],[3,"Login"],[3,"Password"],[15,"usize"],[3,"MCaptchaDetails"],[3,"CreateCaptcha"],[3,"create"],[3,"DeleteCaptcha"],[3,"delete"],[3,"TrafficPattern"],[3,"DefaultDifficultyStrategy"],[3,"Level"],[3,"Vec"],[3,"TrafficPatternRequest"],[3,"UpdateTrafficPattern"],[3,"create"],[3,"update"],[3,"Easy"],[3,"Levels"],[3,"I32Levels"],[3,"get_captcha"],[3,"Captcha"],[3,"StatsPayload"],[3,"get"],[3,"Stats"],[3,"UpdateCaptcha"],[3,"update_key"],[3,"update_captcha"],[3,"BuildDetailsBuilder"],[3,"BuildDetails"],[4,"BuildDetailsBuilderError"],[3,"HealthBuilder"],[3,"Health"],[4,"HealthBuilderError"],[15,"bool"],[3,"UninitializedFieldError"],[3,"Demand"],[3,"build_details"],[3,"health"],[3,"Meta"],[3,"AddNotificationRequest"],[3,"add_notification"],[3,"NotificationResp"],[3,"Notification"],[3,"get_notification"],[3,"MarkReadReq"],[3,"mark_read"],[3,"Notifications"],[3,"GetConfigPayload"],[3,"get_config"],[3,"PoW"],[3,"ValidationToken"],[3,"verify_pow"],[3,"CaptchaValidateResp"],[3,"VerifyCaptchaResultPayload"],[3,"validate_captcha_token"],[4,"SystemGroup"],[3,"AddSite"],[3,"Config"],[3,"Tokio1Executor"],[3,"AsyncSmtpTransport"],[3,"PoWConfig"],[6,"CaptchaResult"],[3,"Arc"],[8,"Master"],[3,"Addr"],[8,"Save"],[3,"System"],[3,"RemoveCaptcha"],[3,"Rename"],[3,"VerifyCaptchaResult"],[3,"Work"],[3,"Date"],[3,"OffsetDateTime"],[15,"i64"],[8,"MCDatabase"],[3,"Box"],[3,"DemoUser"],[3,"Duration"],[3,"JoinHandle"],[3,"EmbeddedFile"],[3,"HttpResponse"],[4,"Filenames"],[8,"Iterator"],[3,"dist"],[3,"spec"],[3,"index"],[3,"Docs"],[3,"IndexPage"],[6,"RenderResult"],[3,"Buffer"],[4,"RenderError"],[3,"ErrorToResponse"],[3,"SmtpErrorWrapper"],[3,"DBErrorWrapper"],[4,"PageError"],[3,"RecvError"],[4,"MailboxError"],[4,"DBError"],[3,"ValidationErrors"],[4,"ParseError"],[4,"CaptchaError"],[3,"Error"],[4,"CredsError"],[8,"Error"],[3,"StatusCode"],[3,"Routes"],[3,"IndexPage"],[3,"INDEX"],[3,"login"],[3,"IndexPage"],[3,"INDEX"],[3,"join"],[3,"Auth"],[3,"SudoPage"],[3,"ErrorPage"],[3,"INTERNAL_SERVER_ERROR_BODY"],[3,"UNKNOWN_ERROR_BODY"],[3,"error"],[3,"Errors"],[3,"IndexPage"],[3,"Captcha"],[3,"panel"],[3,"Notification"],[3,"IndexPage"],[3,"notifications"],[3,"Panel"],[3,"IndexPage"],[3,"settings"],[3,"delete_account"],[3,"update_secret"],[3,"Settings"],[3,"AdvanceIndexPage"],[3,"EasyIndexPage"],[3,"ADVANCE_INDEX"],[3,"EASY_INDEX"],[3,"advance"],[3,"easy"],[3,"delete_sitekey"],[3,"AdvanceEditPage"],[3,"EasyEditPage"],[3,"advance"],[3,"easy"],[3,"IndexPage"],[3,"list_sitekeys"],[3,"Sitekey"],[3,"IndexPage"],[3,"CaptchaStats"],[3,"view_sitekey"],[3,"IndexPage"],[3,"INDEX"],[3,"sitemap"],[3,"Config"],[3,"Server"],[3,"Captcha"],[3,"Smtp"],[4,"DBType"],[3,"Database"],[3,"Redis"],[3,"Url"],[4,"ConfigError"],[3,"static_files"],[3,"favicons"],[3,"KEY"],[3,"GITHUB"],[3,"HOME"],[3,"SETTINGS_ICON"],[3,"CREDIT_CARD"],[3,"HELP_CIRCLE"],[3,"MESSAGE"],[3,"DOCS_ICON"],[3,"MCAPTCHA_TRANS_ICON"],[3,"BAR_CHART"],[3,"Real"],[3,"Dummy"],[8,"Stats"],[8,"Future"],[3,"Pin"],[3,"IndexPage"],[3,"INDEX_PAGE"],[3,"show_widget"],[3,"Widget"],[3,"Asset"],[3,"Asset"],[3,"Favicons"],[8,"CloneStats"]]}\ +"db_core":{"doc":"mCaptcha database operations","t":"DDIDNCDEIDDDDDDDNKKMLLLLLLLLLLLLLLLLLLLLLLLLMKLLLLLLLLLLLLKLLLLLLLLLLLLMMMKKLLLLLLLKKKKMMLLLLLLLLLLLLAMMMMKLLLLLLLLLLLLAKKKLLLLLLLLLLLLLLLLLLLLLLLLMKKKKKKKKKKMMMMMLLLLLLLLLLLLMMKMMMMAMKAMKKKKMMLLLLLLLLLLLLMAMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLKKKKKKMMMKMLLLLLLLLLLLLXNGNNENGNNNNNLLLLLLLLLLLLLQIIIIQKKKF","n":["AddNotification","Captcha","CloneSPDatabase","CreateCaptcha","Email","GetConnection","Level","Login","MCDatabase","NameHash","Notification","Register","Secret","StatsUnixTimestamp","TrafficPattern","UpdateEmail","Username","add_captcha_levels","add_traffic_pattern","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","captcha_exists","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_db","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","config_fetches","config_id","confirms","create_captcha","create_notification","default","default","default","default","default","default","default","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","dev","difficulty_factor","duration","duration","email","email_exists","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into","into","into","into","into","into","into","into","into","into","into","key","key","mark_notification_read","message","message","name","new_email","ops","peak_sustainable_traffic","ping","prelude","received","record_confirm","record_fetch","record_solve","register","secret","secret","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","solves","tests","to","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","async_trait","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","borrow","borrow_mut","fmt","fmt","from","into","provide","source","to_string","try_from","try_into","type_id","vzip","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","database_works"],"q":["db_core","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_core::dev","db_core::errors","","","","","","","","","","","","","","","","","","","","","","","","","db_core::ops","","","","","","","","","db_core::tests"],"d":["Data required to add notification","Data representing a captcha","Trait to clone MCDatabase","data required to create new captcha","email as login","","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","type encapsulating username and hashed password of a user","Represents notification","Data required to register a new user","datastructure representing a user’s secret","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","data required to update them email of a user","username as login","Add levels to captcha","Add traffic configuration","average traffic of user’s website","","","","","","","","","","","","","","","","","","","","","","","","","traffic that bought the user’s website down; optional","check if captcha exists","","","","","","","","","","","","","clone DB","","","","","","","","","","","","","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","create new captcha","create new notification","","","","","","","","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","","","","","","","","","","","","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","","","","","","","","","","","","","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","","","","","","","","","","","","","times at which the PoW was solved","Test utilities","who is the notification addressed to?","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","","","","","","","","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","test all database functions"],"i":[0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,9,18,18,5,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,5,18,7,8,9,10,11,12,13,14,5,15,16,17,30,7,8,9,10,11,12,13,14,5,15,16,17,11,16,11,18,18,11,13,14,5,15,16,17,18,18,18,18,15,16,7,8,9,10,11,12,13,14,5,15,16,17,0,12,15,16,7,18,7,8,9,10,11,12,13,14,5,15,16,17,0,18,18,18,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,14,18,18,18,18,18,18,18,18,18,18,7,10,13,14,13,7,8,9,10,11,12,13,14,5,15,16,17,15,16,18,13,14,13,8,0,5,18,0,13,18,18,18,18,7,17,7,8,9,10,11,12,13,14,5,15,16,17,11,0,14,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,7,8,9,10,11,12,13,14,5,15,16,17,18,18,18,18,18,18,7,8,10,18,12,7,8,9,10,11,12,13,14,5,15,16,17,0,26,0,26,26,0,26,0,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,31,0,0,0,0,32,32,31,33,0],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[1,1],[[4,[[3,[2]]]]]],[[1,1,5],[[4,[[3,[2]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[6,[1]],1],[[4,[[3,[2]]]]]],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[5,5],[15,15],[16,16],[17,17],[[],[[3,[18]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[1,15],[[4,[[3,[2]]]]]],[14,[[4,[[3,[2]]]]]],[[],11],[[],13],[[],14],[[],5],[[],15],[[],16],[[],17],[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],0,0,[[],[[19,[7]]]],[[],[[19,[8]]]],[[],[[19,[9]]]],[[],[[19,[10]]]],[[],[[19,[11]]]],[[],[[19,[12]]]],[[],[[19,[13]]]],[[],[[19,[14]]]],[[],[[19,[5]]]],[[],[[19,[15]]]],[[],[[19,[16]]]],[[],[[19,[17]]]],0,0,0,0,0,[1,[[4,[[3,[2]]]]]],[[7,7],20],[[8,8],20],[[9,9],20],[[10,10],20],[[11,11],20],[[12,12],20],[[13,13],20],[[14,14],20],[[5,5],20],[[15,15],20],[[16,16],20],[[17,17],20],0,[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[[7,21],22],[[8,21],22],[[9,21],22],[[10,21],22],[[11,21],22],[[12,21],[[19,[23]]]],[[13,21],22],[[14,21],22],[[5,21],22],[[15,21],22],[[16,21],22],[[17,21],22],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[1,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[[[6,[1]],1],[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[9,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[1,24],[[4,[[3,[2]]]]]],0,0,0,0,0,0,[[],[[4,[[3,[2]]]]]],0,0,[1,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[1,[[4,[[3,[2]]]]]],[7,[[4,[[3,[2]]]]]],0,0,[7,19],[8,19],[9,19],[10,19],[11,19],[12,19],[13,19],[14,19],[5,19],[15,19],[16,19],[17,19],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[1,1,1],[[4,[[3,[2]]]]]],[[1,15],[[4,[[3,[2]]]]]],[8,[[4,[[3,[2]]]]]],[10,[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],[[1,1],[[4,[[3,[2]]]]]],0,0,0,[1,[[4,[[3,[2]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[26,21],22],[[26,21],22],[[]],[[]],[27],[26,[[6,[28]]]],[[],29],[[],19],[[],19],[[],25],[[]],0,0,0,0,0,0,[[],[[4,[[3,[2]]]]]],[[],[[4,[[3,[2]]]]]],[[],[[4,[[3,[2]]]]]],[[7,15,5,14]]],"p":[[15,"str"],[8,"Future"],[3,"Box"],[3,"Pin"],[3,"TrafficPattern"],[4,"Option"],[3,"Register"],[3,"UpdateEmail"],[4,"Login"],[3,"NameHash"],[3,"StatsUnixTimestamp"],[3,"Level"],[3,"Notification"],[3,"AddNotification"],[3,"CreateCaptcha"],[3,"Captcha"],[3,"Secret"],[8,"MCDatabase"],[4,"Result"],[15,"bool"],[3,"Formatter"],[6,"Result"],[3,"Error"],[15,"i32"],[3,"TypeId"],[4,"DBError"],[3,"Demand"],[8,"Error"],[3,"String"],[8,"CloneSPDatabase"],[8,"GetConnection"],[8,"Connect"],[8,"Migrate"]]},\ +"db_sqlx_maria":{"doc":"","t":"DEDNDNDLLLLLLLLLLLLLLLLLLLLLLLLLAMLLALLLLLLLLLLLLLLLLLLLMMLLLLLLMLMLMMAMLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLNDGDNNINNNNQIDENIGCNNNNEINDEIINDDNQNNNDNDNDNDNNDNNNKKLXMLLMKKMMMKKKKKKKMMAMMMMKAKKKLLLLLLLMKKKKKKKKKKKMMMMMLLMMKMMKMMAMKALMKKKKMMMLAMLLLLKKKKKKMMMKMLMMMMMNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKXMMKKMMMKKKKKKKMMMMMMKAKKKMKKKKKKKKKKKMMMMMMMKMMKMMAMKAMKKKKMMMAMKKKKKKMMMKMNGNNENGNNNNNQIIIIQKKKNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKMMKKMMMKKKKKKKMMMMMMKKKKMKKKKKKKKKKKMMMMMMMKMMKMMMKMKKKKMMMMKKKKKKMMMKMFNGNNENGNNNNNQIIIIQKKKNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKMMKKMMMKKKKKKKMMAMMMMKKKKMKKKKKKKKKKKMMMMMMMKMMKMMMKMKKKKMMMMKKKKKKMMMKMNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKXMMKKMMMKKKKKKKMMMMMMKKKKMKKKKKKKKKKKMMMMMMMKMMKMMMKMKKKKMMMMKKKKKKMMMKMFFFNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKMLLLLLLLLLLLLLLLLLLLLLLLLLLMKLLLLLLLLLLLLKLLLLLLLLLLLLMMMKKKLLLLLLLKKKKMMLLLLLLLLLLLLMMMMKLLLLLLLLLLLLKKKLLLLLLLLLLLLLLLLLLLLLLLLLLLLMKKKKKKKKKKKMMMMMLLLLLLLLLLLLLMMKMMKMMAMKLMKKKKMMLLLLLLLLLLLLMLAMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLKKKKKKMMMKMLLLLLLLLLLLLLQIIIIQKKKF","n":["Conn","ConnectionOptions","Database","Existing","Fresh","Fresh","InnerNotification","add_captcha_levels","add_traffic_pattern","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","captcha_exists","clone","clone","clone_db","clone_into","clone_into","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","dev","disable_logging","email_exists","eq","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","heading","id","into","into","into","into","into","mark_notification_read","message","migrate","name","ping","pool","pool_options","prelude","received","record_confirm","record_fetch","record_solve","register","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","url","username_exists","vzip","vzip","vzip","vzip","vzip","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","ColumnDecode","ColumnIndexOutOfBounds","ColumnNotFound","Configuration","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Database","Database","Decode","Email","EmailTaken","Error","GetConnection","Io","Level","Login","MCDatabase","Migrate","Migrate","NameHash","Notification","NotificationNotFound","Pool","PoolClosed","PoolTimedOut","Protocol","Register","RowNotFound","Secret","SecretTaken","StatsUnixTimestamp","Tls","TrafficPattern","TrafficPatternNotFound","TypeNotFound","UpdateEmail","Username","UsernameTaken","WorkerCrashed","add_captcha_levels","add_traffic_pattern","as_database_error","async_trait","avg_traffic","borrow","borrow_mut","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","dev","difficulty_factor","duration","duration","email","email_exists","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into_database_error","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","prelude","provide","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","source","tests","to","to_string","try_from","try_into","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","index","index","len","source","type_name","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","async_trait","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","errors","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","prelude","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","tests","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","database_works","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","dev","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","async_trait","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","database_works","map_register_err","map_row_not_found_err","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","captcha_exists","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_db","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","config_fetches","config_id","confirms","connect","create_captcha","create_notification","default","default","default","default","default","default","default","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","difficulty_factor","duration","duration","email","email_exists","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into","into","into","into","into","into","into","into","into","into","into","into","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","provide","received","record_confirm","record_fetch","record_solve","register","secret","secret","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","solves","source","tests","to","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","database_works"],"q":["db_sqlx_maria","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::Error","","","","","db_sqlx_maria::dev::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::dev::errors","","","","","","","","","","","","db_sqlx_maria::dev::dev::ops","","","","","","","","","db_sqlx_maria::dev::dev::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::dev::tests","db_sqlx_maria::dev::errors","","","","","","","","","","","","db_sqlx_maria::dev::ops","","","","","","","","","db_sqlx_maria::dev::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::prelude::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::dev::tests","db_sqlx_maria::errors","","db_sqlx_maria::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_maria::prelude::ops","","","","","","","","","db_sqlx_maria::prelude::tests"],"d":["Use an existing database pool","Connect to database","","existing connection","","fresh connection","Represents notification","Add levels to captcha","Add traffic configuration","","","","","","","","","","","check if captcha exists","","","","","","","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","","","check if email exists","","Error-handling utilities","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","mark a notification read","message of the notification","","receiver name of the notification","ping DB","","","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","","check if username exists","","","","","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","Error occurred while decoding a value from a specific …","Column index was out of bounds.","No column found for the given name.","Error occurred while parsing a connection string.","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","","Error returned from the database.","Error occurred while decoding a value.","email as login","Email is taken","Represents all the ways a method can fail within SQLx.","Get database connection","Error communicating with the database backend.","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Pool::close was called while we were waiting in …","A Pool::acquire timed out due to connections not becoming …","Unexpected or invalid data encountered while communicating …","Data required to register a new user","No rows returned by a query that expected to return at …","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","Error occurred while attempting to establish a TLS …","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","Type in query doesn’t exist. Likely due to typo or …","data required to update them email of a user","username as login","Username is taken","A background worker has crashed.","Add levels to captcha","Add traffic configuration","","","average traffic of user’s website","","","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","Returns the argument unchanged.","","","","","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","","Test utilities","who is the notification addressed to?","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","Test utilities","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","test all database functions","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","test all database functions","map postgres errors to DBError types","map custom row not found error to DB error","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","","","","","","","","","","","","","","","","","","","","","","","","","","","traffic that bought the user’s website down; optional","check if captcha exists","","","","","","","","","","","","","clone DB","","","","","","","","","","","","","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","","","","","","","","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","","","","","","","","","","","","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","","","","","","","","","","","","","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","","","","","","","","","","","","","times at which the PoW was solved","","Test utilities","who is the notification addressed to?","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","","","","","","","","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","test all database functions"],"i":[0,0,0,11,0,11,0,1,1,39,11,40,1,8,39,11,40,1,8,1,1,8,1,1,8,11,1,1,1,1,1,1,0,40,1,8,0,1,1,1,8,39,11,40,1,8,1,1,1,1,1,1,1,1,1,1,8,8,39,11,40,1,8,1,8,1,8,1,1,40,0,8,1,1,1,1,1,8,39,11,40,1,8,39,11,40,1,8,39,11,40,1,8,1,1,1,1,1,1,40,1,39,11,40,1,8,33,0,0,0,33,33,0,24,24,24,24,41,0,0,0,33,0,0,0,24,24,17,33,0,0,24,0,0,0,0,24,0,0,33,42,24,24,24,0,24,0,33,0,24,0,33,24,0,17,33,24,9,9,24,0,6,24,24,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,0,35,12,37,19,9,0,9,9,9,24,24,24,24,24,24,24,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,24,24,12,37,9,36,13,44,36,22,0,6,9,0,24,36,9,9,9,9,19,38,34,24,0,13,24,24,24,24,9,9,9,9,9,9,19,22,23,9,35,24,45,46,45,46,47,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,0,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,0,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,0,6,9,0,36,9,9,9,9,19,38,34,0,13,9,9,9,9,9,9,19,22,23,9,35,33,0,33,33,0,33,0,33,33,33,33,33,41,0,0,0,0,42,42,41,44,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,0,33,0,33,33,0,33,0,33,33,33,33,33,41,0,0,0,0,42,42,41,44,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,0,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,0,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,0,0,0,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,6,9,19,22,17,23,34,35,36,13,6,12,37,38,43,19,22,17,23,34,35,36,13,6,12,37,38,34,37,34,42,9,9,34,36,13,6,12,37,38,9,9,9,9,12,37,19,22,17,23,34,35,36,13,6,12,37,38,35,12,37,19,9,19,22,17,23,34,35,36,13,6,12,37,38,9,9,9,33,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,36,13,6,12,37,38,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,33,19,22,17,23,34,35,36,13,6,12,37,38,12,37,9,36,13,44,36,22,0,6,9,33,36,9,9,9,9,19,38,19,22,17,23,34,35,36,13,6,12,37,38,34,33,0,13,19,22,17,23,34,35,36,13,6,12,37,38,33,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,9,9,9,9,9,9,19,22,23,9,35,33,19,22,17,23,34,35,36,13,6,12,37,38,41,0,0,0,0,42,42,41,44,0],"f":[0,0,0,0,0,0,0,[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2,6],[[5,[[4,[3]]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,[7,[2]],2],[[5,[[4,[3]]]]]],[1,1],[8,8],[[],[[4,[9,10]]]],[[]],[[]],[11,[[5,[[4,[3]]]]]],[[1,2,12],[[5,[[4,[3]]]]]],[[1,13],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],0,0,[[1,2],[[5,[[4,[3]]]]]],[[8,8],14],0,[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[8,15],16],[[]],[[]],[[]],[[]],[[]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,[7,[2]],2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,17],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],0,0,[[]],[[]],[[]],[[]],[[]],[[1,2,18],[[5,[[4,[3]]]]]],0,[1,[[5,[[4,[3]]]]]],0,[1,[[5,[[4,[3]]]]]],0,0,0,0,[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,19],[[5,[[4,[3]]]]]],[[]],[[]],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],21],[[],21],[[],21],[[],21],[[],21],[[1,2,2,2],[[5,[[4,[3]]]]]],[[1,2,12],[[5,[[4,[3]]]]]],[[1,22],[[5,[[4,[3]]]]]],[[1,23],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],0,[[1,2],[[5,[[4,[3]]]]]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],[24,[[7,[25]]]],0,0,[[]],[[]],0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[24,15],[[20,[26]]]],[[24,15],[[20,[26]]]],[[]],[[],24],[27,24],[28,24],[29,24],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[]],[24,[[7,[[4,[25,10]]]]]],0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[30],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,[24,[[7,[31]]]],0,0,[[],32],[[],20],[[],20],[[],21],[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],0,0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[19,12,6,13],3],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[19,12,6,13],3],[24,33],[[24,33],33],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[19,19],[22,22],[17,17],[23,23],[34,34],[35,35],[36,36],[13,13],[6,6],[12,12],[37,37],[38,38],[[],[[4,[9,10]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[],34],[[],36],[[],13],[[],6],[[],12],[[],37],[[],38],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,[[],[[20,[19]]]],[[],[[20,[22]]]],[[],[[20,[17]]]],[[],[[20,[23]]]],[[],[[20,[34]]]],[[],[[20,[35]]]],[[],[[20,[36]]]],[[],[[20,[13]]]],[[],[[20,[6]]]],[[],[[20,[12]]]],[[],[[20,[37]]]],[[],[[20,[38]]]],0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[19,19],14],[[22,22],14],[[17,17],14],[[23,23],14],[[34,34],14],[[35,35],14],[[36,36],14],[[13,13],14],[[6,6],14],[[12,12],14],[[37,37],14],[[38,38],14],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[33,15],[[20,[26]]]],[[33,15],[[20,[26]]]],[[19,15],[[20,[26]]]],[[22,15],[[20,[26]]]],[[17,15],[[20,[26]]]],[[23,15],[[20,[26]]]],[[34,15],[[20,[26]]]],[[35,15],[[20,[26]]]],[[36,15],[[20,[26]]]],[[13,15],[[20,[26]]]],[[6,15],[[20,[26]]]],[[12,15],[[20,[26]]]],[[37,15],[[20,[26]]]],[[38,15],[[20,[26]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[8,36],[[]],[[]],[[]],[[]],[[]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[30],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,[19,20],[22,20],[17,20],[23,20],[34,20],[35,20],[36,20],[13,20],[6,20],[12,20],[37,20],[38,20],0,[33,[[7,[31]]]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],32],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[19,12,6,13],3]],"p":[[3,"Database"],[15,"str"],[8,"Future"],[3,"Box"],[3,"Pin"],[3,"TrafficPattern"],[4,"Option"],[3,"InnerNotification"],[8,"MCDatabase"],[3,"Global"],[4,"ConnectionOptions"],[3,"CreateCaptcha"],[3,"AddNotification"],[15,"bool"],[3,"Formatter"],[6,"Result"],[4,"Login"],[15,"i32"],[3,"Register"],[4,"Result"],[3,"TypeId"],[3,"UpdateEmail"],[3,"NameHash"],[4,"Error"],[8,"DatabaseError"],[3,"Error"],[4,"MigrateError"],[3,"Error"],[3,"InvalidDNSNameError"],[3,"Demand"],[8,"Error"],[3,"String"],[4,"DBError"],[3,"StatsUnixTimestamp"],[3,"Level"],[3,"Notification"],[3,"Captcha"],[3,"Secret"],[3,"Conn"],[3,"Fresh"],[8,"GetConnection"],[8,"Connect"],[8,"CloneSPDatabase"],[8,"Migrate"],[13,"ColumnIndexOutOfBounds"],[13,"ColumnDecode"],[13,"TypeNotFound"]]},\ +"db_sqlx_postgres":{"doc":"","t":"DEDNDNDLLLLLLLLLLLLLLLLLLLLLLLLLLAMLLALLLLLLLLLLLLLLLLLLLMMLLLLLLMLMLMMAMLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLNDGDNNINNNNQIDENIGCNNNNEINDEIINDDNQNNNDNDNDNDNNDNNNKKLXMLLMKKMMMKKKKKKKMMAMMMMKAKKKLLLLLLLMKKKKKKKKKKKMMMMMLLMMKMMKMMAMKALMKKKKMMMLAMLLLLKKKKKKMMMKMLMMMMMNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKXMMKKMMMKKKKKKKMMMMMMKAKKKMKKKKKKKKKKKMMMMMMMKMMKMMAMKAMKKKKMMMAMKKKKKKMMMKMNGNNENGNNNNNQIIIIQKKKNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKMMKKMMMKKKKKKKMMMMMMKKKKMKKKKKKKKKKKMMMMMMMKMMKMMMKMKKKKMMMMKKKKKKMMMKMFNGNNENGNNNNNQIIIIQKKKNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKMMKKMMMKKKKKKKMMAMMMMKKKKMKKKKKKKKKKKMMMMMMMKMMKMMMKMKKKKMMMMKKKKKKMMMKMNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKXMMKKMMMKKKKKKKMMMMMMKKKKMKKKKKKKKKKKMMMMMMMKMMKMMMKMKKKKMMMMKKKKKKMMMKMFFFNDGDNNIQIDENIGNNIDEIIDDNQDDNDDNDNNKKMLLLLLLLLLLLLLLLLLLLLLLLLLLMKLLLLLLLLLLLLKLLLLLLLLLLLLMMMKKKLLLLLLLKKKKMMLLLLLLLLLLLLMMMMKLLLLLLLLLLLLKKKLLLLLLLLLLLLLLLLLLLLLLLLLLLLMKKKKKKKKKKKMMMMMLLLLLLLLLLLLLMMKMMKMMAMKLMKKKKMMLLLLLLLLLLLLMLAMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLKKKKKKMMMKMLLLLLLLLLLLLLQIIIIQKKKF","n":["Conn","ConnectionOptions","Database","Existing","Fresh","Fresh","InnerNotification","add_captcha_levels","add_traffic_pattern","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","captcha_exists","clone","clone","clone_db","clone_into","clone_into","connect","create_captcha","create_notification","default","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","dev","disable_logging","email_exists","eq","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","heading","id","into","into","into","into","into","mark_notification_read","message","migrate","name","ping","pool","pool_options","prelude","received","record_confirm","record_fetch","record_solve","register","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","url","username_exists","vzip","vzip","vzip","vzip","vzip","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","ColumnDecode","ColumnIndexOutOfBounds","ColumnNotFound","Configuration","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Database","Database","Decode","Email","EmailTaken","Error","GetConnection","Io","Level","Login","MCDatabase","Migrate","Migrate","NameHash","Notification","NotificationNotFound","Pool","PoolClosed","PoolTimedOut","Protocol","Register","RowNotFound","Secret","SecretTaken","StatsUnixTimestamp","Tls","TrafficPattern","TrafficPatternNotFound","TypeNotFound","UpdateEmail","Username","UsernameTaken","WorkerCrashed","add_captcha_levels","add_traffic_pattern","as_database_error","async_trait","avg_traffic","borrow","borrow_mut","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","dev","difficulty_factor","duration","duration","email","email_exists","errors","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into_database_error","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","prelude","provide","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","source","tests","to","to_string","try_from","try_into","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","index","index","len","source","type_name","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","async_trait","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","errors","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","prelude","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","tests","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","database_works","AccountNotFound","BoxDynError","CaptchaKeyTaken","CaptchaNotFound","DBError","DBError","DBResult","EmailTaken","NotificationNotFound","SecretTaken","TrafficPatternNotFound","UsernameTaken","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","dev","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","async_trait","avg_traffic","broke_my_site_traffic","captcha_exists","clone_db","config_fetches","config_id","confirms","connect","create_captcha","create_notification","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","difficulty_factor","duration","duration","email","email_exists","fetch_config_fetched","fetch_confirm","fetch_solve","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","key","key","mark_notification_read","message","message","migrate","name","new_email","peak_sustainable_traffic","ping","received","record_confirm","record_fetch","record_solve","register","secret","secret","solves","to","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","database_works","map_register_err","map_row_not_found_err","AccountNotFound","AddNotification","BoxDynError","Captcha","CaptchaKeyTaken","CaptchaNotFound","CloneSPDatabase","Conn","Connect","CreateCaptcha","DBError","DBError","DBOps","DBResult","Email","EmailTaken","GetConnection","Level","Login","MCDatabase","Migrate","NameHash","Notification","NotificationNotFound","Pool","Register","Secret","SecretTaken","StatsUnixTimestamp","TrafficPattern","TrafficPatternNotFound","UpdateEmail","Username","UsernameTaken","add_captcha_levels","add_traffic_pattern","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","captcha_exists","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_db","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","config_fetches","config_id","confirms","connect","create_captcha","create_notification","default","default","default","default","default","default","default","delete_captcha","delete_captcha_levels","delete_traffic_pattern","delete_user","description","description","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","difficulty_factor","duration","duration","email","email_exists","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","fetch_config_fetched","fetch_confirm","fetch_solve","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","get_all_unread_notifications","get_all_user_captchas","get_captcha_config","get_captcha_cooldown","get_captcha_levels","get_conn","get_email","get_password","get_secret","get_secret_from_captcha","get_traffic_pattern","hash","hash","heading","heading","id","into","into","into","into","into","into","into","into","into","into","into","into","into","key","key","mark_notification_read","message","message","migrate","name","new_email","ops","peak_sustainable_traffic","ping","provide","received","record_confirm","record_fetch","record_solve","register","secret","secret","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","solves","source","tests","to","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_captcha_key","update_captcha_metadata","update_email","update_password","update_secret","update_username","username","username","username","username_exists","visitor_threshold","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Conn","Connect","DBOps","GetConnection","Migrate","Pool","connect","get_conn","migrate","database_works"],"q":["db_sqlx_postgres","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::Error","","","","","db_sqlx_postgres::dev::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::dev::errors","","","","","","","","","","","","db_sqlx_postgres::dev::dev::ops","","","","","","","","","db_sqlx_postgres::dev::dev::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::dev::tests","db_sqlx_postgres::dev::errors","","","","","","","","","","","","db_sqlx_postgres::dev::ops","","","","","","","","","db_sqlx_postgres::dev::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::prelude::dev","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::dev::tests","db_sqlx_postgres::errors","","db_sqlx_postgres::prelude","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","db_sqlx_postgres::prelude::ops","","","","","","","","","db_sqlx_postgres::prelude::tests"],"d":["Use an existing database pool","Connect to database","","existing connection","","fresh connection","Represents notification","Add levels to captcha","Add traffic configuration","","","","","","","","","","","check if captcha exists","","","","","","","create new captcha","create new notification","","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","","","check if email exists","","Error-handling utilities","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","mark a notification read","message of the notification","","receiver name of the notification","ping DB","","","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","","check if username exists","","","","","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","Error occurred while decoding a value from a specific …","Column index was out of bounds.","No column found for the given name.","Error occurred while parsing a connection string.","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","","Error returned from the database.","Error occurred while decoding a value.","email as login","Email is taken","Represents all the ways a method can fail within SQLx.","Get database connection","Error communicating with the database backend.","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Pool::close was called while we were waiting in …","A Pool::acquire timed out due to connections not becoming …","Unexpected or invalid data encountered while communicating …","Data required to register a new user","No rows returned by a query that expected to return at …","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","Error occurred while attempting to establish a TLS …","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","Type in query doesn’t exist. Likely due to typo or …","data required to update them email of a user","username as login","Username is taken","A background worker has crashed.","Add levels to captcha","Add traffic configuration","","","average traffic of user’s website","","","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","","","Returns the argument unchanged.","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","","Test utilities","who is the notification addressed to?","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","represents all the ways a trait can fail using this crate","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","useful imports for users working with a supported database","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","Test utilities","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","test all database functions","Account not found","Convenience type alias for grouping driver-specific errors","Captcha key is taken","Captcha not found","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Generic result data structure","Email is taken","Notification not found","Secret is taken","Traffic pattern not found","Username is taken","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","useful imports for supporting a new database","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","","average traffic of user’s website","traffic that bought the user’s website down; optional","check if captcha exists","clone DB","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","the peak traffic that the user’s website can handle","ping DB","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","times at which the PoW was solved","who is the notification addressed to?","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","test all database functions","map postgres errors to DBError types","map custom row not found error to DB error","Account not found","Data required to add notification","Convenience type alias for grouping driver-specific errors","Data representing a captcha","Captcha key is taken","Captcha not found","Trait to clone MCDatabase","database connection type","Create database connection","data required to create new captcha","Error data structure grouping various error subtypes","errors that are specific to a database implementation","Database operations trait(migrations, pool creation and …","Generic result data structure","email as login","Email is taken","Get database connection","Level struct that describes threshold-difficulty factor …","types of credentials used as identifiers during login","mCaptcha’s database requirements. To implement support …","database migrations","type encapsulating username and hashed password of a user","Represents notification","Notification not found","database specific pool-type","Data required to register a new user","datastructure representing a user’s secret","Secret is taken","Captcha statistics with time recorded in UNIX epoch formats","User’s traffic pattern; used in generating a captcha …","Traffic pattern not found","data required to update them email of a user","username as login","Username is taken","Add levels to captcha","Add traffic configuration","average traffic of user’s website","","","","","","","","","","","","","","","","","","","","","","","","","","","traffic that bought the user’s website down; optional","check if captcha exists","","","","","","","","","","","","","clone DB","","","","","","","","","","","","","times at which the configuration were fetched","Database assigned ID","times at which the PoW token was verified","database specific error-type create connection pool","create new captcha","create new notification","","","","","","","","Delete captcha","Delete all levels of a captcha","Delete traffic configuration","delete a user","description of the captcha","description of the captcha","","","","","","","","","","","","","","cool down duration","cool down duration","Optionally, email of new use","check if email exists","","","","","","","","","","","","","fetch PoWConfig fetches","fetch PoWConfig confirms","fetch PoWConfig solves","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","notification sender","get all unread notifications","Get all captchas belonging to user","Get captcha config","Get captcha’s cooldown period","Get captcha levels","database specific error-type get connection from …","get user email","get a user’s password","get a user’s secret","get a user’s secret from a captcha key","Get traffic configuration","hashed password of new use","hashed password","heading of the notification","heading of the notification","db assigned ID of the notification","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","secret key of the captcha","secret key of the captcha","mark a notification read","message of the notification","message of the notification","database specific error-type run migrations","receiver name of the notification","new email address of the user","meta operations like migration and connecting to a database","the peak traffic that the user’s website can handle","ping DB","","when notification was received","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig solves","register a new user","secret of new user","user’s secret","","","","","","","","","","","","","times at which the PoW was solved","","Test utilities","who is the notification addressed to?","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","update captcha key; doesn’t change metadata","update captcha metadata; doesn’t change captcha key","update a user’s email","update user’s password","update a user’s secret","update username","username of new user","username of the user","username","check if username exists","","","","","","","","","","","","","","","database connection type","Create database connection","Database operations trait(migrations, pool creation and …","Get database connection","database migrations","database specific pool-type","database specific error-type create connection pool","database specific error-type get connection from …","database specific error-type run migrations","test all database functions"],"i":[0,0,0,11,0,11,0,1,1,39,11,40,1,8,39,11,40,1,8,1,1,8,1,1,8,11,1,1,8,1,1,1,1,0,40,1,8,0,1,1,1,8,39,11,40,1,8,1,1,1,1,1,1,1,1,1,1,8,8,39,11,40,1,8,1,8,1,8,1,1,40,0,8,1,1,1,1,1,8,39,11,40,1,8,39,11,40,1,8,39,11,40,1,8,1,1,1,1,1,1,40,1,39,11,40,1,8,33,0,0,0,33,33,0,24,24,24,24,41,0,0,0,33,0,0,0,24,24,17,33,0,0,24,0,0,0,0,24,0,0,33,42,24,24,24,0,24,0,33,0,24,0,33,24,0,17,33,24,9,9,24,0,6,24,24,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,0,35,12,37,19,9,0,9,9,9,24,24,24,24,24,24,24,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,24,24,12,37,9,36,13,44,36,22,0,6,9,0,24,36,9,9,9,9,19,38,34,24,0,13,24,24,24,24,9,9,9,9,9,9,19,22,23,9,35,24,45,46,45,46,47,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,0,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,0,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,0,6,9,0,36,9,9,9,9,19,38,34,0,13,9,9,9,9,9,9,19,22,23,9,35,33,0,33,33,0,33,0,33,33,33,33,33,41,0,0,0,0,42,42,41,44,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,0,33,0,33,33,0,33,0,33,33,33,33,33,41,0,0,0,0,42,42,41,44,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,0,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,0,6,6,9,43,34,37,34,42,9,9,9,9,9,9,12,37,35,12,37,19,9,9,9,9,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,12,37,9,36,13,44,36,22,6,9,36,9,9,9,9,19,38,34,13,9,9,9,9,9,9,19,22,23,9,35,0,0,0,33,0,0,0,33,33,0,41,0,0,0,33,0,0,17,33,0,0,0,0,0,0,0,33,42,0,0,33,0,0,33,0,17,33,9,9,6,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,6,9,19,22,17,23,34,35,36,13,6,12,37,38,43,19,22,17,23,34,35,36,13,6,12,37,38,34,37,34,42,9,9,34,36,13,6,12,37,38,9,9,9,9,12,37,19,22,17,23,34,35,36,13,6,12,37,38,35,12,37,19,9,19,22,17,23,34,35,36,13,6,12,37,38,9,9,9,33,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,36,13,6,12,37,38,13,9,9,9,9,9,41,9,9,9,9,9,19,23,36,13,36,33,19,22,17,23,34,35,36,13,6,12,37,38,12,37,9,36,13,44,36,22,0,6,9,33,36,9,9,9,9,19,38,19,22,17,23,34,35,36,13,6,12,37,38,34,33,0,13,19,22,17,23,34,35,36,13,6,12,37,38,33,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,33,19,22,17,23,34,35,36,13,6,12,37,38,9,9,9,9,9,9,19,22,23,9,35,33,19,22,17,23,34,35,36,13,6,12,37,38,41,0,0,0,0,42,42,41,44,0],"f":[0,0,0,0,0,0,0,[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2,6],[[5,[[4,[3]]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,[7,[2]],2],[[5,[[4,[3]]]]]],[1,1],[8,8],[[],[[4,[9,10]]]],[[]],[[]],[11,[[5,[[4,[3]]]]]],[[1,2,12],[[5,[[4,[3]]]]]],[[1,13],[[5,[[4,[3]]]]]],[[],8],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],0,0,[[1,2],[[5,[[4,[3]]]]]],[[8,8],14],0,[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[8,15],16],[[]],[[]],[[]],[[]],[[]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,[7,[2]],2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,17],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],0,0,[[]],[[]],[[]],[[]],[[]],[[1,2,18],[[5,[[4,[3]]]]]],0,[1,[[5,[[4,[3]]]]]],0,[1,[[5,[[4,[3]]]]]],0,0,0,0,[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,2],[[5,[[4,[3]]]]]],[[1,19],[[5,[[4,[3]]]]]],[[]],[[]],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],21],[[],21],[[],21],[[],21],[[],21],[[1,2,2,2],[[5,[[4,[3]]]]]],[[1,2,12],[[5,[[4,[3]]]]]],[[1,22],[[5,[[4,[3]]]]]],[[1,23],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],[[1,2,2],[[5,[[4,[3]]]]]],0,[[1,2],[[5,[[4,[3]]]]]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],[24,[[7,[25]]]],0,0,[[]],[[]],0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[24,15],[[20,[26]]]],[[24,15],[[20,[26]]]],[[],24],[27,24],[28,24],[29,24],[[]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[]],[24,[[7,[[4,[25,10]]]]]],0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[30],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,[24,[[7,[31]]]],0,0,[[],32],[[],20],[[],20],[[],21],[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],0,0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[19,12,6,13],3],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,0,0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[4,[9,10]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,[[],[[5,[[4,[3,10]]]]]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,0,0,[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[19,12,6,13],3],[24,33],[[24,33],33],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[2,2],[[5,[[4,[3,10]]]]]],[[2,2,6],[[5,[[4,[3,10]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[19,19],[22,22],[17,17],[23,23],[34,34],[35,35],[36,36],[13,13],[6,6],[12,12],[37,37],[38,38],[[],[[4,[9,10]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[13,[[5,[[4,[3,10]]]]]],[[],34],[[],36],[[],13],[[],6],[[],12],[[],37],[[],38],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],0,0,[[],[[20,[19]]]],[[],[[20,[22]]]],[[],[[20,[17]]]],[[],[[20,[23]]]],[[],[[20,[34]]]],[[],[[20,[35]]]],[[],[[20,[36]]]],[[],[[20,[13]]]],[[],[[20,[6]]]],[[],[[20,[12]]]],[[],[[20,[37]]]],[[],[[20,[38]]]],0,0,0,0,[2,[[5,[[4,[3,10]]]]]],[[19,19],14],[[22,22],14],[[17,17],14],[[23,23],14],[[34,34],14],[[35,35],14],[[36,36],14],[[13,13],14],[[6,6],14],[[12,12],14],[[37,37],14],[[38,38],14],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[33,15],[[20,[26]]]],[[33,15],[[20,[26]]]],[[19,15],[[20,[26]]]],[[22,15],[[20,[26]]]],[[17,15],[[20,[26]]]],[[23,15],[[20,[26]]]],[[34,15],[[20,[26]]]],[[35,15],[[20,[26]]]],[[36,15],[[20,[26]]]],[[13,15],[[20,[26]]]],[[6,15],[[20,[26]]]],[[12,15],[[20,[26]]]],[[37,15],[[20,[26]]]],[[38,15],[[20,[26]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[8,36],[[]],[[]],[[]],[[]],[[]],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[[7,[2]],2],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[17,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[2,18],[[5,[[4,[3,10]]]]]],0,0,[[],[[5,[[4,[3,10]]]]]],0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[30],0,[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[2,[[5,[[4,[3,10]]]]]],[19,[[5,[[4,[3,10]]]]]],0,0,[19,20],[22,20],[17,20],[23,20],[34,20],[35,20],[36,20],[13,20],[6,20],[12,20],[37,20],[38,20],0,[33,[[7,[31]]]],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],32],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],20],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[],21],[[2,2,2],[[5,[[4,[3,10]]]]]],[[2,12],[[5,[[4,[3,10]]]]]],[22,[[5,[[4,[3,10]]]]]],[23,[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],[[2,2],[[5,[[4,[3,10]]]]]],0,0,0,[2,[[5,[[4,[3,10]]]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[],[[5,[[4,[3,10]]]]]],[[19,12,6,13],3]],"p":[[3,"Database"],[15,"str"],[8,"Future"],[3,"Box"],[3,"Pin"],[3,"TrafficPattern"],[4,"Option"],[3,"InnerNotification"],[8,"MCDatabase"],[3,"Global"],[4,"ConnectionOptions"],[3,"CreateCaptcha"],[3,"AddNotification"],[15,"bool"],[3,"Formatter"],[6,"Result"],[4,"Login"],[15,"i32"],[3,"Register"],[4,"Result"],[3,"TypeId"],[3,"UpdateEmail"],[3,"NameHash"],[4,"Error"],[8,"DatabaseError"],[3,"Error"],[4,"MigrateError"],[3,"Error"],[3,"InvalidDNSNameError"],[3,"Demand"],[8,"Error"],[3,"String"],[4,"DBError"],[3,"StatsUnixTimestamp"],[3,"Level"],[3,"Notification"],[3,"Captcha"],[3,"Secret"],[3,"Conn"],[3,"Fresh"],[8,"GetConnection"],[8,"Connect"],[8,"CloneSPDatabase"],[8,"Migrate"],[13,"ColumnIndexOutOfBounds"],[13,"ColumnDecode"],[13,"TypeNotFound"]]},\ +"mcaptcha":{"doc":"","t":"GGDRRDDRDDDDRDDDDHHHHHHHHDDDRRRRDDDDRDDRRMMMMMMMMMMMMMMMMMMFFFFFFFFFFFFFFFFMMALLLLLLLLLLLLLLLLMMMMAMAAMMALLLLLLLLAAALLLLLLLLFFLLLLLLLLMFAMAMAMMMAAMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLAARCDEDDNNAALLLLLLLLLLLLLLLLLLFLLLLMMAAAAMAFLLLLLLLLLLLLLLLLLLLLLDDRREEDDDDNNNNCLLLLLLLLLLLLLLLLLLLLALLLLAMLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMCAAALLFLLLLLLLLLLLLLLLLLLLLLLLLLLAMLLLLLLLLLLLLLLLLLLLLDFLLLAFLLLLFDREDDNNLLLLLLLLLLLLLLLLMDFLLLLLLLLLLLLLLLLLMMLLLFDFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDRDEDDNNNNLLLLLLLLLLLLLLMMLLLLLLLLLLLLLLLLLLLLMMMMMLLFLLLLLLLLLLLLLLLLLLLFDFLLLLLLLLLLLDLLMMLMLLLLLMMMMMLLLLLLLDFLLLLFLLLLLLDFLLRDEDDNNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMLLALFDFLLLLLLLLLLLLLLLLLLLMDFLLLLLLLLLLLFLLLLLLLLLLLLDFDFLLLAAFDFLLLLLLLLLLLLDLLLLLMMLMLLLLRRRDDDEEEDDDDDDNNNNNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMFMMMMMMFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLLLLLLLLLLLLLLLLLLLAAAAFAFAADRRDEEDDDDNNNNNNNLLLLLLLLLLLLLLLLLLLLDFMLLLLMLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMLALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFDREDDNNNLLLLLLLLLLLLDFLLLLLLLLLLLLLLLLLMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLRRDDEEDDDDNNNNNNNNMLLLLLLLLLLLLLLLLLLLLMFLLLLDFLMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMLLALLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDFLLLLLLLLLLLLLLLLLLLLDLLMLLLLLLMLRRDDEEDDDDNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLLLLLLLLLLLDFLLLLLLLLLMMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLDLLMMMLMLLMLLLMMLRDEDDNNLLLLLLLLLLLLLLLLLLLLLLLLDFLLLLLMMMLALLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLMLLLLLLRDEDDNNNNNLLLLLLLLLLLLMLLMLLLLLLLLLLLLLLLLMMMMLLALLLLLLLLLLLLLLLLLLLDFDFLLLLLLLLLLLFDDERRDDENNNNEEDDDDNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDFLLLLLLLLLLLMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMDFLLLLLLLLLLLLLLLMMMMLLLMMLLALLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMLLLLLLLLLLLLLLLLLLLLLLLLDLLMLMLLLLLLAAAAFDREDDNNNNDFLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLMMMLLMLLLLLLLLLLLLLLLLLLLLLLLLLLRDEDDNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLLDFMMLLLLLMMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLRDEDDNNLLLLLLLLLLLLLLLLLLLLLMLLLLLMDFMLLLLLLLLLLLLLLLLLLLLLLLLLLLDMLLLMLMLLLLLCAAFAARDEDDNNLLLLLLLLLLLLLLLLLLLLLLLLDFFLLLLLMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLDLLLLMLLOMLLLLMLMLRDEDDNNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMLLLMLLLLLLLLLLLLLLLDFLLLLLLLLLLDRRDEEDDDDNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMLMLLLLMLLLLLLLLLLLLLLLLLLLLLLLLLLLMDFLLLLLLLLLLLLLLLLLLLRDMMLLMLLLMLMMLLLLDNGNELLLLLMMMOOLLLLLLLMLLLLLMMLLLLLLLLLLRDRRRLLLLLLLLLLLMLLLLLGAAFFRRDLLLLLMLLLLLLLLDRRLLLLLLLLDFRRLLLLLLFRRDFLLLLLLLLLAFDFLLLLLLLLLLLLLLLLDMLLLMLLMLLLLADRHRLLLLLLLLLLLLLFMLNNNNNNDNDRNNNNEGNNNNENGDNNNNNNNEDDNNLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLRAAFAAFAAAAFADDHRHMFFLLLLLLLLLLLLLLLLDFLLLLLLLLLLLLLLLLDDHRHMFFLLLLLLLLLLLLLLLLDFLLLLLLLLLLLLLLLLRDLLLLLLMMLLLLLRHDLLLLMLLLLLLLLLMLRDDHHRHDMMFFFFLLLLLLLLLLLLDFLLLLLLLLMLLLLAFMLLLLLLLLLLLLLLLLLDLLLMLLLLLMLRRRRDRHLLLLLLLLLLLADFLLLAFAAMLLLLLLLLLDDRHLLLLLLLLLLMMLLLMMMLDFLMLLLLLLLLLLLLLLLRDRLLLLMLLMMMLLLLRRRRDRHLLLLLLLLLLDFMLLLLLLLLLLLLLAMFDFLLLLLLLLLLLLLDFMLLLLRDLLMLLMLLLLLMLAAAAAFADDDDHHRHHMMFFFFDFMLLLLLLLLLLLLMLLLLLLLLDFMMMMMLLLLLLLLLLLLMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDFLLLLLLLDDRRHHRDFLLLLLLLLLLLLMDFMLLLLLLLLMMMMLLMLLLLLLLLLLLLLLLLLLLLLLLLRRRRDRHLLLLLLLLLLDFLLLLMLLLLLLLLLRDMMLLMMMLLLLLLLMLLLLMLDRRHRLLLLLLMLLLLMMMLLLLMLLLLLLLDFLLRDMMLLMMLLLMLLMMMMMLLLLDDHHMFFLLLLLLLLLLMLLLLLLLLLDFLLLLLLLLLLMLLLFRDEDDRRRRRRRRNNDDDDREEEEEEEEDDDDDDDDDDDDDDDDNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMFLLLLLLLLLLLLLLLLMMMMMMLLLLLLLLLLLLLLLLMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMLMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMLMMMMMMMMMMMMLMFMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLCAFADLLMLLLLLLLLDDALLLLLLLLRRRRDFLLLLLLLLFFRRRRLLLLLLLLLLDFLLLLLLLLLLLLLLLLDDDDDDGDHHHHHHHHHHDDDMMMMMMMMMMFFFFFFFFFFFFFFFFFFFFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDIDRDIEDDNNNNLLLLLLLLLLLLLLLLLLKMMLLLLLLLLLLKLLLLLLLLLLLLLLLLLLLMMKLLKLLKLLLMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDDHRHRMFFLLLLLLLLLLLLLLLLLLLAFDFLLLLLLLLLLLLLDLLLLLLLLML","n":["AppData","ArcData","BAR_CHART","CACHE_AGE","COMPILED_DATE","CREDIT_CARD","CSS","DOCS","DOCS_ICON","Data","FILES","GITHUB","GIT_COMMIT_HASH","HELP_CIRCLE","HOME","JS","KEY","LAZY","LAZY","LAZY","LAZY","LAZY","LAZY","LAZY","LAZY","MCAPTCHA_TRANS_ICON","MESSAGE","MOBILE_CSS","PAGES","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","SETTINGS_ICON","SOURCE_FILES_OF_INSTANCE","Settings","V1_API_ROUTES","VERIFICATIN_WIDGET_CSS","VERIFICATIN_WIDGET_JS","VERSION","WIDGET_ROUTES","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__stability","__stability","__stability","__stability","__stability","__stability","__stability","__stability","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","allow_demo","allow_registration","api","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","captcha","captcha","commercial","creds","data","database","date","db","db","debug","demo","deref","deref","deref","deref","deref","deref","deref","deref","docs","email","errors","from","from","from","from","from","from","from","from","get_identity_service","get_json_err","into","into","into","into","into","into","into","into","mailer","main","pages","redis","routes","server","settings","settings","smtp","source_code","static_assets","stats","stats","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","widget","v1","FIELDS","ROUTES","RedirectQuery","__Field","__FieldVisitor","__Visitor","__field0","__ignore","account","auth","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","deserialize","deserialize","expecting","expecting","fmt","fmt","from","from","from","from","get_middleware","into","into","into","into","lifetime","marker","mcaptcha","meta","notifications","pow","redirect_to","routes","services","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","AccountCheckPayload","AccountCheckResp","FIELDS","FIELDS","__Field","__Field","__FieldVisitor","__FieldVisitor","__Visitor","__Visitor","__field0","__field0","__ignore","__ignore","auth","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","delete","deserialize","deserialize","deserialize","deserialize","email","exists","expecting","expecting","expecting","expecting","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","lifetime","lifetime","marker","marker","mcaptcha","password","routes","secret","serialize","serialize","services","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","username","val","visit_bytes","visit_bytes","visit_map","visit_map","visit_seq","visit_seq","visit_str","visit_str","visit_u64","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","borrow","borrow_mut","delete_account","delete_account","from","into","register","runners","services","try_from","try_into","type_id","vzip","delete_user","Email","FIELDS","__Field","__FieldVisitor","__Visitor","__field0","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deserialize","deserialize","email","email_exists","email_exists","expecting","expecting","fmt","fmt","fmt","from","from","from","from","from","from","into","into","into","into","into","into","lifetime","marker","register","register","serialize","services","set_email","set_email","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","ChangePasswordReqest","FIELDS","UpdatePassword","__Field","__FieldVisitor","__Visitor","__field0","__field1","__field2","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","confirm_new_password","confirm_new_password","deserialize","deserialize","expecting","expecting","fmt","fmt","fmt","from","from","from","from","from","from","from","into","into","into","into","into","into","lifetime","marker","new_password","new_password","password","register","serialize","services","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","update_password_runner","update_user_password","update_user_password","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","Account","borrow","borrow_mut","delete","email_exists","from","get_secret","into","new","try_from","try_into","type_id","update_email","update_password","update_secret","update_username","username_exists","vzip","borrow","borrow","borrow_mut","borrow_mut","from","from","get_secret","get_secret","into","into","register","register","services","try_from","try_from","try_into","try_into","type_id","type_id","update_user_secret","update_user_secret","vzip","vzip","FIELDS","Username","__Field","__FieldVisitor","__Visitor","__field0","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deserialize","deserialize","expecting","expecting","fmt","fmt","fmt","from","from","from","from","from","from","into","into","into","into","into","into","lifetime","marker","register","register","runners","serialize","services","set_username","set_username","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","username","username_exists","username_exists","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","username_exists","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","from","from","from","into","into","into","login","login","register","register","register","register","register","routes","runners","services","signout","signout","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Auth","borrow","borrow_mut","from","get_login_route","into","login","logout","new","register","try_from","try_into","type_id","vzip","FIELDS","FIELDS","FIELDS","Login","Password","Register","__Field","__Field","__Field","__FieldVisitor","__FieldVisitor","__FieldVisitor","__Visitor","__Visitor","__Visitor","__field0","__field0","__field0","__field1","__field1","__field2","__field3","__ignore","__ignore","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","confirm_password","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","email","expecting","expecting","expecting","expecting","expecting","expecting","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into","into","into","lifetime","lifetime","lifetime","login","login_runner","marker","marker","marker","password","password","password","register_runner","serialize","serialize","serialize","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","username","visit_bytes","visit_bytes","visit_bytes","visit_map","visit_map","visit_map","visit_seq","visit_seq","visit_seq","visit_str","visit_str","visit_str","visit_u64","visit_u64","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","create","delete","easy","get","get_random","routes","services","stats","update","CreateCaptcha","FIELDS","FIELDS","MCaptchaDetails","__Field","__Field","__FieldVisitor","__FieldVisitor","__Visitor","__Visitor","__field0","__field0","__field1","__field1","__field2","__ignore","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","create","create","description","deserialize","deserialize","deserialize","deserialize","duration","expecting","expecting","expecting","expecting","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","key","levels","lifetime","lifetime","marker","marker","name","register","runner","serialize","serialize","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_bytes","visit_map","visit_map","visit_seq","visit_seq","visit_str","visit_str","visit_u64","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","create","DeleteCaptcha","FIELDS","__Field","__FieldVisitor","__Visitor","__field0","__field1","__ignore","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","delete","delete","deserialize","deserialize","expecting","expecting","fmt","fmt","fmt","from","from","from","from","from","into","into","into","into","into","key","lifetime","marker","password","register","serialize","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","FIELDS","FIELDS","TrafficPatternRequest","UpdateTrafficPattern","__Field","__Field","__FieldVisitor","__FieldVisitor","__Visitor","__Visitor","__field0","__field0","__field1","__field1","__field2","__field3","__ignore","__ignore","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","calculate","clone","clone","clone_into","clone_into","create","create","default","description","deserialize","deserialize","deserialize","deserialize","expecting","expecting","expecting","expecting","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into","key","lifetime","lifetime","marker","marker","pattern","peak_sustainable_traffic","register","register","routes","serialize","serialize","services","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update","update","visit_bytes","visit_bytes","visit_map","visit_map","visit_seq","visit_seq","visit_str","visit_str","visit_u64","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Easy","borrow","borrow_mut","create","from","into","new","try_from","try_into","type_id","update","vzip","FIELDS","FIELDS","I32Levels","Levels","__Field","__Field","__FieldVisitor","__FieldVisitor","__Visitor","__Visitor","__field0","__field0","__field1","__ignore","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","deserialize","deserialize","deserialize","deserialize","difficulty_factor","expecting","expecting","expecting","expecting","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","get_captcha","get_captcha","into","into","into","into","into","into","into","into","into","levels","lifetime","lifetime","marker","marker","register","serialize","serialize","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_bytes","visit_map","visit_map","visit_seq","visit_seq","visit_str","visit_str","visit_u64","visit_u64","visitor_threshold","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Captcha","borrow","borrow_mut","create","delete","easy","from","get","into","new","stats","try_from","try_into","type_id","update","update_key","vzip","FIELDS","StatsPayload","__Field","__FieldVisitor","__Visitor","__field0","__ignore","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deserialize","deserialize","expecting","expecting","fmt","fmt","fmt","from","from","from","from","from","get","get","into","into","into","into","into","key","lifetime","marker","register","routes","serialize","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","Stats","borrow","borrow_mut","from","get","into","new","try_from","try_into","type_id","vzip","FIELDS","UpdateCaptcha","__Field","__FieldVisitor","__Visitor","__field0","__field1","__field2","__field3","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","description","deserialize","deserialize","duration","expecting","expecting","fmt","fmt","from","from","from","from","from","from","into","into","into","into","into","into","key","levels","lifetime","marker","register","register","runner","serialize","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","update_captcha","update_captcha","update_key","update_key","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","update_captcha","BuildDetails","BuildDetailsBuilder","BuildDetailsBuilderError","FIELDS","FIELDS","Health","HealthBuilder","HealthBuilderError","UninitializedField","UninitializedField","ValidationError","ValidationError","__Field","__Field","__FieldVisitor","__FieldVisitor","__Visitor","__Visitor","__field0","__field0","__field1","__field1","__ignore","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","build","build_details","build_details","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","create_empty","create_empty","db","db","db","default","default","deserialize","deserialize","deserialize","deserialize","expecting","expecting","expecting","expecting","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","git_commit_hash","git_commit_hash","git_commit_hash","health","health","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_redis","lifetime","lifetime","marker","marker","provide","provide","redis","redis","redis","register","register","routes","serialize","serialize","services","to_owned","to_owned","to_owned","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","version","version","version","visit_bytes","visit_bytes","visit_map","visit_map","visit_seq","visit_seq","visit_str","visit_str","visit_u64","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Meta","borrow","borrow_mut","build_details","from","health","into","new","try_from","try_into","type_id","vzip","add","get","mark_read","routes","services","AddNotificationRequest","FIELDS","__Field","__FieldVisitor","__Visitor","__field0","__field1","__field2","__ignore","add_notification","add_notification","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","default","deserialize","deserialize","eq","expecting","expecting","fmt","fmt","fmt","from","from","from","from","from","heading","into","into","into","into","into","lifetime","marker","message","register","serialize","to","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","FIELDS","NotificationResp","__Field","__FieldVisitor","__Visitor","__field0","__field1","__field2","__field3","__field4","__ignore","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","default","deserialize","deserialize","eq","expecting","expecting","fmt","fmt","from","from","from","from","from","from","from_notifications","get_notification","get_notification","heading","id","into","into","into","into","into","lifetime","marker","message","name","received","register","serialize","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","FIELDS","MarkReadReq","__Field","__FieldVisitor","__Visitor","__field0","__ignore","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","deserialize","deserialize","expecting","expecting","fmt","fmt","from","from","from","from","from","id","into","into","into","into","into","lifetime","mark_read","mark_read","marker","register","serialize","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","Notifications","add","borrow","borrow_mut","from","get","into","mark_read","new","try_from","try_into","type_id","vzip","I32Levels","get_config","routes","services","verify_pow","verify_token","FIELDS","GetConfigPayload","__Field","__FieldVisitor","__Visitor","__field0","__ignore","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deserialize","deserialize","expecting","expecting","fmt","fmt","fmt","from","from","from","from","from","get_config","get_config","init_mcaptcha","into","into","into","into","into","key","lifetime","marker","register","serialize","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","PoW","borrow","borrow_mut","from","get_config","get_config","into","new","rm_scope","scope","try_from","try_into","type_id","validate_captcha_token","validate_captcha_token","verify_pow","verify_pow","vzip","FIELDS","ValidationToken","__Field","__FieldVisitor","__Visitor","__field0","__ignore","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deserialize","deserialize","expecting","expecting","fmt","fmt","fmt","from","from","from","from","from","into","into","into","into","into","lifetime","marker","register","serialize","to_owned","token","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","verify_pow","verify_pow","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","CaptchaValidateResp","FIELDS","FIELDS","VerifyCaptchaResultPayload","__Field","__Field","__FieldVisitor","__FieldVisitor","__Visitor","__Visitor","__field0","__field0","__field1","__field2","__ignore","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","deserialize","deserialize","deserialize","deserialize","expecting","expecting","expecting","expecting","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","key","lifetime","lifetime","marker","marker","register","secret","serialize","serialize","to_owned","to_owned","token","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","valid","validate_captcha_token","validate_captcha_token","visit_bytes","visit_bytes","visit_map","visit_map","visit_seq","visit_seq","visit_str","visit_str","visit_u64","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","ROUTES","Routes","account","auth","borrow","borrow_mut","captcha","from","get_login_route","into","meta","new","notifications","pow","try_from","try_into","type_id","vzip","Data","Embedded","Mailer","Redis","SystemGroup","add_site","borrow","borrow","borrow_mut","borrow_mut","captcha","creds","db","enum_system_actor","enum_system_wrapper","from","from","get_creds","get_mailer","get_pow","into","into","mailer","new","new","new_system","remove","rename","settings","stats","try_from","try_from","try_into","try_into","type_id","type_id","validate_verification_tokens","verify_pow","vzip","vzip","DAY","Date","HOUR","MINUTE","WEEK","borrow","borrow_mut","clone","clone_into","date","fmt","format","from","into","new","print_date","time","to_owned","try_from","try_into","type_id","vzip","BoxDB","maria","pg","get_data","get_data","DEMO_PASSWORD","DEMO_USER","DemoUser","abort","borrow","borrow_mut","delete_demo_user","from","handle","into","register_demo_user","run","spawn","try_from","try_into","type_id","vzip","Asset","DOCS","OPEN_API_SPEC","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","dist","dist","excludes","excludes","from","from","from","from","get","get","handle_embedded_file","includes","includes","index","index","into","into","into","into","iter","iter","register","register","register","routes","services","spec","spec","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Docs","assets","borrow","borrow_mut","from","home","into","new","spec","try_from","try_into","type_id","vzip","verification","IndexPage","PAGE","SIZE_HINT","SUBJECT","borrow","borrow_mut","clone","clone_into","from","into","new","render_once","render_once_to","to_owned","try_from","try_into","type_id","verification","verification_link","vzip","AccountNotFound","BlacklistError","CaptchaError","CaptchaNotFound","ClosedForRegistration","DBError","DBErrorWrapper","EmailTaken","ErrorToResponse","FIELDS","InternalServerError","InternalServerError","NotAUrl","NotAnEmail","PageError","PageResult","PasswordTooLong","PasswordTooShort","PasswordsDontMatch","ProfainityError","ServiceError","ServiceError","ServiceResult","SmtpErrorWrapper","TokenNotFound","TrafficPatternNotFound","UnableToSendEmail","UsernameCaseMappedError","UsernameNotFound","UsernameTaken","WrongPassword","__Field","__FieldVisitor","__Visitor","__field0","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","deserialize","deserialize","eq","eq","eq","eq","error","error_response","error_response","expecting","expecting","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","lifetime","marker","provide","provide","provide","provide","serialize","source","source","source","source","status_code","status_code","to_string","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","NAME","auth","errors","get_middleware","panel","routes","services","sitemap","login","register","routes","services","sudo","INDEX","IndexPage","LAZY","PAGE","SIZE_HINT","__private_field","__stability","__static_ref_initialize","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","default","deref","from","from","from","into","into","into","login","login","register","render_once","render_once_to","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","INDEX","IndexPage","LAZY","PAGE","SIZE_HINT","__private_field","__stability","__static_ref_initialize","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","default","deref","from","from","from","into","into","into","join","join","register","render_once","render_once_to","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","AUTH","Auth","borrow","borrow_mut","from","get_login_route","get_sitemap","into","join","login","new","try_from","try_into","type_id","vzip","PAGE","SIZE_HINT","SudoPage","borrow","borrow_mut","clone","clone_into","data","from","into","new","render_once","render_once_to","to_owned","try_from","try_into","type_id","url","vzip","ERROR_ROUTE","ErrorPage","INTERNAL_SERVER_ERROR_BODY","LAZY","LAZY","PAGE","SIZE_HINT","UNKNOWN_ERROR_BODY","__private_field","__private_field","__stability","__stability","__static_ref_initialize","__static_ref_initialize","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deref","deref","error","error","from","from","from","from","into","into","into","into","message","new","register","render_once","render_once_to","routes","services","title","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Errors","borrow","borrow_mut","from","internal_server_error","into","new","try_from","try_into","type_id","unknown_error","vzip","COPY_ALT","COPY_CLASS","DONE_ALT","DONE_CLASS","IndexPage","PAGE","SIZE_HINT","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","from","from","into","into","new","notifications","panel","panel","register","render_once","render_once_to","routes","services","settings","sitekey","sitekeys","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","IndexPage","Notification","PAGE","SIZE_HINT","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","from","from","from","from","heading","id","into","into","into","message","n","name","new","notifications","notifications","print_date","received","register","render_once","render_once_to","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","PANEL","Panel","S","borrow","borrow_mut","from","get_sitemap","home","into","new","notifications","settings","sitekey","try_from","try_into","type_id","vzip","COPY_ALT","COPY_CLASS","DONE_ALT","DONE_CLASS","IndexPage","PAGE","SIZE_HINT","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","delete_account","delete_account","email","from","from","from","from","into","into","into","into","register","register","register","render_once","render_once_to","routes","secret","services","settings","settings","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","update_secret","update_secret","username","vzip","vzip","vzip","vzip","S","Settings","borrow","borrow_mut","delete_account","from","get_sitemap","home","into","new","try_from","try_into","type_id","update_secret","vzip","add","delete","edit","list","routes","services","view","ADVANCE_INDEX","AdvanceIndexPage","EASY_INDEX","EasyIndexPage","LAZY","LAZY","PAGE","SIZE_HINT","SIZE_HINT","__private_field","__private_field","__stability","__stability","__static_ref_initialize","__static_ref_initialize","advance","advance","avg_traffic","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic","clone","clone","clone_into","clone_into","default","default","deref","deref","easy","easy","form_description","form_description","form_duration","form_title","form_title","from","from","from","from","from","from","into","into","into","into","into","into","levels","peak_sustainable_traffic","register","register","render_once","render_once","render_once_to","render_once_to","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","borrow","borrow_mut","delete_sitekey","delete_sitekey","from","into","register","try_from","try_into","type_id","vzip","AdvanceEditPage","EasyEditPage","PAGE","READONLY","SIZE_HINT","SIZE_HINT","URL","advance","advance","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","duration","easy","easy","form_title","from","from","from","from","into","into","into","into","key","key","levels","name","new","new","pattern","register","register","render_once","render_once","render_once_to","render_once_to","to_owned","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","COPY_ALT","COPY_CLASS","DONE_ALT","DONE_CLASS","IndexPage","PAGE","SIZE_HINT","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","from","from","into","into","list_sitekeys","list_sitekeys","new","register","render_once","render_once_to","sitekeys","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","S","Sitekey","add_advance","add_easy","borrow","borrow_mut","delete","edit_advance","edit_easy","from","get_delete","get_edit_advance","get_edit_easy","get_sitemap","get_view","into","list","new","try_from","try_into","type_id","view","vzip","IndexPage","PAGE","READONLY","SIZE_HINT","URL","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","duration","from","from","into","into","key","levels","name","new","register","render_once","render_once_to","stats","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","view_sitekey","view_sitekey","vzip","vzip","ROUTES","Routes","about","auth","borrow","borrow_mut","donate","errors","from","get_login_route","get_sitemap","home","into","new","panel","privacy","security","sitemap","thanks","try_from","try_into","type_id","vzip","INDEX","IndexPage","LAZY","SIZE_HINT","__private_field","__stability","__static_ref_initialize","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","default","deref","domain","from","from","from","into","into","into","register","render_once","render_once_to","sitemap","sitemap","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","urls","vzip","vzip","vzip","services","CURRENT_DIR","Captcha","DBType","Database","DefaultDifficultyStrategy","ETC","FIELDS","FIELDS","FIELDS","FIELDS","FIELDS","FIELDS","FIELDS","Maria","Postgres","Redis","Server","Settings","Smtp","VARIANTS","__Field","__Field","__Field","__Field","__Field","__Field","__Field","__Field","__FieldVisitor","__FieldVisitor","__FieldVisitor","__FieldVisitor","__FieldVisitor","__FieldVisitor","__FieldVisitor","__FieldVisitor","__Visitor","__Visitor","__Visitor","__Visitor","__Visitor","__Visitor","__Visitor","__Visitor","__field0","__field0","__field0","__field0","__field0","__field0","__field0","__field0","__field1","__field1","__field1","__field1","__field1","__field1","__field1","__field1","__field2","__field2","__field2","__field2","__field2","__field2","__field3","__field3","__field3","__field3","__field3","__field4","__field4","__field4","__field4","__field5","__field5","__field5","__field5","__field6","__field7","__field8","__field9","__ignore","__ignore","__ignore","__ignore","__ignore","__ignore","__ignore","allow_demo","allow_registration","avg_traffic_difficulty","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broke_my_site_traffic_difficulty","captcha","check_url","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","commercial","cookie_secret","database","database_type","debug","default_difficulty_strategy","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","domain","duration","enable_stats","eq","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","expecting","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_url","gc","get_ip","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","ip","lifetime","lifetime","lifetime","lifetime","lifetime","lifetime","lifetime","lifetime","marker","marker","marker","marker","marker","marker","marker","marker","new","password","peak_sustainable_traffic_difficulty","pool","pool","port","port","proxy_has_tls","queue_length","redis","reply","runners","salt","serialize","server","set_database_url","smtp","source_code","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","url","url","url","url_prefix","username","visit_bytes","visit_bytes","visit_bytes","visit_bytes","visit_bytes","visit_bytes","visit_bytes","visit_bytes","visit_enum","visit_map","visit_map","visit_map","visit_map","visit_map","visit_map","visit_map","visit_seq","visit_seq","visit_seq","visit_seq","visit_seq","visit_seq","visit_seq","visit_str","visit_str","visit_str","visit_str","visit_str","visit_str","visit_str","visit_str","visit_u64","visit_u64","visit_u64","visit_u64","visit_u64","visit_u64","visit_u64","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","FileMap","filemap","services","static_files","FileMap","borrow","borrow_mut","files","from","get","into","new","try_from","try_into","type_id","vzip","Asset","Favicons","assets","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","excludes","excludes","excludes","excludes","favicons","favicons","from","from","from","from","get","get","get","get","handle_assets","handle_favicons","includes","includes","includes","includes","into","into","into","into","iter","iter","iter","iter","register","register","static_files","static_files","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","BAR_CHART","CREDIT_CARD","DOCS_ICON","GITHUB","HELP_CIRCLE","HOME","Img","KEY","LAZY","LAZY","LAZY","LAZY","LAZY","LAZY","LAZY","LAZY","LAZY","LAZY","MCAPTCHA_TRANS_ICON","MESSAGE","SETTINGS_ICON","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__private_field","__stability","__stability","__stability","__stability","__stability","__stability","__stability","__stability","__stability","__stability","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","__static_ref_initialize","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","from","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","CaptchaStats","CloneStats","Dummy","FIELDS","Real","Stats","__Field","__FieldVisitor","__Visitor","__field0","__field1","__field2","__ignore","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","clone_stats","config_fetches","confirms","default","default","default","deserialize","deserialize","eq","eq","eq","expecting","expecting","fetch","fetch","fetch","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","into","into","into","into","into","into","lifetime","marker","record_confirm","record_confirm","record_confirm","record_fetch","record_fetch","record_fetch","record_solve","record_solve","record_solve","serialize","solves","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","visit_bytes","visit_map","visit_seq","visit_str","visit_u64","vzip","vzip","vzip","vzip","vzip","vzip","INDEX_PAGE","IndexPage","LAZY","PAGE","SIZE_HINT","WIDGET_ROUTES","__private_field","__stability","__static_ref_initialize","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","deref","from","from","from","into","into","into","new","register","render_once","render_once_to","routes","services","show_widget","show_widget","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Widget","borrow","borrow_mut","from","into","new","try_from","try_into","type_id","verification_widget","vzip"],"q":["mcaptcha","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api","mcaptcha::api::v1","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::delete","","","","","","","","","","","","","mcaptcha::api::v1::account::delete::runners","mcaptcha::api::v1::account::email","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::password","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::routes","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::secret","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::username","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::account::username::runners","mcaptcha::api::v1::auth","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::auth::routes","","","","","","","","","","","","","","mcaptcha::api::v1::auth::runners","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha","","","","","","","","","mcaptcha::api::v1::mcaptcha::create","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::create::runner","mcaptcha::api::v1::mcaptcha::delete","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::easy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::easy::routes","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::get","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::routes","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::stats","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::stats::routes","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::update","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::mcaptcha::update::runner","mcaptcha::api::v1::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::meta::routes","","","","","","","","","","","","mcaptcha::api::v1::notifications","","","","","mcaptcha::api::v1::notifications::add","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::notifications::get","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::notifications::mark_read","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::notifications::routes","","","","","","","","","","","","","mcaptcha::api::v1::pow","","","","","","mcaptcha::api::v1::pow::get_config","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::pow::routes","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::pow::verify_pow","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::pow::verify_token","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::api::v1::routes","","","","","","","","","","","","","","","","","","mcaptcha::data","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::date","","","","","","","","","","","","","","","","","","","","","","mcaptcha::db","","","mcaptcha::db::maria","mcaptcha::db::pg","mcaptcha::demo","","","","","","","","","","","","","","","","","mcaptcha::docs","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::docs::routes","","","","","","","","","","","","","mcaptcha::email","mcaptcha::email::verification","","","","","","","","","","","","","","","","","","","","mcaptcha::errors","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages","","","","","","","","mcaptcha::pages::auth","","","","","mcaptcha::pages::auth::login","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::auth::register","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::auth::routes","","","","","","","","","","","","","","","mcaptcha::pages::auth::sudo","","","","","","","","","","","","","","","","","","","mcaptcha::pages::errors","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::errors::routes","","","","","","","","","","","","mcaptcha::pages::panel","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::notifications","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::routes","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::settings::routes","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey","","","","","","","mcaptcha::pages::panel::sitekey::add","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey::delete","","","","","","","","","","","mcaptcha::pages::panel::sitekey::edit","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey::list","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey::routes","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::panel::sitekey::view","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::routes","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::pages::sitemap","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::routes","mcaptcha::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::static_assets","","","","mcaptcha::static_assets::filemap","","","","","","","","","","","","mcaptcha::static_assets::static_files","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::static_assets::static_files::assets","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::stats","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::widget","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mcaptcha::widget::routes","","","","","","","","","",""],"d":["","","","","","","","","","App data","","","","","","","","","","","","","","","","","","","","","","","","","points to source files matching build commit","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","mCaptcha system: Redis cache, etc.","","","credential management configuration","App data: redis cache, database connections, etc.","","","","database ops defined by db crates","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","email client","","","","","","","app settings","","","","","stats recorder","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","User facing CAPTCHA widget","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","update email","update email","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","update username","update username","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","returns Ok(()) when everything checks out and the user is …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","User’s traffic pattern; used in generating a captcha …","","","","","","","","","","","","","","","","average traffic of user’s website","","","","","","","","","","","","","","","","","","","","","traffic that bought the user’s website down; optional","","","","","","","","","Captcha description","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","the peak traffic that the user’s website can handle","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","easy is using defaults","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Builder for BuildDetails.","Error type for BuildDetailsBuilder","","","Health check return datatype","Builder for Health.","Error type for HealthBuilder","Uninitialized field","Uninitialized field","Custom validation error","Custom validation error","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Builds a new BuildDetails.","Builds a new Health.","emits build details of the bninary","emits build details of the bninary","","","","","","","","","Create an empty builder, with all fields set to None or …","Create an empty builder, with all fields set to None or …","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","Returns the argument unchanged.","","","","checks all components of the system","checks all components of the system","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","route handler that adds a notification message","route handler that adds a notification message","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","route handler that gets all unread notifications","route handler that gets all unread notifications","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","route handler that marks a notification read","route handler that marks a notification read","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","PoW Verification module","PoW success token module","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","get PoW configuration for an mcaptcha key","get PoW configuration for an mcaptcha key","Call this when MCaptcha is not in master.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","remove scope for $name route","","Calls U::from(self).","","","","","","","remove scope for $name route","","remove scope for $name route","","","","validation token that clients receive as proof for …","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","route handler that verifies PoW and issues a solution token","route handler that verifies PoW and issues a solution token","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","route handler that validates a PoW solution token","route handler that validates a PoW solution token","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","App data","","Mailer data type AsyncSmtpTransport","","Represents mCaptcha cache and master system. When Redis is …","","","","","","mCaptcha system: Redis cache, etc.","credential management configuration","database ops defined by db crates","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self).","Calls U::from(self).","email client","","create new instance of app data","","","","app settings","stats recorder","","","","","","","","","","","","","","","","","","","","print date","","","Returns the argument unchanged.","Calls U::from(self).","","print relative time from date","","","","","","","","","","","","Demo password","Demo username","","","","","","Returns the argument unchanged.","","Calls U::from(self).","register demo user runner","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Get an embedded file and its metadata.","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Iterates over the file paths in the folder.","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","Email operations: verification, notification, etc","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","when the value passed contains blacklisted words see …","","captcha not found","","","","email is already taken","","","","","","","","","","","","when the value passed contains profainity","","","","","token not found","Traffic pattern not found","Unable to send email","when the value passed contains characters not present in …","","when the a username is already taken","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","","Returns the argument unchanged.","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","notifications","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","","","","","route handler that renders individual views for sitekeys","route handler that renders individual views for sitekeys","","","","","","","","","","","","","","route handler that renders individual views for sitekeys","route handler that renders individual views for sitekeys","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","render a list of all sitekeys that a user has","render a list of all sitekeys that a user has","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","route handler that renders individual views for sitekeys","route handler that renders individual views for sitekeys","","","","","","","","","","","Returns the argument unchanged.","","","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Get an embedded file and its metadata.","","","Get an embedded file and its metadata.","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Iterates over the file paths in the folder.","Iterates over the file paths in the folder.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Trait to clone MCDatabase","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","clone DB","","","","","","","","","","","","","fetch stats","fetch stats","fetch stats","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","record PoWConfig confirms","record PoWConfig confirms","record PoWConfig confirms","record PoWConfig fetches","record PoWConfig fetches","record PoWConfig fetches","record PoWConfig solves","record PoWConfig solves","record PoWConfig solves","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","widget services","render a client side widget for CAPTCHA verification","render a client side widget for CAPTCHA verification","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Calls U::from(self).","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,328,329,330,331,332,333,334,335,336,337,5,6,7,8,9,10,11,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,0,5,6,7,8,9,10,11,12,5,6,7,8,9,10,11,12,58,3,3,58,0,3,0,0,58,3,0,5,6,7,8,9,10,11,12,0,0,0,5,6,7,8,9,10,11,12,0,0,5,6,7,8,9,10,11,12,58,0,0,3,0,3,0,58,3,3,0,0,58,5,6,7,8,9,10,11,12,5,6,7,8,9,10,11,12,5,6,7,8,9,10,11,12,5,6,7,8,9,10,11,12,0,0,0,0,0,0,0,0,20,20,0,0,19,20,21,24,19,20,21,24,19,20,21,24,21,24,19,20,21,24,0,19,20,21,24,24,24,0,0,0,0,19,0,0,19,20,21,24,19,20,21,24,19,20,21,24,21,24,24,21,21,19,20,21,24,0,0,0,0,0,0,0,0,0,0,32,33,32,33,0,30,32,34,35,31,33,36,37,30,32,34,35,31,33,36,37,30,31,30,31,0,30,32,31,33,0,31,34,35,36,37,30,34,35,31,36,37,30,32,34,35,31,33,36,37,30,32,34,35,31,33,36,37,35,37,35,37,0,0,0,0,30,31,0,30,31,30,32,34,35,31,33,36,37,30,32,34,35,31,33,36,37,30,32,34,35,31,33,36,37,0,30,34,36,35,37,35,37,34,36,34,36,30,32,34,35,31,33,36,37,44,44,0,0,44,44,44,0,0,44,44,44,44,0,0,0,0,0,0,47,47,46,47,48,49,50,51,46,47,48,49,50,51,46,46,46,47,46,0,0,48,49,46,48,49,46,47,48,49,50,51,46,47,48,49,50,51,49,49,50,51,46,0,0,0,46,46,47,48,49,50,51,46,47,48,49,50,51,46,47,48,49,50,51,48,49,49,48,48,46,47,48,49,50,51,0,0,0,0,0,0,53,53,53,53,56,52,53,54,55,57,56,52,53,54,55,57,52,52,56,52,52,53,54,55,52,54,55,56,56,52,53,54,55,57,56,52,53,54,55,57,55,55,56,52,52,57,52,0,52,56,52,53,54,55,57,56,52,53,54,55,57,56,52,53,54,55,57,0,0,0,54,55,55,54,54,56,52,53,54,55,57,0,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,60,61,60,61,60,61,0,0,60,61,60,61,0,60,61,60,61,60,61,0,0,60,61,0,0,0,0,0,63,63,66,62,63,64,65,67,66,62,63,64,65,67,62,62,62,63,64,65,62,64,65,66,62,63,64,65,67,66,62,63,64,65,67,65,65,66,67,0,62,0,0,0,62,66,62,63,64,65,67,66,62,63,64,65,67,66,62,63,64,65,67,62,0,0,64,65,65,64,64,66,62,63,64,65,67,0,71,72,73,71,72,73,71,72,73,71,72,73,0,0,0,0,71,72,73,0,0,0,0,0,71,72,73,71,72,73,71,72,73,71,72,73,0,74,74,74,74,74,74,74,74,74,74,74,74,74,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,77,78,76,77,76,76,76,77,78,70,76,79,80,68,77,81,82,39,78,83,84,70,76,79,80,68,77,81,82,39,78,83,84,70,68,39,70,68,39,70,70,76,68,77,39,78,70,79,80,81,82,83,84,70,79,80,68,81,82,39,83,84,70,76,79,80,68,77,81,82,39,78,83,84,70,76,79,80,68,77,81,82,39,78,83,84,80,82,84,68,0,80,82,84,70,68,39,0,70,68,39,70,68,39,70,76,79,80,68,77,81,82,39,78,83,84,70,76,79,80,68,77,81,82,39,78,83,84,70,76,79,80,68,77,81,82,39,78,83,84,70,79,81,83,80,82,84,80,82,84,79,81,83,79,81,83,70,76,79,80,68,77,81,82,39,78,83,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,88,89,88,89,88,88,89,87,88,90,91,86,89,92,93,94,87,88,90,91,86,89,92,93,94,86,86,0,0,87,87,88,86,89,87,90,91,92,93,90,91,86,92,93,87,88,90,91,86,89,92,93,94,87,88,90,91,86,89,92,93,94,86,87,91,93,91,93,86,94,0,87,86,86,87,88,90,91,86,89,92,93,94,87,88,90,91,86,89,92,93,94,87,88,90,91,86,89,92,93,94,90,92,91,93,91,93,90,92,90,92,87,88,90,91,86,89,92,93,94,0,0,0,0,0,0,96,96,96,95,96,97,98,99,95,96,97,98,99,95,95,0,0,95,96,97,98,95,97,98,95,96,97,98,99,95,96,97,98,99,95,98,98,95,99,95,95,95,96,97,98,99,95,96,97,98,99,95,96,97,98,99,97,98,98,97,97,95,96,97,98,99,0,0,0,0,0,0,0,0,0,0,106,107,106,107,106,106,106,107,104,104,106,108,109,112,105,107,110,111,113,104,106,108,109,112,105,107,110,111,113,104,0,104,105,104,105,0,0,104,104,104,106,105,107,108,109,110,111,104,108,109,105,110,111,104,106,108,109,112,105,107,110,111,113,104,106,108,109,112,105,107,110,111,113,105,109,111,109,111,105,104,112,113,0,104,105,0,104,105,104,106,108,109,112,105,107,110,111,113,104,106,108,109,112,105,107,110,111,113,104,106,108,109,112,105,107,110,111,113,0,0,108,110,109,111,109,111,108,110,108,110,104,106,108,109,112,105,107,110,111,113,0,114,114,114,114,114,114,114,114,114,114,114,0,0,0,0,0,0,0,0,0,0,117,118,118,117,118,123,115,117,119,120,116,118,121,122,123,115,117,119,120,116,118,121,122,115,116,115,116,115,117,116,118,116,119,120,121,122,115,119,120,116,121,122,123,115,117,119,120,116,118,121,122,0,0,123,115,117,119,120,116,118,121,122,115,120,122,120,122,123,115,116,115,116,123,115,117,119,120,116,118,121,122,123,115,117,119,120,116,118,121,122,123,115,117,119,120,116,118,121,122,119,121,120,122,120,122,119,121,119,121,116,123,115,117,119,120,116,118,121,122,0,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,0,0,0,0,0,126,126,125,126,127,128,129,125,126,127,128,129,125,125,125,126,127,128,125,127,128,125,126,127,128,129,0,0,125,126,127,128,129,125,128,128,129,0,125,125,125,126,127,128,129,125,126,127,128,129,125,126,127,128,129,127,128,128,127,127,125,126,127,128,129,0,130,130,130,130,130,130,130,130,130,130,0,0,0,0,0,132,132,132,132,132,135,131,132,133,134,136,135,131,132,133,134,136,131,131,132,131,133,134,133,134,135,131,132,133,134,136,135,131,132,133,134,136,131,131,134,134,135,136,0,131,135,131,132,133,134,136,135,131,132,133,134,136,135,131,132,133,134,136,0,0,0,0,133,134,134,133,133,135,131,132,133,134,136,0,0,0,0,0,0,0,0,0,139,142,139,142,0,0,0,0,0,0,144,145,144,145,144,145,138,144,146,147,137,139,152,141,145,148,149,140,142,153,138,144,146,147,137,139,152,141,145,148,149,140,142,153,137,140,0,0,138,137,141,140,138,137,141,140,137,140,140,141,140,137,140,138,144,141,145,146,147,148,149,138,146,147,139,139,141,148,149,142,142,138,144,146,147,137,139,139,139,152,141,145,148,149,140,142,142,142,153,137,138,137,0,0,138,144,146,147,137,139,152,141,145,148,149,140,142,153,141,147,149,147,149,139,142,140,141,140,152,153,0,138,141,0,138,137,141,140,139,142,138,144,146,147,137,139,152,141,145,148,149,140,142,153,138,144,146,147,137,139,152,141,145,148,149,140,142,153,138,144,146,147,137,139,152,141,145,148,149,140,142,153,137,138,137,146,148,147,149,147,149,146,148,146,148,138,144,146,147,137,139,152,141,145,148,149,140,142,153,0,154,154,154,154,154,154,154,154,154,154,154,0,0,0,0,0,0,0,0,0,0,156,156,156,156,0,0,155,156,157,158,159,155,156,157,158,159,155,155,155,155,156,155,157,158,155,157,158,155,156,157,158,159,155,155,156,157,158,159,158,158,155,159,155,155,155,155,156,157,158,159,155,156,157,158,159,155,156,157,158,159,157,158,158,157,157,155,156,157,158,159,0,0,0,0,0,161,161,161,161,161,161,160,161,162,163,165,160,161,162,163,165,160,160,160,160,161,160,162,163,162,163,160,160,161,162,163,165,160,0,0,160,160,160,161,162,163,165,163,163,160,160,160,165,160,160,160,161,162,163,165,160,161,162,163,165,160,161,162,163,165,162,163,163,162,162,160,161,162,163,165,0,0,0,0,0,167,167,166,167,168,169,170,166,167,168,169,170,166,167,168,169,168,169,166,167,168,169,170,166,166,167,168,169,170,169,0,0,169,170,166,166,167,168,169,170,166,167,168,169,170,166,167,168,169,170,168,169,169,168,168,166,167,168,169,170,0,171,171,171,171,171,171,171,171,171,171,171,171,0,0,0,0,0,0,0,0,0,0,0,173,173,172,173,174,175,176,172,173,174,175,176,172,172,172,173,174,175,172,174,175,172,173,174,175,176,0,0,0,172,173,174,175,176,172,175,175,176,172,172,172,173,174,175,176,172,173,174,175,176,172,173,174,175,176,174,175,175,174,174,172,173,174,175,176,0,177,177,177,177,177,177,177,0,177,177,177,177,177,177,177,177,177,0,0,0,0,0,179,179,178,179,180,181,182,178,179,180,181,182,178,178,178,179,180,181,178,180,181,178,179,180,181,182,178,179,180,181,182,181,181,182,178,178,178,178,179,180,181,182,178,179,180,181,182,178,179,180,181,182,0,0,180,181,181,180,180,178,179,180,181,182,0,0,0,0,0,0,0,0,0,0,187,188,188,188,187,188,185,187,189,190,186,188,191,192,193,185,187,189,190,186,188,191,192,193,185,186,185,186,185,187,186,188,189,190,191,192,185,189,190,186,191,192,185,187,189,190,186,188,191,192,193,185,187,189,190,186,188,191,192,193,186,190,192,190,192,193,186,185,186,185,186,186,185,187,189,190,186,188,191,192,193,185,187,189,190,186,188,191,192,193,185,187,189,190,186,188,191,192,193,185,0,0,189,191,190,192,190,192,189,191,189,191,185,187,189,190,186,188,191,192,193,0,0,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,0,194,0,194,0,194,194,58,194,58,58,58,58,0,0,194,58,58,58,194,194,58,58,194,58,194,194,194,58,58,194,58,194,58,194,58,194,194,194,58,0,0,0,0,0,209,209,209,209,209,209,209,209,209,209,209,209,209,209,209,209,209,0,0,0,0,0,0,0,0,214,214,214,214,214,214,214,214,214,214,214,214,214,214,0,0,0,350,222,223,224,350,222,223,224,0,0,0,0,350,222,223,224,350,350,0,0,0,0,0,350,222,223,224,350,350,222,223,224,0,0,0,0,350,222,223,224,350,222,223,224,350,222,223,224,350,222,223,224,0,225,225,225,225,225,225,225,225,225,225,225,225,0,0,0,0,0,226,226,226,226,226,226,226,226,226,226,226,226,226,0,226,226,43,43,43,43,43,43,0,43,0,0,43,234,43,43,0,0,43,43,43,43,0,234,0,0,43,43,43,43,43,43,43,0,0,0,231,231,232,233,43,230,231,235,236,234,232,233,43,230,231,235,236,234,230,231,232,233,43,234,230,43,234,235,236,232,232,233,233,43,43,235,236,234,234,232,233,43,43,43,43,43,43,43,43,43,230,231,235,236,234,234,234,232,233,43,230,231,235,236,234,236,236,232,233,43,234,230,232,233,43,234,43,234,232,233,43,234,232,233,43,230,231,235,236,234,232,233,43,230,231,235,236,234,232,233,43,230,231,235,236,234,235,236,236,235,235,232,233,43,230,231,235,236,234,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0,248,249,250,248,249,250,248,248,248,249,248,249,250,248,249,250,0,0,250,248,248,248,248,249,250,248,249,250,248,249,250,248,249,250,0,0,0,0,0,252,0,0,251,252,253,251,252,253,251,251,251,252,251,252,253,251,252,253,0,0,253,251,251,251,251,252,253,251,252,253,251,252,253,251,252,253,0,0,254,254,254,254,254,254,254,254,254,254,254,254,254,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,257,258,0,0,0,0,256,257,258,259,256,257,258,259,256,256,257,258,0,0,256,257,258,259,256,257,258,259,256,256,259,256,256,0,0,256,256,256,257,258,259,256,257,258,259,256,257,258,259,256,257,258,259,0,260,260,260,260,260,260,260,260,260,260,260,0,0,0,0,0,0,0,261,263,261,263,261,261,261,263,261,263,261,0,0,0,263,261,261,0,0,0,0,261,261,261,263,261,263,261,263,261,263,0,0,0,0,264,265,266,264,265,266,264,264,265,266,264,264,264,265,266,264,265,264,265,0,0,264,264,266,265,265,264,265,266,264,265,266,264,265,266,264,265,266,0,0,0,267,267,267,267,267,267,267,267,267,267,267,267,267,267,0,0,0,0,0,0,0,268,269,270,271,268,269,270,271,268,268,0,0,268,268,269,270,271,268,269,270,271,269,270,271,268,268,0,268,0,0,0,268,268,269,270,271,268,269,270,271,268,269,270,271,0,0,268,268,269,270,271,0,0,272,272,272,272,272,272,272,272,272,272,272,272,272,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,275,276,0,0,0,0,0,0,274,275,276,273,277,274,278,275,276,273,277,274,278,274,273,274,273,274,273,274,275,276,0,0,273,274,273,273,274,275,276,273,277,274,278,275,276,273,277,274,278,273,274,277,278,273,274,273,274,273,274,275,276,273,277,274,278,275,276,273,277,274,278,275,276,273,277,274,278,275,276,273,277,274,278,279,279,0,0,279,279,279,279,279,279,279,0,0,0,0,0,0,0,0,0,280,282,281,283,280,282,281,283,280,281,280,281,280,0,0,281,280,282,281,283,280,282,281,283,280,281,280,280,280,281,281,282,283,280,281,280,281,280,281,280,282,281,283,280,282,281,283,280,282,281,283,280,282,281,283,0,0,0,0,0,0,0,284,285,284,285,284,284,284,285,284,285,0,0,284,285,284,284,284,284,284,285,284,285,284,285,284,285,0,0,286,286,286,286,286,286,286,286,286,286,286,286,286,286,286,286,286,286,286,286,286,0,0,0,0,0,287,289,287,289,287,287,287,287,289,287,289,287,287,287,287,289,287,287,287,287,287,289,287,289,287,289,0,0,287,289,0,0,247,247,247,247,247,247,247,247,247,247,247,247,247,247,247,247,247,247,247,247,247,0,0,0,0,291,0,0,290,291,292,290,291,292,290,290,290,291,290,290,291,292,290,291,292,292,290,290,0,0,290,290,291,292,290,291,292,290,291,292,290,290,291,292,0,0,0,0,0,0,0,0,0,0,0,0,0,0,297,297,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,300,301,302,303,304,305,306,307,300,301,302,303,304,305,306,307,300,301,302,303,305,307,300,301,302,303,307,300,301,303,307,300,301,303,307,307,307,307,307,300,301,302,303,305,306,307,3,3,101,294,300,308,309,295,301,310,311,101,302,312,313,296,303,314,315,304,316,317,297,298,305,318,319,299,306,320,321,3,307,322,323,294,300,308,309,295,301,310,311,101,302,312,313,296,303,314,315,304,316,317,297,298,305,318,319,299,306,320,321,3,307,322,323,101,3,0,294,295,101,296,297,298,299,3,294,295,101,296,297,298,299,3,3,294,3,298,3,295,294,300,295,301,101,302,296,303,304,297,298,305,299,306,3,307,294,101,295,297,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,294,308,309,295,310,311,101,312,313,296,314,315,316,317,297,297,298,318,319,299,320,321,3,322,323,294,300,308,309,295,301,310,311,101,302,312,313,296,303,314,315,304,316,317,297,298,305,318,319,299,306,320,321,3,307,322,323,296,297,295,294,294,300,308,309,295,301,310,311,101,302,312,313,296,303,314,315,304,316,317,297,298,305,318,319,299,306,320,321,3,307,322,323,294,309,311,313,315,317,319,321,323,309,311,313,315,317,319,321,323,3,296,101,298,299,294,296,294,295,3,296,295,295,297,3,0,3,3,294,295,101,296,297,298,299,3,297,294,300,308,309,295,301,310,311,101,302,312,313,296,303,314,315,304,316,317,297,298,305,318,319,299,306,320,321,3,307,322,323,294,300,308,309,295,301,310,311,101,302,312,313,296,303,314,315,304,316,317,297,298,305,318,319,299,306,320,321,3,307,322,323,294,300,308,309,295,301,310,311,101,302,312,313,296,303,314,315,304,316,317,297,298,305,318,319,299,306,320,321,3,307,322,323,296,298,299,294,296,308,310,312,314,316,318,320,322,317,309,311,313,315,319,321,323,309,311,313,315,319,321,323,308,310,312,314,316,318,320,322,308,310,312,314,316,318,320,322,294,300,308,309,295,301,310,311,101,302,312,313,296,303,314,315,304,316,317,297,298,305,318,319,299,306,320,321,3,307,322,323,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,351,326,352,327,351,326,352,327,0,0,0,0,0,0,351,326,352,327,351,351,352,352,0,0,0,0,0,0,351,326,352,327,351,351,352,352,326,327,0,0,351,326,352,327,351,326,352,327,351,326,352,327,351,326,352,327,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,328,329,330,331,332,333,334,335,336,337,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,328,329,330,331,332,333,334,335,336,337,328,329,330,331,332,333,334,335,336,337,328,329,330,331,332,333,334,335,336,337,328,329,330,331,332,333,334,335,336,337,328,329,330,331,332,333,334,335,336,337,328,329,330,331,332,333,334,335,336,337,328,329,330,331,332,333,334,335,336,337,328,329,330,331,332,333,334,335,336,337,328,329,330,331,332,333,334,335,336,337,0,0,0,0,0,0,0,0,0,341,341,341,341,288,341,342,343,338,339,288,341,342,343,338,339,288,338,339,288,338,339,353,288,288,288,338,339,288,341,288,338,339,342,343,340,338,339,288,342,343,338,339,288,341,342,343,338,339,288,341,342,343,338,339,343,343,340,338,339,340,338,339,340,338,339,288,288,288,338,339,288,341,342,343,338,339,288,341,342,343,338,339,288,341,342,343,338,339,342,343,343,342,342,288,341,342,343,338,339,0,0,0,0,0,0,347,0,0,346,347,348,346,347,348,346,346,347,346,347,348,346,347,348,346,348,346,346,0,0,0,0,346,346,347,348,346,347,348,346,347,348,346,347,348,0,349,349,349,349,349,349,349,349,349,349],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],1],[[],2],[[],1],[[],1],[[],3],[[],4],[[],1],[[],1],[[],2],[[],1],[[],1],[[],1],[[],1],[[],1],[[],3],[[],4],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,[5,3],[6,4],[7,1],[8,1],[9,1],[10,1],[11,1],[12,2],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[3,[[14,[13]]]],[[],15],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[],16],0,0,0,0,0,0,0,0,0,0,0,[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],[[17,[19]]]],[[],[[17,[20]]]],[[21,22],23],[[24,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[],[[27,[26]]]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,[28],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[21,17],[24,17],[24,17],[[21,1],17],[[21,29],17],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[30,30],[31,31],[[]],[[]],0,[[],[[17,[30]]]],[[],[[17,[32]]]],[[],[[17,[31]]]],[[],[[17,[33]]]],0,0,[[34,22],23],[[35,22],23],[[36,22],23],[[37,22],23],[[30,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[31,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,[30,17],[31,17],[28],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],0,0,[34,17],[36,17],[35,17],[37,17],[35,17],[37,17],[[34,1],17],[[36,1],17],[[34,29],17],[[36,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[38,[40,[39]],41],[[17,[42,43]]]],[[]],[[]],[[44,45]],0,[28],[[],17],[[],17],[[],18],[[]],[[1,41],[[17,[43]]]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[46,46],[[]],[[],[[17,[46]]]],[[],[[17,[47]]]],0,0,[[[40,[30]],41],[[17,[42,43]]]],[[48,22],23],[[49,22],23],[[46,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[50,45]],[[51,45]],[46,17],[28],0,[[38,[40,[46]],41],[[17,[42,43]]]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[48,17],[49,17],[49,17],[[48,1],17],[[48,29],17],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[52,52],[[]],0,0,[[],[[17,[52]]]],[[],[[17,[53]]]],[[54,22],23],[[55,22],23],[[52,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[52,56],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,[[57,45]],[52,17],[28],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[1,56,58],[[17,[43]]]],0,[[38,41,[40,[52]]],[[17,[42,43]]]],[54,17],[55,17],[55,17],[[54,1],17],[[54,29],17],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],0,0,[[]],0,[[]],[[],59],[[],17],[[],17],[[],18],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[38,41],[[17,[42,43]]]],[[]],[[]],[[60,45]],[[61,45]],[28],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],0,[[38,41],[[17,[42,43]]]],[[]],[[]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[62,62],[[]],[[],[[17,[62]]]],[[],[[17,[63]]]],[[64,22],23],[[65,22],23],[[62,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[66,45]],[[67,45]],0,[62,17],[28],0,[[38,[40,[62]],41],[[17,[42,43]]]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],0,0,[[[40,[30]],41],[[17,[42,43]]]],[64,17],[65,17],[65,17],[[64,1],17],[[64,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[30,41],[[17,[31,43]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[38,[40,[68]],[69,[19]],41],[[17,[42,43]]]],0,[[[40,[70]],41],[[17,[42,43]]]],[[71,45]],[[72,45]],[[73,45]],0,0,[28],0,[38,42],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,[[]],[[]],[[]],[[74,[75,[1]]],2],[[]],0,0,[[],74],0,[[],17],[[],17],[[],18],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[70,70],[68,68],[39,39],[[]],[[]],[[]],0,[[],[[17,[70]]]],[[],[[17,[76]]]],[[],[[17,[68]]]],[[],[[17,[77]]]],[[],[[17,[39]]]],[[],[[17,[78]]]],0,[[79,22],23],[[80,22],23],[[81,22],23],[[82,22],23],[[83,22],23],[[84,22],23],[[70,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[68,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[39,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[[68,41],[[17,[2,43]]]],0,0,0,0,0,0,[[70,41],[[17,[43]]]],[70,17],[68,17],[39,17],[[]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],0,[79,17],[81,17],[83,17],[80,17],[82,17],[84,17],[80,17],[82,17],[84,17],[[79,1],17],[[81,1],17],[[83,1],17],[[79,29],17],[[81,29],17],[[83,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[85,2],0,[28],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[86,86],[[]],0,[[[40,[87]],41,38],[[17,[42,43]]]],0,[[],[[17,[87]]]],[[],[[17,[88]]]],[[],[[17,[86]]]],[[],[[17,[89]]]],0,[[90,22],23],[[91,22],23],[[92,22],23],[[93,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[86,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,[[94,45]],0,[87,17],[86,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[90,17],[92,17],[91,17],[93,17],[91,17],[93,17],[[90,1],17],[[92,1],17],[[90,29],17],[[92,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[87,41,1],[[17,[86,43]]]],0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[95,95],[[]],0,[[[40,[95]],41,38],[[17,[42,43]]]],[[],[[17,[95]]]],[[],[[17,[96]]]],[[97,22],23],[[98,22],23],[[95,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[[99,45]],[95,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[97,17],[98,17],[98,17],[[97,1],17],[[97,29],17],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[100,101],[[17,[[103,[102]],43]]]],[104,104],[105,105],[[]],[[]],0,[[[40,[104]],41,38],[[17,[42,43]]]],[[],104],0,[[],[[17,[104]]]],[[],[[17,[106]]]],[[],[[17,[105]]]],[[],[[17,[107]]]],[[108,22],23],[[109,22],23],[[110,22],23],[[111,22],23],[[104,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[105,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,[[112,45]],[[113,45]],0,[104,17],[105,17],[28],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],0,[[[40,[105]],41,38],[[17,[42,43]]]],[108,17],[110,17],[109,17],[111,17],[109,17],[111,17],[[108,1],17],[[110,1],17],[[108,29],17],[[110,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],0,[[]],[[]],[[],114],[[],17],[[],17],[[],18],0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[115,115],[116,116],[[]],[[]],[[],[[17,[115]]]],[[],[[17,[117]]]],[[],[[17,[116]]]],[[],[[17,[118]]]],0,[[119,22],23],[[120,22],23],[[121,22],23],[[122,22],23],[[115,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[116,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[40,[86]],41,38],[[17,[42,43]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,[[123,45]],[115,17],[116,17],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[119,17],[121,17],[120,17],[122,17],[120,17],[122,17],[[119,1],17],[[121,1],17],[[119,29],17],[[121,29],17],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],0,0,0,[[]],0,[[]],[[],124],0,[[],17],[[],17],[[],18],0,0,[[]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[125,125],[[]],[[],[[17,[125]]]],[[],[[17,[126]]]],[[127,22],23],[[128,22],23],[[125,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],0,[[[40,[125]],41,38],[[17,[42,43]]]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[129,45]],0,[125,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[127,17],[128,17],[128,17],[[127,1],17],[[127,29],17],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],0,[[]],[[],130],[[],17],[[],17],[[],18],[[]],0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[],[[17,[131]]]],[[],[[17,[132]]]],0,[[133,22],23],[[134,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[[135,45]],[[136,45]],0,[131,17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],0,[[[40,[131]],41,38],[[17,[42,43]]]],0,[[[40,[86]],41,38],[[17,[42,43]]]],[133,17],[134,17],[134,17],[[133,1],17],[[133,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[131,41,1],[[17,[43]]]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[137,[[17,[138,139]]]],[140,[[17,[141,142]]]],0,[[],42],[138,138],[137,137],[141,141],[140,140],[[]],[[]],[[]],[[]],[[],137],[[],140],[[140,143],140],0,0,[[],137],[[],140],[[],[[17,[138]]]],[[],[[17,[144]]]],[[],[[17,[141]]]],[[],[[17,[145]]]],[[146,22],23],[[147,22],23],[[148,22],23],[[149,22],23],[[138,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[139,22],23],[[139,22],23],[[141,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[142,22],23],[[142,22],23],[[]],[[]],[[]],[[]],[[]],[2,139],[150,139],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[2,142],[[]],[150,142],[[]],[[137,1],137],0,0,0,[41,42],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[75,143],0,0,0,0,[151],[151],[[140,[75,[143]]],140],0,0,[[152,45]],[[153,45]],0,[138,17],[141,17],[28],[[]],[[]],[[]],[[]],[[],2],[[],2],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[137,1],137],0,0,[146,17],[148,17],[147,17],[149,17],[147,17],[149,17],[[146,1],17],[[148,1],17],[[146,29],17],[[148,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],0,[[]],0,[[]],[[],154],[[],17],[[],17],[[],18],[[]],0,0,0,0,[28],0,0,0,0,0,0,0,0,0,0,[[[40,[155]],41,38],[[17,[42,43]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[155,155],[[]],[[],155],[[],[[17,[155]]]],[[],[[17,[156]]]],[[155,155],143],[[157,22],23],[[158,22],23],[[155,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],[[]],0,0,0,[[159,45]],[155,17],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[157,17],[158,17],[158,17],[[157,1],17],[[157,29],17],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[160,160],[[]],[[],160],[[],[[17,[160]]]],[[],[[17,[161]]]],[[160,160],143],[[162,22],23],[[163,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[164,160],[[]],[[]],[[]],[[]],[[]],[[[103,[164]]],[[103,[160]]]],0,[[41,38],[[17,[42,43]]]],0,0,[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,[[165,45]],[160,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[162,17],[163,17],[163,17],[[162,1],17],[[162,29],17],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],[[17,[166]]]],[[],[[17,[167]]]],[[168,22],23],[[169,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],[[]],0,0,[[41,[40,[166]],38],[[17,[42,43]]]],0,[[170,45]],[166,17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[168,17],[169,17],[169,17],[[168,1],17],[[168,29],17],[[]],[[]],[[]],[[]],[[]],0,0,[[]],[[]],[[]],0,[[]],0,[[],171],[[],17],[[],17],[[],18],[[]],0,0,0,[28],0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[172,172],[[]],[[],[[17,[172]]]],[[],[[17,[173]]]],[[174,22],23],[[175,22],23],[[172,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],0,[[[40,[172]],41],[[17,[42,43]]]],[[41,1],[[17,[43]]]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[176,45]],[172,17],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[174,17],[175,17],[175,17],[[174,1],17],[[174,29],17],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],[177,1],0,[[]],[[],177],0,0,[[],17],[[],17],[[],18],[177,1],0,[177,1],0,[[]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[178,178],[[]],[[],[[17,[178]]]],[[],[[17,[179]]]],[[180,22],23],[[181,22],23],[[178,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[182,45]],[178,17],[[]],0,[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],0,[[183,[40,[184]],41],[[17,[42,43]]]],[180,17],[181,17],[181,17],[[180,1],17],[[180,29],17],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[185,185],[186,186],[[]],[[]],[[],[[17,[185]]]],[[],[[17,[187]]]],[[],[[17,[186]]]],[[],[[17,[188]]]],[[189,22],23],[[190,22],23],[[191,22],23],[[192,22],23],[[185,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[186,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,[[193,45]],0,[185,17],[186,17],[[]],[[]],0,[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],0,0,[[[40,[186]],41],[[17,[42,43]]]],[189,17],[191,17],[190,17],[192,17],[190,17],[192,17],[[189,1],17],[[191,1],17],[[189,29],17],[[191,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[[]],[[]],0,[[]],[[26,[75,[1]]],2],[[]],0,[[],26],0,0,[[],17],[[],17],[[],18],[[]],0,0,0,0,0,[[194,195],[[17,[43]]]],[[]],[[]],[[]],[[]],0,0,0,0,0,[[]],[[]],[[],196],[3,[[75,[[198,[197]]]]]],[[194,2],[[200,[[75,[199]]]]]],[[]],[[]],0,[3,194],[3,[[201,[58]]]],[[3,[203,[202]],[203,[204]]],[[205,[204,202]]]],[[194,206],[[17,[43]]]],[[194,207],[[17,[43]]]],0,0,[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[194,208],[[200,[143]]]],[[194,184,2],[[200,[2]]]],[[]],[[]],0,0,0,0,0,[[]],[[]],[209,209],[[]],[209,2],[[209,22],23],[210,2],[[]],[[]],[211,209],[209,2],0,[[]],[[],17],[[],17],[[],18],[[]],0,0,0,[[[75,[3]]],[[213,[212]]]],[[[75,[3]]],[[213,[212]]]],0,0,0,[214],[[]],[[]],[41,[[17,[43]]]],[[]],0,[[]],[41,[[17,[43]]]],[[41,215],[[17,[216,43]]]],[[41,215],[[17,[214,43]]]],[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[217,[2]]],42],0,0,[[]],[[]],[[]],[[]],[1,[[75,[218]]]],[1,[[75,[218]]]],[1,219],0,0,0,[[],219],[[]],[[]],[[]],[[]],[[],220],[[],221],[[222,45]],[[223,45]],[[224,45]],0,[28],0,[[],219],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],0,0,[[]],[[]],[[]],0,[[]],[[],225],0,[[],17],[[],17],[[],18],[[]],0,0,0,0,0,[[]],[[]],[226,226],[[]],[[]],[[]],[1,226],[226,227],[[226,228],[[17,[229]]]],[[]],[[],17],[[],17],[[],18],[[58,1,1],[[17,[43]]]],0,[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],[[17,[230]]]],[[],[[17,[231]]]],[[232,232],143],[[233,233],143],[[43,43],143],[[234,234],143],0,[43,219],[234,219],[[235,22],23],[[236,22],23],[[232,22],23],[[232,22],23],[[233,22],23],[[233,22],23],[[43,22],23],[[43,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[234,22],23],[[234,22],23],[[]],[[]],[237,43],[238,43],[239,43],[[]],[240,43],[241,43],[242,43],[243,43],[244,43],[[]],[[]],[[]],[[]],[[]],[237,234],[43,234],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[151],[151],[151],[151],[230,17],[232,[[75,[245]]]],[233,[[75,[245]]]],[43,[[75,[245]]]],[234,[[75,[245]]]],[43,246],[234,246],[[],2],[[],2],[[],2],[[],2],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[235,17],[236,17],[236,17],[[235,1],17],[[235,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,[[],[[27,[247]]]],0,0,[28],0,0,0,0,[28],0,0,0,0,0,0,0,[[],2],[[],2],[[]],[[]],[[]],[[]],[[]],[[]],[248,248],[[]],[[],248],[249,2],[[]],[[]],[[]],[[]],[[]],[[]],0,[[],42],[[250,45]],[248,227],[[248,228],[[17,[229]]]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,0,0,0,0,0,[[],2],[[],2],[[]],[[]],[[]],[[]],[[]],[[]],[251,251],[[]],[[],251],[252,2],[[]],[[]],[[]],[[]],[[]],[[]],0,[[],42],[[253,45]],[251,227],[[251,228],[[17,[229]]]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,0,[[]],[[]],[[]],[[254,[75,[1]]],2],[[]],[[]],0,0,[[],254],[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[255,255],[[]],0,[[]],[[]],[[1,[75,[103]]],255],[255,227],[[255,228],[[17,[229]]]],[[]],[[],17],[[],17],[[],18],0,[[]],0,0,0,0,0,0,0,0,0,0,[[],2],[[],2],[[],2],[[],2],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[256,256],[[]],[257,2],[258,2],0,[[[217,[85]]],42],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[1,1],256],[[259,45]],[256,227],[[256,228],[[17,[229]]]],0,[28],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],0,[[]],[[]],[[]],0,[[]],[[],260],[[],17],[[],17],[[],18],0,[[]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[261,261],[[]],[[]],[[]],[[]],[[]],[[[103,[262]]],261],0,0,[[41,38],[[17,[42,234]]]],[[263,45]],[261,227],[[261,228],[[17,[229]]]],0,[28],0,0,0,[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[164,264],[[]],[[]],0,0,[[]],[[]],[[]],0,0,0,[[[103,[264]]],265],0,[[41,38],[[17,[42,234]]]],[264,2],0,[[266,45]],[265,227],[[265,228],[[17,[229]]]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,0,0,[[]],[[]],[[]],[[]],0,[[]],[[],267],0,0,0,[[],17],[[],17],[[],18],[[]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[268,268],[[]],0,[[],42],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[269,45]],[[270,45]],[[271,45]],[268,227],[[268,228],[[17,[229]]]],0,0,[28],0,[[41,38],[[17,[42,234]]]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],0,[[],42],0,[[]],[[]],[[]],[[]],0,0,[[]],[[]],0,[[]],[[]],0,[[]],[[],272],[[],17],[[],17],[[],18],0,[[]],0,0,0,0,0,[28],0,0,0,0,0,0,0,0,0,0,0,0,[[],2],[[],2],[[],2],[[],2],0,[[],42],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[273,273],[274,274],[[]],[[]],[[],273],[[],274],[275,2],[276,2],0,[[],42],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[277,45]],[[278,45]],[273,227],[274,227],[[273,228],[[17,[229]]]],[[274,228],[[17,[229]]]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[[217,[2]]],42],[[]],[[]],[[279,45]],[[],17],[[],17],[[],18],[[]],0,0,0,0,0,0,0,0,[[[217,[2]],41,38],[[17,[42,234]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[280,280],[281,281],[[]],[[]],0,0,[[[217,[2]],41,38],[[17,[42,234]]]],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,[[262,[103,[102]],2],280],[[2,104],281],0,[[282,45]],[[283,45]],[280,227],[281,227],[[280,228],[[17,[229]]]],[[281,228],[[17,[229]]]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[284,284],[[]],[[]],[[]],[[]],[[]],0,[[41,38],[[17,[42,234]]]],[[[103,[262]]],284],[[285,45]],[284,227],[[284,228],[[17,[229]]]],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[]],[[]],0,0,0,0,[[]],[[]],0,0,0,[[]],[[286,1],2],[[286,1],2],[[286,1],2],[[]],[[286,1],2],[[]],0,[[],286],[[],17],[[],17],[[],18],0,[[]],0,0,0,0,0,[[]],[[]],[[]],[[]],[287,287],[[]],0,[[]],[[]],[[]],[[]],0,0,0,[[288,262,[103,[102]],2],287],[[289,45]],[287,227],[[287,228],[[17,[229]]]],0,[[]],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],0,[[[217,[2]],41,38],[[17,[42,234]]]],[[]],[[]],0,0,0,0,[[]],[[]],0,0,[[]],[[247,[75,[1]]],2],[[]],0,[[]],[[],247],0,0,0,0,0,[[],17],[[],17],[[],18],[[]],0,0,0,0,0,[[],2],[[],2],[[]],[[]],[[]],[[]],[[]],[[]],[290,290],[[]],[[],290],[291,2],0,[[]],[[]],[[]],[[]],[[]],[[]],[[292,45]],[290,227],[[290,228],[[17,[229]]]],0,[[],42],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],0,[[]],[[]],[[]],[28],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[293],[294,294],[295,295],[101,101],[296,296],[297,297],[298,298],[299,299],[3,3],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,[[],[[17,[294]]]],[[],[[17,[300]]]],[[],[[17,[295]]]],[[],[[17,[301]]]],[[],[[17,[101]]]],[[],[[17,[302]]]],[[],[[17,[296]]]],[[],[[17,[303]]]],[[],[[17,[304]]]],[[],[[17,[297]]]],[[],[[17,[298]]]],[[],[[17,[305]]]],[[],[[17,[299]]]],[[],[[17,[306]]]],[[],[[17,[3]]]],[[],[[17,[307]]]],0,0,0,[[297,297],143],[[308,22],23],[[309,22],23],[[310,22],23],[[311,22],23],[[312,22],23],[[313,22],23],[[314,22],23],[[315,22],23],[[316,22],23],[[317,22],23],[[318,22],23],[[319,22],23],[[320,22],23],[[321,22],23],[[322,22],23],[[323,22],23],[[294,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[295,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[101,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[296,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[22,[[17,[25]]]],[22,[[17,[25]]]],[[297,22],23],[[297,22],23],[[298,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[299,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[3,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[324,[[17,[297,325]]]],0,[294,2],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],[[17,[3,325]]]],0,0,0,0,0,0,0,0,0,0,0,0,[297,17],0,[293],0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],2],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],0,0,0,0,0,[308,17],[310,17],[312,17],[314,17],[316,17],[318,17],[320,17],[322,17],[317,17],[309,17],[311,17],[313,17],[315,17],[319,17],[321,17],[323,17],[309,17],[311,17],[313,17],[315,17],[319,17],[321,17],[323,17],[[308,1],17],[[310,1],17],[[312,1],17],[[314,1],17],[[316,1],17],[[318,1],17],[[320,1],17],[[322,1],17],[[308,29],17],[[310,29],17],[[312,29],17],[[314,29],17],[[316,29],17],[[318,29],17],[[320,29],17],[[322,29],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[28],0,0,[[]],[[]],0,[[]],[[4,1],[[75,[1]]]],[[]],[[],4],[[],17],[[],17],[[],18],[[]],0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,[[[217,[2]]],42],[[]],[[]],[[]],[[]],[1,[[75,[218]]]],[1,[[75,[218]]]],[1,[[75,[218]]]],[1,[[75,[218]]]],[1,219],[1,219],0,0,0,0,[[]],[[]],[[]],[[]],[[],220],[[],221],[[],221],[[],220],[[326,45]],[[327,45]],0,[[[217,[2]]],42],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[328],[329],[330],[331],[332],[333],[334],[335],[336],[337],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[288,288],[338,338],[339,339],[[]],[[]],[[]],[[],[[213,[340]]]],0,0,[[],288],[[],338],[[],339],[[],[[17,[288]]]],[[],[[17,[341]]]],[[288,288],143],[[338,338],143],[[339,339],143],[[342,22],23],[[343,22],23],[[58,1,1],[[345,[[213,[344]]]]]],[[338,58,1,1],[[345,[[213,[344]]]]]],[[339,58,1,1],[[345,[[213,[344]]]]]],[[288,22],23],[22,[[17,[25]]]],[22,[[17,[25]]]],[[338,22],23],[[339,22],23],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,[[58,1],[[345,[[213,[344]]]]]],[[338,58,1],[[345,[[213,[344]]]]]],[[339,58,1],[[345,[[213,[344]]]]]],[[58,1],[[345,[[213,[344]]]]]],[[338,58,1],[[345,[[213,[344]]]]]],[[339,58,1],[[345,[[213,[344]]]]]],[[58,1],[[345,[[213,[344]]]]]],[[338,58,1],[[345,[[213,[344]]]]]],[[339,58,1],[[345,[[213,[344]]]]]],[288,17],0,[[]],[[]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[],18],[[],18],[[],18],[342,17],[343,17],[343,17],[[342,1],17],[[342,29],17],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,[[],2],[[],2],[[]],[[]],[[]],[[]],[[]],[[]],[346,346],[[]],[347,2],[[]],[[]],[[]],[[]],[[]],[[]],[[],346],[[348,45]],[346,227],[[346,228],[[17,[229]]]],0,[28],0,[[],[[17,[42,234]]]],[[]],[[],17],[[],17],[[],17],[[],17],[[],17],[[],17],[[],18],[[],18],[[],18],[[]],[[]],[[]],0,[[]],[[]],[[]],[[]],[[],349],[[],17],[[],17],[[],18],0,[[]]],"p":[[15,"str"],[3,"String"],[3,"Settings"],[3,"FileMap"],[3,"SETTINGS"],[3,"FILES"],[3,"JS"],[3,"CSS"],[3,"MOBILE_CSS"],[3,"VERIFICATIN_WIDGET_JS"],[3,"VERIFICATIN_WIDGET_CSS"],[3,"SOURCE_FILES_OF_INSTANCE"],[3,"CookieIdentityPolicy"],[3,"IdentityService"],[3,"JsonConfig"],[6,"Result"],[4,"Result"],[3,"TypeId"],[3,"RedirectQuery"],[4,"__Field"],[3,"__FieldVisitor"],[3,"Formatter"],[6,"Result"],[3,"__Visitor"],[3,"Error"],[3,"Routes"],[3,"Authentication"],[3,"ServiceConfig"],[15,"u64"],[3,"AccountCheckPayload"],[3,"AccountCheckResp"],[4,"__Field"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"Identity"],[3,"Password"],[3,"Json"],[6,"AppData"],[8,"Responder"],[4,"ServiceError"],[3,"delete_account"],[3,"AppService"],[3,"Email"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"email_exists"],[3,"set_email"],[3,"ChangePasswordReqest"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"UpdatePassword"],[3,"update_user_password"],[3,"Data"],[3,"Account"],[3,"get_secret"],[3,"update_user_secret"],[3,"Username"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"username_exists"],[3,"set_username"],[3,"Login"],[3,"Query"],[3,"Register"],[3,"register"],[3,"login"],[3,"signout"],[3,"Auth"],[4,"Option"],[4,"__Field"],[4,"__Field"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[15,"usize"],[3,"MCaptchaDetails"],[3,"CreateCaptcha"],[4,"__Field"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"create"],[3,"DeleteCaptcha"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"delete"],[3,"TrafficPattern"],[3,"DefaultDifficultyStrategy"],[3,"Level"],[3,"Vec"],[3,"TrafficPatternRequest"],[3,"UpdateTrafficPattern"],[4,"__Field"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"create"],[3,"update"],[3,"Easy"],[3,"Levels"],[3,"I32Levels"],[4,"__Field"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"get_captcha"],[3,"Captcha"],[3,"StatsPayload"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"get"],[3,"Stats"],[3,"UpdateCaptcha"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"update_key"],[3,"update_captcha"],[3,"BuildDetailsBuilder"],[3,"BuildDetails"],[4,"BuildDetailsBuilderError"],[3,"HealthBuilder"],[3,"Health"],[4,"HealthBuilderError"],[15,"bool"],[4,"__Field"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"UninitializedFieldError"],[3,"Demand"],[3,"build_details"],[3,"health"],[3,"Meta"],[3,"AddNotificationRequest"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"add_notification"],[3,"NotificationResp"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"Notification"],[3,"get_notification"],[3,"MarkReadReq"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"mark_read"],[3,"Notifications"],[3,"GetConfigPayload"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"get_config"],[3,"PoW"],[3,"ValidationToken"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"verify_pow"],[3,"HttpRequest"],[3,"Work"],[3,"CaptchaValidateResp"],[3,"VerifyCaptchaResultPayload"],[4,"__Field"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"validate_captcha_token"],[4,"SystemGroup"],[3,"AddSite"],[3,"Config"],[3,"Tokio1Executor"],[3,"AsyncSmtpTransport"],[3,"PoWConfig"],[6,"CaptchaResult"],[3,"Arc"],[8,"Master"],[3,"Addr"],[8,"Save"],[3,"System"],[3,"RemoveCaptcha"],[3,"Rename"],[3,"VerifyCaptchaResult"],[3,"Date"],[3,"OffsetDateTime"],[15,"i64"],[8,"MCDatabase"],[3,"Box"],[3,"DemoUser"],[3,"Duration"],[3,"JoinHandle"],[3,"Path"],[3,"EmbeddedFile"],[3,"HttpResponse"],[4,"Filenames"],[8,"Iterator"],[3,"dist"],[3,"spec"],[3,"index"],[3,"Docs"],[3,"IndexPage"],[6,"RenderResult"],[3,"Buffer"],[4,"RenderError"],[3,"ErrorToResponse"],[4,"__Field"],[3,"SmtpErrorWrapper"],[3,"DBErrorWrapper"],[4,"PageError"],[3,"__FieldVisitor"],[3,"__Visitor"],[4,"DBError"],[4,"MailboxError"],[4,"ParseError"],[4,"CaptchaError"],[3,"Error"],[3,"RecvError"],[4,"CredsError"],[3,"ValidationErrors"],[8,"Error"],[3,"StatusCode"],[3,"Routes"],[3,"IndexPage"],[3,"INDEX"],[3,"login"],[3,"IndexPage"],[3,"INDEX"],[3,"join"],[3,"Auth"],[3,"SudoPage"],[3,"ErrorPage"],[3,"INTERNAL_SERVER_ERROR_BODY"],[3,"UNKNOWN_ERROR_BODY"],[3,"error"],[3,"Errors"],[3,"IndexPage"],[3,"Captcha"],[3,"panel"],[3,"Notification"],[3,"IndexPage"],[3,"notifications"],[3,"Panel"],[3,"IndexPage"],[3,"settings"],[3,"delete_account"],[3,"update_secret"],[3,"Settings"],[3,"AdvanceIndexPage"],[3,"EasyIndexPage"],[3,"ADVANCE_INDEX"],[3,"EASY_INDEX"],[3,"advance"],[3,"easy"],[3,"delete_sitekey"],[3,"AdvanceEditPage"],[3,"EasyEditPage"],[3,"advance"],[3,"easy"],[3,"IndexPage"],[3,"list_sitekeys"],[3,"Sitekey"],[3,"IndexPage"],[3,"CaptchaStats"],[3,"view_sitekey"],[3,"IndexPage"],[3,"INDEX"],[3,"sitemap"],[3,"Config"],[3,"Server"],[3,"Captcha"],[3,"Smtp"],[4,"DBType"],[3,"Database"],[3,"Redis"],[4,"__Field"],[4,"__Field"],[4,"__Field"],[4,"__Field"],[4,"__Field"],[4,"__Field"],[4,"__Field"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"__FieldVisitor"],[3,"__Visitor"],[3,"Url"],[4,"ConfigError"],[3,"static_files"],[3,"favicons"],[3,"KEY"],[3,"GITHUB"],[3,"HOME"],[3,"SETTINGS_ICON"],[3,"CREDIT_CARD"],[3,"HELP_CIRCLE"],[3,"MESSAGE"],[3,"DOCS_ICON"],[3,"MCAPTCHA_TRANS_ICON"],[3,"BAR_CHART"],[3,"Real"],[3,"Dummy"],[8,"Stats"],[4,"__Field"],[3,"__FieldVisitor"],[3,"__Visitor"],[8,"Future"],[3,"Pin"],[3,"IndexPage"],[3,"INDEX_PAGE"],[3,"show_widget"],[3,"Widget"],[3,"Asset"],[3,"Asset"],[3,"Favicons"],[8,"CloneStats"]]}\ }'); if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)}; if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex}; diff --git a/settings.html b/settings.html index 1a85271d..1be3224a 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file +Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/src/db_core/errors.rs.html b/src/db_core/errors.rs.html index 1a56c5ba..ddc01f2c 100644 --- a/src/db_core/errors.rs.html +++ b/src/db_core/errors.rs.html @@ -1,4 +1,4 @@ -errors.rs - source
    1
    +errors.rs - source
    1
     2
     3
     4
    @@ -121,4 +121,4 @@
     /// Generic result data structure
     pub type DBResult<V> = std::result::Result<V, DBError>;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/db_core/lib.rs.html b/src/db_core/lib.rs.html index 4862a248..19dc16ac 100644 --- a/src/db_core/lib.rs.html +++ b/src/db_core/lib.rs.html @@ -1,4 +1,4 @@ -lib.rs - source
    1
    +lib.rs - source
    1
     2
     3
     4
    @@ -709,4 +709,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/db_core/ops.rs.html b/src/db_core/ops.rs.html index 18cc87d5..95490a2a 100644 --- a/src/db_core/ops.rs.html +++ b/src/db_core/ops.rs.html @@ -1,4 +1,4 @@ -ops.rs - source
    1
    +ops.rs - source
    1
     2
     3
     4
    @@ -97,4 +97,4 @@
         async fn migrate(&self) -> DBResult<()>;
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/db_core/tests.rs.html b/src/db_core/tests.rs.html index fdce8bd1..8d5de61c 100644 --- a/src/db_core/tests.rs.html +++ b/src/db_core/tests.rs.html @@ -1,4 +1,4 @@ -tests.rs - source
    1
    +tests.rs - source
    1
     2
     3
     4
    @@ -595,4 +595,4 @@
         assert!(!db.captcha_exists(Some(p.username), c.key).await.unwrap());
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/db_sqlx_maria/errors.rs.html b/src/db_sqlx_maria/errors.rs.html index 762fba04..c81f556c 100644 --- a/src/db_sqlx_maria/errors.rs.html +++ b/src/db_sqlx_maria/errors.rs.html @@ -1,4 +1,4 @@ -errors.rs - source
    1
    +errors.rs - source
    1
     2
     3
     4
    @@ -109,4 +109,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/db_sqlx_maria/lib.rs.html b/src/db_sqlx_maria/lib.rs.html index 7b085a9a..e92b8e95 100644 --- a/src/db_sqlx_maria/lib.rs.html +++ b/src/db_sqlx_maria/lib.rs.html @@ -1,4 +1,4 @@ -lib.rs - source
    1
    +lib.rs - source
    1
     2
     3
     4
    @@ -1923,4 +1923,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/db_sqlx_postgres/errors.rs.html b/src/db_sqlx_postgres/errors.rs.html index a1d221cd..4126bfef 100644 --- a/src/db_sqlx_postgres/errors.rs.html +++ b/src/db_sqlx_postgres/errors.rs.html @@ -1,4 +1,4 @@ -errors.rs - source
    1
    +errors.rs - source
    1
     2
     3
     4
    @@ -111,4 +111,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/db_sqlx_postgres/lib.rs.html b/src/db_sqlx_postgres/lib.rs.html index da5016ad..cd92283e 100644 --- a/src/db_sqlx_postgres/lib.rs.html +++ b/src/db_sqlx_postgres/lib.rs.html @@ -1,4 +1,4 @@ -lib.rs - source
    1
    +lib.rs - source
    1
     2
     3
     4
    @@ -1935,4 +1935,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/mod.rs.html b/src/mcaptcha/api/mod.rs.html index a3eea023..2f9c3193 100644 --- a/src/mcaptcha/api/mod.rs.html +++ b/src/mcaptcha/api/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -35,4 +35,4 @@
     
     pub mod v1;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/account/delete.rs.html b/src/mcaptcha/api/v1/account/delete.rs.html index 00fc2316..a15fcef2 100644 --- a/src/mcaptcha/api/v1/account/delete.rs.html +++ b/src/mcaptcha/api/v1/account/delete.rs.html @@ -1,4 +1,4 @@ -delete.rs - source
    1
    +delete.rs - source
    1
     2
     3
     4
    @@ -127,4 +127,4 @@
         cfg.service(delete_account);
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/account/email.rs.html b/src/mcaptcha/api/v1/account/email.rs.html index 3e254d8e..b67cfb18 100644 --- a/src/mcaptcha/api/v1/account/email.rs.html +++ b/src/mcaptcha/api/v1/account/email.rs.html @@ -1,4 +1,4 @@ -email.rs - source
    1
    +email.rs - source
    1
     2
     3
     4
    @@ -139,4 +139,4 @@
         cfg.service(set_email);
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/account/mod.rs.html b/src/mcaptcha/api/v1/account/mod.rs.html index 7571e078..8224439d 100644 --- a/src/mcaptcha/api/v1/account/mod.rs.html +++ b/src/mcaptcha/api/v1/account/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -167,4 +167,4 @@
         password::services(cfg);
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/account/password.rs.html b/src/mcaptcha/api/v1/account/password.rs.html index 86004f11..21bef591 100644 --- a/src/mcaptcha/api/v1/account/password.rs.html +++ b/src/mcaptcha/api/v1/account/password.rs.html @@ -1,4 +1,4 @@ -password.rs - source
    1
    +password.rs - source
    1
     2
     3
     4
    @@ -403,4 +403,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/account/secret.rs.html b/src/mcaptcha/api/v1/account/secret.rs.html index de49185c..6be7c21f 100644 --- a/src/mcaptcha/api/v1/account/secret.rs.html +++ b/src/mcaptcha/api/v1/account/secret.rs.html @@ -1,4 +1,4 @@ -secret.rs - source
    1
    +secret.rs - source
    1
     2
     3
     4
    @@ -125,4 +125,4 @@
         cfg.service(update_user_secret);
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/account/username.rs.html b/src/mcaptcha/api/v1/account/username.rs.html index 6be3d370..5c9e3553 100644 --- a/src/mcaptcha/api/v1/account/username.rs.html +++ b/src/mcaptcha/api/v1/account/username.rs.html @@ -1,4 +1,4 @@ -username.rs - source
    1
    +username.rs - source
    1
     2
     3
     4
    @@ -153,4 +153,4 @@
         cfg.service(set_username);
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/auth.rs.html b/src/mcaptcha/api/v1/auth.rs.html index 53936ed5..0a41407b 100644 --- a/src/mcaptcha/api/v1/auth.rs.html +++ b/src/mcaptcha/api/v1/auth.rs.html @@ -1,4 +1,4 @@ -auth.rs - source
    1
    +auth.rs - source
    1
     2
     3
     4
    @@ -403,4 +403,4 @@
             .finish()
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/mcaptcha/create.rs.html b/src/mcaptcha/api/v1/mcaptcha/create.rs.html index 33940e60..28cd3913 100644 --- a/src/mcaptcha/api/v1/mcaptcha/create.rs.html +++ b/src/mcaptcha/api/v1/mcaptcha/create.rs.html @@ -1,4 +1,4 @@ -create.rs - source
    1
    +create.rs - source
    1
     2
     3
     4
    @@ -197,4 +197,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/mcaptcha/delete.rs.html b/src/mcaptcha/api/v1/mcaptcha/delete.rs.html index 2e98b7bd..24497f2c 100644 --- a/src/mcaptcha/api/v1/mcaptcha/delete.rs.html +++ b/src/mcaptcha/api/v1/mcaptcha/delete.rs.html @@ -1,4 +1,4 @@ -delete.rs - source
    1
    +delete.rs - source
    1
     2
     3
     4
    @@ -115,4 +115,4 @@
         Ok(HttpResponse::Ok())
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/mcaptcha/easy.rs.html b/src/mcaptcha/api/v1/mcaptcha/easy.rs.html index 0a8005e3..0a37d756 100644 --- a/src/mcaptcha/api/v1/mcaptcha/easy.rs.html +++ b/src/mcaptcha/api/v1/mcaptcha/easy.rs.html @@ -1,4 +1,4 @@ -easy.rs - source
    1
    +easy.rs - source
    1
     2
     3
     4
    @@ -795,4 +795,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/mcaptcha/get.rs.html b/src/mcaptcha/api/v1/mcaptcha/get.rs.html index 4bfca308..6be63b83 100644 --- a/src/mcaptcha/api/v1/mcaptcha/get.rs.html +++ b/src/mcaptcha/api/v1/mcaptcha/get.rs.html @@ -1,4 +1,4 @@ -get.rs - source
    1
    +get.rs - source
    1
     2
     3
     4
    @@ -103,4 +103,4 @@
         pub visitor_threshold: i32,
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/mcaptcha/mod.rs.html b/src/mcaptcha/api/v1/mcaptcha/mod.rs.html index 83b0b6a5..5332adf7 100644 --- a/src/mcaptcha/api/v1/mcaptcha/mod.rs.html +++ b/src/mcaptcha/api/v1/mcaptcha/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -155,4 +155,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/mcaptcha/stats.rs.html b/src/mcaptcha/api/v1/mcaptcha/stats.rs.html index 5d78226f..2bf5c009 100644 --- a/src/mcaptcha/api/v1/mcaptcha/stats.rs.html +++ b/src/mcaptcha/api/v1/mcaptcha/stats.rs.html @@ -1,4 +1,4 @@ -stats.rs - source
    1
    +stats.rs - source
    1
     2
     3
     4
    @@ -107,4 +107,4 @@
         Ok(HttpResponse::Ok().json(&stats))
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/mcaptcha/update.rs.html b/src/mcaptcha/api/v1/mcaptcha/update.rs.html index 9bb74556..87bd701d 100644 --- a/src/mcaptcha/api/v1/mcaptcha/update.rs.html +++ b/src/mcaptcha/api/v1/mcaptcha/update.rs.html @@ -1,4 +1,4 @@ -update.rs - source
    1
    +update.rs - source
    1
     2
     3
     4
    @@ -433,4 +433,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/meta.rs.html b/src/mcaptcha/api/v1/meta.rs.html index 83c83138..cfecb77b 100644 --- a/src/mcaptcha/api/v1/meta.rs.html +++ b/src/mcaptcha/api/v1/meta.rs.html @@ -1,4 +1,4 @@ -meta.rs - source
    1
    +meta.rs - source
    1
     2
     3
     4
    @@ -305,4 +305,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/mod.rs.html b/src/mcaptcha/api/v1/mod.rs.html index 01b8020f..66c28523 100644 --- a/src/mcaptcha/api/v1/mod.rs.html +++ b/src/mcaptcha/api/v1/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -101,4 +101,4 @@
     #[cfg(test)]
     mod tests;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/notifications/add.rs.html b/src/mcaptcha/api/v1/notifications/add.rs.html index 2c18f9b5..10a2977b 100644 --- a/src/mcaptcha/api/v1/notifications/add.rs.html +++ b/src/mcaptcha/api/v1/notifications/add.rs.html @@ -1,4 +1,4 @@ -add.rs - source
    1
    +add.rs - source
    1
     2
     3
     4
    @@ -225,4 +225,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/notifications/get.rs.html b/src/mcaptcha/api/v1/notifications/get.rs.html index 1f783512..5aeaa7b4 100644 --- a/src/mcaptcha/api/v1/notifications/get.rs.html +++ b/src/mcaptcha/api/v1/notifications/get.rs.html @@ -1,4 +1,4 @@ -get.rs - source
    1
    +get.rs - source
    1
     2
     3
     4
    @@ -307,4 +307,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/notifications/mark_read.rs.html b/src/mcaptcha/api/v1/notifications/mark_read.rs.html index 57f9def1..3b0059ba 100644 --- a/src/mcaptcha/api/v1/notifications/mark_read.rs.html +++ b/src/mcaptcha/api/v1/notifications/mark_read.rs.html @@ -1,4 +1,4 @@ -mark_read.rs - source
    1
    +mark_read.rs - source
    1
     2
     3
     4
    @@ -303,4 +303,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/notifications/mod.rs.html b/src/mcaptcha/api/v1/notifications/mod.rs.html index 903aad49..81c6368d 100644 --- a/src/mcaptcha/api/v1/notifications/mod.rs.html +++ b/src/mcaptcha/api/v1/notifications/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -89,4 +89,4 @@
         cfg.service(mark_read::mark_read);
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/pow/get_config.rs.html b/src/mcaptcha/api/v1/pow/get_config.rs.html index e441ec20..ea8342df 100644 --- a/src/mcaptcha/api/v1/pow/get_config.rs.html +++ b/src/mcaptcha/api/v1/pow/get_config.rs.html @@ -1,4 +1,4 @@ -get_config.rs - source
    1
    +get_config.rs - source
    1
     2
     3
     4
    @@ -605,4 +605,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/pow/mod.rs.html b/src/mcaptcha/api/v1/pow/mod.rs.html index 3b5e126c..267a3d0a 100644 --- a/src/mcaptcha/api/v1/pow/mod.rs.html +++ b/src/mcaptcha/api/v1/pow/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -191,4 +191,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/pow/verify_pow.rs.html b/src/mcaptcha/api/v1/pow/verify_pow.rs.html index d3bd961e..ae2ba9bf 100644 --- a/src/mcaptcha/api/v1/pow/verify_pow.rs.html +++ b/src/mcaptcha/api/v1/pow/verify_pow.rs.html @@ -1,4 +1,4 @@ -verify_pow.rs - source
    1
    +verify_pow.rs - source
    1
     2
     3
     4
    @@ -307,4 +307,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/pow/verify_token.rs.html b/src/mcaptcha/api/v1/pow/verify_token.rs.html index f21b8978..c1b65444 100644 --- a/src/mcaptcha/api/v1/pow/verify_token.rs.html +++ b/src/mcaptcha/api/v1/pow/verify_token.rs.html @@ -1,4 +1,4 @@ -verify_token.rs - source
    1
    +verify_token.rs - source
    1
     2
     3
     4
    @@ -415,4 +415,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/api/v1/routes.rs.html b/src/mcaptcha/api/v1/routes.rs.html index bcc7ed96..4cf6d505 100644 --- a/src/mcaptcha/api/v1/routes.rs.html +++ b/src/mcaptcha/api/v1/routes.rs.html @@ -1,4 +1,4 @@ -routes.rs - source
    1
    +routes.rs - source
    1
     2
     3
     4
    @@ -107,4 +107,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/data.rs.html b/src/mcaptcha/data.rs.html index aa5b100b..5560eb87 100644 --- a/src/mcaptcha/data.rs.html +++ b/src/mcaptcha/data.rs.html @@ -1,4 +1,4 @@ -data.rs - source
    1
    +data.rs - source
    1
     2
     3
     4
    @@ -507,4 +507,4 @@
     /// Mailer data type AsyncSmtpTransport<Tokio1Executor>
     pub type Mailer = AsyncSmtpTransport<Tokio1Executor>;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/date.rs.html b/src/mcaptcha/date.rs.html index 639b6944..f9f30a61 100644 --- a/src/mcaptcha/date.rs.html +++ b/src/mcaptcha/date.rs.html @@ -1,4 +1,4 @@ -date.rs - source
    1
    +date.rs - source
    1
     2
     3
     4
    @@ -229,4 +229,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/db.rs.html b/src/mcaptcha/db.rs.html index a84495aa..5c88af69 100644 --- a/src/mcaptcha/db.rs.html +++ b/src/mcaptcha/db.rs.html @@ -1,4 +1,4 @@ -db.rs - source
    1
    +db.rs - source
    1
     2
     3
     4
    @@ -119,4 +119,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/demo.rs.html b/src/mcaptcha/demo.rs.html index 4466770f..57544c82 100644 --- a/src/mcaptcha/demo.rs.html +++ b/src/mcaptcha/demo.rs.html @@ -1,4 +1,4 @@ -demo.rs - source
    1
    +demo.rs - source
    1
     2
     3
     4
    @@ -355,4 +355,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/docs.rs.html b/src/mcaptcha/docs.rs.html index c7f6e948..e3d7c688 100644 --- a/src/mcaptcha/docs.rs.html +++ b/src/mcaptcha/docs.rs.html @@ -1,4 +1,4 @@ -docs.rs - source
    1
    +docs.rs - source
    1
     2
     3
     4
    @@ -269,4 +269,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/email/mod.rs.html b/src/mcaptcha/email/mod.rs.html index 6cedc5e5..29de98cc 100644 --- a/src/mcaptcha/email/mod.rs.html +++ b/src/mcaptcha/email/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -35,4 +35,4 @@
     
     pub mod verification;
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/email/verification.rs.html b/src/mcaptcha/email/verification.rs.html index 5d570e65..28050619 100644 --- a/src/mcaptcha/email/verification.rs.html +++ b/src/mcaptcha/email/verification.rs.html @@ -1,4 +1,4 @@ -verification.rs - source
    1
    +verification.rs - source
    1
     2
     3
     4
    @@ -279,4 +279,4 @@ project website: {}",
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/errors.rs.html b/src/mcaptcha/errors.rs.html index 4067b74a..226228ee 100644 --- a/src/mcaptcha/errors.rs.html +++ b/src/mcaptcha/errors.rs.html @@ -1,4 +1,4 @@ -errors.rs - source
    1
    +errors.rs - source
    1
     2
     3
     4
    @@ -677,4 +677,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/advance-0d54b688620d9fd0.html b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/advance-0d54b688620d9fd0.html new file mode 100644 index 00000000..108bcbff --- /dev/null +++ b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/advance-0d54b688620d9fd0.html @@ -0,0 +1,702 @@ +advance-0d54b688620d9fd0 - source
    1
    +2
    +3
    +4
    +5
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +55
    +56
    +57
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +65
    +66
    +67
    +68
    +69
    +70
    +71
    +72
    +73
    +74
    +75
    +76
    +77
    +78
    +79
    +80
    +81
    +82
    +83
    +84
    +85
    +86
    +87
    +88
    +89
    +90
    +91
    +92
    +93
    +94
    +95
    +96
    +97
    +98
    +99
    +100
    +101
    +102
    +103
    +104
    +105
    +106
    +107
    +108
    +109
    +110
    +111
    +112
    +113
    +114
    +115
    +116
    +117
    +118
    +119
    +120
    +121
    +122
    +123
    +124
    +125
    +126
    +127
    +128
    +129
    +130
    +131
    +132
    +133
    +134
    +135
    +136
    +137
    +138
    +139
    +140
    +141
    +142
    +143
    +144
    +145
    +146
    +147
    +148
    +149
    +150
    +151
    +152
    +153
    +154
    +155
    +156
    +157
    +158
    +159
    +160
    +161
    +162
    +163
    +164
    +165
    +166
    +167
    +168
    +169
    +170
    +171
    +172
    +173
    +174
    +175
    +176
    +177
    +178
    +179
    +180
    +181
    +182
    +183
    +184
    +185
    +186
    +187
    +188
    +189
    +190
    +191
    +192
    +193
    +194
    +195
    +196
    +197
    +198
    +199
    +200
    +201
    +202
    +203
    +204
    +205
    +206
    +207
    +208
    +209
    +210
    +211
    +212
    +213
    +214
    +215
    +216
    +217
    +218
    +219
    +220
    +221
    +222
    +223
    +224
    +225
    +226
    +227
    +228
    +229
    +230
    +231
    +232
    +233
    +234
    +235
    +236
    +237
    +238
    +239
    +240
    +241
    +242
    +243
    +244
    +245
    +246
    +247
    +248
    +249
    +250
    +251
    +252
    +253
    +254
    +255
    +256
    +257
    +258
    +259
    +260
    +261
    +262
    +263
    +264
    +265
    +266
    +267
    +268
    +269
    +270
    +271
    +272
    +273
    +274
    +275
    +276
    +277
    +278
    +279
    +280
    +281
    +282
    +283
    +284
    +285
    +286
    +287
    +288
    +289
    +290
    +291
    +292
    +293
    +294
    +295
    +296
    +297
    +298
    +299
    +300
    +301
    +302
    +303
    +304
    +305
    +306
    +307
    +308
    +309
    +310
    +311
    +312
    +313
    +314
    +315
    +316
    +317
    +318
    +319
    +320
    +321
    +322
    +323
    +324
    +325
    +326
    +327
    +328
    +329
    +330
    +331
    +332
    +333
    +334
    +335
    +336
    +337
    +338
    +339
    +340
    +341
    +342
    +343
    +344
    +345
    +346
    +347
    +348
    +349
    +350
    +
    {
    +    const URL: &str = crate::V1_API_ROUTES.captcha.update;
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const READONLY: bool = false;
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    let edit_url = crate::PAGES.panel.sitekey.get_edit_easy(&key);
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    {
    +        {
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"
    +            );
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<meta charset=\"UTF-8\" />\n<title>");
    +                __sf_rt::render_escaped!(__sf_buf, PAGE);
    +                __sf_rt::render_text!(__sf_buf, " | ");
    +                __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +                __sf_rt :: render_text ! (__sf_buf , "</title>\n<meta name=\"referrer\" content=\"no-referrer-when-downgrade\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n<meta\nname=\"description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"author\" content=\"Aravinth Manivannan\" />\n<meta name=\"twitter:card\" value=\"summary_large_image\" />\n<meta name=\"twitter:site\" content=\"@realaravinth\" />\n<meta\nname=\"twitter:title\"\ncontent=\"");
    +                __sf_rt::render_escaped!(__sf_buf, PAGE);
    +                __sf_rt::render_text!(__sf_buf, " | ");
    +                __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +                __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nname=\"twitter:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"twitter:creator\" content=\"@realaravinth\" />\n<meta name=\"twitter:image\"\ncontent=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/icon-trans.png")
    +                        .unwrap()
    +                );
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\"\n/>\n<meta\nproperty=\"og:title\"\ncontent=\""
    +                );
    +                __sf_rt::render_escaped!(__sf_buf, PAGE);
    +                __sf_rt::render_text!(__sf_buf, " | ");
    +                __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +                __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta property=\"og:type\" content=\"article\" />\n<meta property=\"og:url\" content=\"https://mcaptcaha.org\" />\n<meta property=\"og:image\"\ncontent=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/icon-trans.png")
    +                        .unwrap()
    +                );
    +                __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nproperty=\"og:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta property=\"og:site_name\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>");
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt :: render_text ! (__sf_buf , "<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\"  href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">");
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n</head>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n<body class=\"layout\">");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a  class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n</a>\n<a href=\"/\" class=\"secondary-menu__brand-name\">\nmCaptcha\n</a>\n<label class=\"nav__hamburger-menu\"for=\"nav-toggle\">\n<span></span>\n<span></span>\n<span></span>\n</label>\n</div>\n<ul class=\"secondary-menu__list\">\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.home);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\" src=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::HOME.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::HOME.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nOverview\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.list);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\" src=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::KEY.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::KEY.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSite Keys\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.settings.home);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\" src=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSettings\n</div>\n</a>\n</li>\n");
    +            if crate::SETTINGS.commercial {
    +                __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.0);
    +                __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.1);
    +                __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nBilling\n</div>\n</a>\n</li>\n");
    +            }
    +            __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nHelp\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img\nclass=\"secondary-menu__icon\"\nsrc=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.0);
    +            __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<div class=\"secondary-menu__item-name\">\nSupport\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::DOCS.home);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\" src=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nAPI Docs\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS.source_code);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\"\nsrc=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSource Code\n</div>\n</a>\n</li>\n</ul>\n</nav>\n<!-- Nav/Side/Secondary bar -->");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n<div class=\"tmp-layout\">");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<header>\n");
    +            {
    +                __sf_rt :: render_text ! (__sf_buf , "<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n");
    +                {
    +                    __sf_rt::render_text!(
    +                        __sf_buf,
    +                        "<a class=\"taskbar__link\" href=\""
    +                    );
    +                    __sf_rt::render_escaped!(
    +                        __sf_buf,
    +                        crate::PAGES.panel.sitekey.add_easy
    +                    );
    +                    __sf_rt :: render_text ! (__sf_buf , "\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>");
    +                };
    +                __sf_rt :: render_text ! (__sf_buf , "\n</li>\n<li class=\"taskbar__action\">\n<img class=\"taskbar__icon\" src=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES.get("./static/cache/img/svg/moon.svg").unwrap()
    +                );
    +                __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Profile\" />\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.notifications);
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\">\n<img class=\"taskbar__icon\" src=\""
    +                );
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES.get("./static/cache/img/svg/bell.svg").unwrap()
    +                );
    +                __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Notifications\" />\n</a>\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.auth.logout);
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\">\n<img class=\"taskbar__icon\" src=\""
    +                );
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/svg/log-out.svg")
    +                        .unwrap()
    +                );
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\"\nalt=\"Profile\" /></a\n>\n</li>\n</ul>"
    +                );
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n</header>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n<main class=\"panel-main\">\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>");
    +        };
    +        __sf_rt :: render_text ! (__sf_buf , "\n<!-- Main content container -->\n<div class=\"inner-container\">\n<!-- Main menu/ important actions roaster -->\n<form class=\"sitekey-form\" action=\"");
    +        __sf_rt::render_escaped!(__sf_buf, URL);
    +        __sf_rt::render_text!(__sf_buf, "\" method=\"post\">");
    +    };
    +    __sf_rt :: render_text ! (__sf_buf , "\n<div class=\"sitekey-form__advance-options-container\">\n<h1 class=\"form__title\">Sitekey: ");
    +    __sf_rt::render_escaped!(__sf_buf, name);
    +    __sf_rt::render_text!(
    +        __sf_buf,
    +        " </h1>\n<a\nclass=\"sitekey-form__advance-options-link\"\nhref=\""
    +    );
    +    __sf_rt::render_escaped!(__sf_buf, edit_url);
    +    __sf_rt::render_text!(__sf_buf, "\">\nEasy Options\n</a>\n</div>\n");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "</h1>\n<label class=\"sitekey-form__label\" for=\"description\">\nDescription\n<input\n");
    +        if READONLY {
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            __sf_rt::render_escaped!(__sf_buf, "readonly='readonly'");
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\nclass=\"sitekey-form__input\"\ntype=\"text\"\nname=\"description\"\nid=\"description\"\nrequired\n");
    +        if !name.trim().is_empty() {
    +            __sf_rt::render_text!(__sf_buf, "\nvalue=\"");
    +            __sf_rt::render_escaped!(__sf_buf, name);
    +            __sf_rt::render_text!(__sf_buf, "\"\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\n/>\n</label>\n<label class=\"sitekey-form__label\" for=\"duration\">\nCooldown Duratoin(in seconds)\n<input\n");
    +        if READONLY {
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            __sf_rt::render_escaped!(__sf_buf, "readonly='readonly'");
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\nclass=\"sitekey-form__input\"\ntype=\"number\"\nname=\"duration\"\nid=\"duration\"\nmin=0\nrequired\nvalue=\"");
    +        __sf_rt::render_escaped!(__sf_buf, duration);
    +        __sf_rt::render_text!(__sf_buf, "\"\n/>\n</label>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n\n");
    +    for (count, level) in levels.iter().enumerate() {
    +        {
    +            let num = count + 1;
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\n<fieldset class=\"sitekey__level-container\" id=\"level-group-"
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<legend class=\"sitekey__level-title\">\nLevel "
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\n</legend>\n<label class=\"sitekey-form__level-label\" for=\"visitor"
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n>Visitor\n<input\nclass=\"sitekey-form__level-input\"\ntype=\"number\"\nname=\"visitor");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(__sf_buf, "\"\nvalue=\"");
    +            __sf_rt::render_escaped!(__sf_buf, level.visitor_threshold);
    +            __sf_rt::render_text!(__sf_buf, "\"\nid=\"visitor");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n</label>\n<label class=\"sitekey-form__level-label\" for=\"difficulty");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\nDifficulty\n<input\ntype=\"number\"\nid=\"difficulty"
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\nclass=\"sitekey-form__level-input\"\nvalue=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, level.difficulty_factor);
    +            __sf_rt::render_text!(__sf_buf, "\"\nid=\"difficulty");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n</label>\n<label class=\"sitekey-form__level-label--hidden\" for=\"remove");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt :: render_text ! (__sf_buf , "\">\nRemoveLevel\n<input\nclass=\"sitekey-form__level-remove-level-button\"\ntype=\"button\"\nid=\"remove-level");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\nid=\"remove-level1\"\nvalue=\"x\"\n/></label>\n</fieldset>"
    +            );
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n\n");
    +    }
    +    unsafe {
    +        __sf_buf._set_len(__sf_buf.len() - 1usize);
    +    }
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    let level = levels.len() + 1;
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    {
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "<fieldset class=\"sitekey__level-container\" id=\"level-group-"
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, level);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<legend class=\"sitekey__level-title\">\nLevel "
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, level);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\n</legend>\n<label class=\"sitekey-form__level-label\" for=\"visitor"
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, level);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n>Visitor\n<input\nclass=\"sitekey-form__level-input\"\ntype=\"number\"\nname=\"visitor");
    +        __sf_rt::render_escaped!(__sf_buf, level);
    +        __sf_rt::render_text!(__sf_buf, "\"\nid=\"visitor");
    +        __sf_rt::render_escaped!(__sf_buf, level);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n</label>\n<label class=\"sitekey-form__level-label\" for=\"difficulty");
    +        __sf_rt::render_escaped!(__sf_buf, level);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\nDifficulty\n<input\ntype=\"number\"\nname=\"difficulty"
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, level);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\"\nclass=\"sitekey-form__level-input\"\nid=\"difficulty"
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, level);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n</label>\n<label class=\"sitekey-form__level-label--hidden\" for=\"add\">\n<span class=\"sitekey-form__add-level-btn-spacer\">Add level</span>\n<input\nclass=\"sitekey-form__level-add-level-button\"\ntype=\"button\"\nname=\"add\"\nid=\"add\"\nvalue=\"Add\"\n/>\n</label>\n</fieldset>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<button data-sitekey=\"");
    +    __sf_rt::render_escaped!(__sf_buf, key);
    +    __sf_rt :: render_text ! (__sf_buf , "\"\nid=\"sitekey-form__submit\" class=\"sitekey-form__submit\" type=\"submit\">\nSubmit\n</button>");
    +    {
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "    </form>\n</div>\n<!-- end of container -->"
    +        );
    +        {
    +            __sf_rt::render_text!(__sf_buf, "</main>\n");
    +            {
    +                __sf_rt :: render_text ! (__sf_buf , "<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +                __sf_rt :: render_text ! (__sf_buf , "\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.about);
    +                __sf_rt :: render_text ! (__sf_buf , "\">About</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.donate);
    +                __sf_rt :: render_text ! (__sf_buf , "\">Donate</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.privacy);
    +                __sf_rt :: render_text ! (__sf_buf , "\">Privacy</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.security);
    +                __sf_rt :: render_text ! (__sf_buf , "\">Security</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.thanks);
    +                __sf_rt :: render_text ! (__sf_buf , "\">Thanks</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +                __sf_rt::render_escaped!(__sf_buf, &*crate::SOURCE_FILES_OF_INSTANCE);
    +                __sf_rt::render_text!(__sf_buf, "\">\nv");
    +                __sf_rt::render_escaped!(__sf_buf, crate::VERSION);
    +                __sf_rt::render_text!(__sf_buf, "-");
    +                __sf_rt::render_escaped!(__sf_buf, crate::GIT_COMMIT_HASH[0..8]);
    +                __sf_rt::render_text!(__sf_buf, "\n</a>\n</li>\n</ul>\n</footer>");
    +            };
    +            __sf_rt :: render_text ! (__sf_buf , "\n</div>\n<link\nrel=\"stylesheet\"\nmedia=\"all\"\ntype=\"text/css\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, &*crate::CSS);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<link\nrel=\"stylesheet\"\nmedia=\"screen and (max-width: 1250px)\"\ntype=\"text/css\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, &*crate::MOBILE_CSS);
    +            __sf_rt::render_text!(__sf_buf, "\"\n/>\n<script src=\"");
    +            __sf_rt::render_escaped!(__sf_buf, &*crate::JS);
    +            __sf_rt::render_text!(__sf_buf, "\"></script>\n");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<div id=\"err__container\"></div>");
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n</body>\n</html>");
    +        };
    +    };
    +}
    +
    +
    +
    \ No newline at end of file diff --git a/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-6532a29b204ddc0b.html b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-6532a29b204ddc0b.html new file mode 100644 index 00000000..7ef5bc73 --- /dev/null +++ b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-6532a29b204ddc0b.html @@ -0,0 +1,746 @@ +index-6532a29b204ddc0b - source
    1
    +2
    +3
    +4
    +5
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +55
    +56
    +57
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +65
    +66
    +67
    +68
    +69
    +70
    +71
    +72
    +73
    +74
    +75
    +76
    +77
    +78
    +79
    +80
    +81
    +82
    +83
    +84
    +85
    +86
    +87
    +88
    +89
    +90
    +91
    +92
    +93
    +94
    +95
    +96
    +97
    +98
    +99
    +100
    +101
    +102
    +103
    +104
    +105
    +106
    +107
    +108
    +109
    +110
    +111
    +112
    +113
    +114
    +115
    +116
    +117
    +118
    +119
    +120
    +121
    +122
    +123
    +124
    +125
    +126
    +127
    +128
    +129
    +130
    +131
    +132
    +133
    +134
    +135
    +136
    +137
    +138
    +139
    +140
    +141
    +142
    +143
    +144
    +145
    +146
    +147
    +148
    +149
    +150
    +151
    +152
    +153
    +154
    +155
    +156
    +157
    +158
    +159
    +160
    +161
    +162
    +163
    +164
    +165
    +166
    +167
    +168
    +169
    +170
    +171
    +172
    +173
    +174
    +175
    +176
    +177
    +178
    +179
    +180
    +181
    +182
    +183
    +184
    +185
    +186
    +187
    +188
    +189
    +190
    +191
    +192
    +193
    +194
    +195
    +196
    +197
    +198
    +199
    +200
    +201
    +202
    +203
    +204
    +205
    +206
    +207
    +208
    +209
    +210
    +211
    +212
    +213
    +214
    +215
    +216
    +217
    +218
    +219
    +220
    +221
    +222
    +223
    +224
    +225
    +226
    +227
    +228
    +229
    +230
    +231
    +232
    +233
    +234
    +235
    +236
    +237
    +238
    +239
    +240
    +241
    +242
    +243
    +244
    +245
    +246
    +247
    +248
    +249
    +250
    +251
    +252
    +253
    +254
    +255
    +256
    +257
    +258
    +259
    +260
    +261
    +262
    +263
    +264
    +265
    +266
    +267
    +268
    +269
    +270
    +271
    +272
    +273
    +274
    +275
    +276
    +277
    +278
    +279
    +280
    +281
    +282
    +283
    +284
    +285
    +286
    +287
    +288
    +289
    +290
    +291
    +292
    +293
    +294
    +295
    +296
    +297
    +298
    +299
    +300
    +301
    +302
    +303
    +304
    +305
    +306
    +307
    +308
    +309
    +310
    +311
    +312
    +313
    +314
    +315
    +316
    +317
    +318
    +319
    +320
    +321
    +322
    +323
    +324
    +325
    +326
    +327
    +328
    +329
    +330
    +331
    +332
    +333
    +334
    +335
    +336
    +337
    +338
    +339
    +340
    +341
    +342
    +343
    +344
    +345
    +346
    +347
    +348
    +349
    +350
    +351
    +352
    +353
    +354
    +355
    +356
    +357
    +358
    +359
    +360
    +361
    +362
    +363
    +364
    +365
    +366
    +367
    +368
    +369
    +370
    +371
    +372
    +
    {
    +    const URL: &str = crate::V1_API_ROUTES.captcha.create;
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const READONLY: bool = true;
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    let edit_url = crate::PAGES.panel.sitekey.get_edit_easy(&key);
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    {
    +        {
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"
    +            );
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<meta charset=\"UTF-8\" />\n<title>");
    +                __sf_rt::render_escaped!(__sf_buf, PAGE);
    +                __sf_rt::render_text!(__sf_buf, " | ");
    +                __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +                __sf_rt :: render_text ! (__sf_buf , "</title>\n<meta name=\"referrer\" content=\"no-referrer-when-downgrade\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n<meta\nname=\"description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"author\" content=\"Aravinth Manivannan\" />\n<meta name=\"twitter:card\" value=\"summary_large_image\" />\n<meta name=\"twitter:site\" content=\"@realaravinth\" />\n<meta\nname=\"twitter:title\"\ncontent=\"");
    +                __sf_rt::render_escaped!(__sf_buf, PAGE);
    +                __sf_rt::render_text!(__sf_buf, " | ");
    +                __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +                __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nname=\"twitter:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"twitter:creator\" content=\"@realaravinth\" />\n<meta name=\"twitter:image\"\ncontent=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/icon-trans.png")
    +                        .unwrap()
    +                );
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\"\n/>\n<meta\nproperty=\"og:title\"\ncontent=\""
    +                );
    +                __sf_rt::render_escaped!(__sf_buf, PAGE);
    +                __sf_rt::render_text!(__sf_buf, " | ");
    +                __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +                __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta property=\"og:type\" content=\"article\" />\n<meta property=\"og:url\" content=\"https://mcaptcaha.org\" />\n<meta property=\"og:image\"\ncontent=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/icon-trans.png")
    +                        .unwrap()
    +                );
    +                __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nproperty=\"og:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta property=\"og:site_name\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>");
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt :: render_text ! (__sf_buf , "<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\"  href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">");
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n</head>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n<body class=\"layout\">");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a  class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n</a>\n<a href=\"/\" class=\"secondary-menu__brand-name\">\nmCaptcha\n</a>\n<label class=\"nav__hamburger-menu\"for=\"nav-toggle\">\n<span></span>\n<span></span>\n<span></span>\n</label>\n</div>\n<ul class=\"secondary-menu__list\">\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.home);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\" src=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::HOME.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::HOME.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nOverview\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.list);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\" src=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::KEY.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::KEY.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSite Keys\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.settings.home);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\" src=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSettings\n</div>\n</a>\n</li>\n");
    +            if crate::SETTINGS.commercial {
    +                __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.0);
    +                __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.1);
    +                __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nBilling\n</div>\n</a>\n</li>\n");
    +            }
    +            __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nHelp\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img\nclass=\"secondary-menu__icon\"\nsrc=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.0);
    +            __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<div class=\"secondary-menu__item-name\">\nSupport\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::DOCS.home);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\" src=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nAPI Docs\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS.source_code);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"secondary-menu__icon\"\nsrc=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSource Code\n</div>\n</a>\n</li>\n</ul>\n</nav>\n<!-- Nav/Side/Secondary bar -->");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n<div class=\"tmp-layout\">");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<header>\n");
    +            {
    +                __sf_rt :: render_text ! (__sf_buf , "<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n");
    +                {
    +                    __sf_rt::render_text!(
    +                        __sf_buf,
    +                        "<a class=\"taskbar__link\" href=\""
    +                    );
    +                    __sf_rt::render_escaped!(
    +                        __sf_buf,
    +                        crate::PAGES.panel.sitekey.add_easy
    +                    );
    +                    __sf_rt :: render_text ! (__sf_buf , "\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>");
    +                };
    +                __sf_rt :: render_text ! (__sf_buf , "\n</li>\n<li class=\"taskbar__action\">\n<img class=\"taskbar__icon\" src=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES.get("./static/cache/img/svg/moon.svg").unwrap()
    +                );
    +                __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Profile\" />\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.notifications);
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\">\n<img class=\"taskbar__icon\" src=\""
    +                );
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES.get("./static/cache/img/svg/bell.svg").unwrap()
    +                );
    +                __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Notifications\" />\n</a>\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.auth.logout);
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\">\n<img class=\"taskbar__icon\" src=\""
    +                );
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/svg/log-out.svg")
    +                        .unwrap()
    +                );
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\"\nalt=\"Profile\" /></a\n>\n</li>\n</ul>"
    +                );
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n</header>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n<main class=\"panel-main\">\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>");
    +        };
    +        __sf_rt :: render_text ! (__sf_buf , "\n<!-- Main content container -->\n<div class=\"inner-container\">\n<!-- Main menu/ important actions roaster -->\n<form class=\"sitekey-form\" action=\"");
    +        __sf_rt::render_escaped!(__sf_buf, URL);
    +        __sf_rt::render_text!(__sf_buf, "\" method=\"post\">");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<h1 class=\"form__title\">Sitekey: ");
    +    __sf_rt::render_escaped!(__sf_buf, name);
    +    __sf_rt::render_text!(__sf_buf, "\n<a\ntarget=\"_blank\"\nhref=\"");
    +    __sf_rt::render_escaped!(__sf_buf, crate::WIDGET_ROUTES.verification_widget);
    +    __sf_rt::render_text!(__sf_buf, "/?sitekey=");
    +    __sf_rt::render_escaped!(__sf_buf, &key);
    +    __sf_rt::render_text!(
    +        __sf_buf,
    +        "\"\n>View deployment\n<img class=\"sitekey-form__widget-link\"\nsrc=\""
    +    );
    +    __sf_rt::render_escaped!(
    +        __sf_buf,
    +        crate::FILES
    +            .get("./static/cache/img/svg/external-link.svg")
    +            .unwrap()
    +    );
    +    __sf_rt::render_text!(__sf_buf, "\"\nalt=\"View widget deployment\"\n/>\n</a>\n");
    +    if READONLY {
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        let edit_url = crate::PAGES.panel.sitekey.get_edit_easy(&key);
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<a href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, edit_url);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<img class=\"sitekey-form__edit\" src=\""
    +            );
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES.get("./static/cache/img/svg/edit.svg").unwrap()
    +            );
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"Edit\nsitekey\" />\n</a>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +    }
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<a href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.get_delete(&key));
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"sitekey-form__delete\"\nsrc=\""
    +        );
    +        __sf_rt::render_escaped!(
    +            __sf_buf,
    +            crate::FILES
    +                .get("./static/cache/img/svg/trash.svg")
    +                .unwrap()
    +        );
    +        __sf_rt::render_text!(__sf_buf, "\"\nalt=\"Delete sitekey\"\n/>\n</a>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "</h1>\n<label class=\"sitekey-form__label\" for=\"description\">\nDescription\n<input\n");
    +        if READONLY {
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            __sf_rt::render_escaped!(__sf_buf, "readonly='readonly'");
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\nclass=\"sitekey-form__input\"\ntype=\"text\"\nname=\"description\"\nid=\"description\"\nrequired\n");
    +        if !name.trim().is_empty() {
    +            __sf_rt::render_text!(__sf_buf, "\nvalue=\"");
    +            __sf_rt::render_escaped!(__sf_buf, name);
    +            __sf_rt::render_text!(__sf_buf, "\"\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\n/>\n</label>\n<label class=\"sitekey-form__label\" for=\"duration\">\nCooldown Duratoin(in seconds)\n<input\n");
    +        if READONLY {
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            __sf_rt::render_escaped!(__sf_buf, "readonly='readonly'");
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\nclass=\"sitekey-form__input\"\ntype=\"number\"\nname=\"duration\"\nid=\"duration\"\nmin=0\nrequired\nvalue=\"");
    +        __sf_rt::render_escaped!(__sf_buf, duration);
    +        __sf_rt::render_text!(__sf_buf, "\"\n/>\n</label>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n\n");
    +    for (count, level) in levels.iter().enumerate() {
    +        {
    +            let num = count + 1;
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\n<fieldset class=\"sitekey__level-container\" id=\"level-group-"
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\">\n<legend class=\"sitekey__level-title\">\nLevel "
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\n</legend>\n<label class=\"sitekey-form__level-label\" for=\"visitor"
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n>Visitor\n<input\nreadonly=\"readonly\"\nclass=\"sitekey-form__level-input\"\ntype=\"number\"\nname=\"visitor");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(__sf_buf, "\"\nvalue=\"");
    +            __sf_rt::render_escaped!(__sf_buf, level.visitor_threshold);
    +            __sf_rt::render_text!(__sf_buf, "\"\nreadonly\nid=\"visitor");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n</label>\n<label class=\"sitekey-form__level-label\" for=\"difficulty");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt :: render_text ! (__sf_buf , "\">\nDifficulty\n<input\nreadonly=\"readonly\"\ntype=\"number\"\nid=\"difficulty");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\nclass=\"sitekey-form__level-input\"\nvalue=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, level.difficulty_factor);
    +            __sf_rt::render_text!(__sf_buf, "\"\nreadonly\nid=\"difficulty");
    +            __sf_rt::render_escaped!(__sf_buf, num);
    +            __sf_rt::render_text!(__sf_buf, "\"\n/>\n</label>\n</fieldset>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n\n");
    +    }
    +    unsafe {
    +        __sf_buf._set_len(__sf_buf.len() - 1usize);
    +    }
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    __sf_rt::render_text!(__sf_buf, "\n</form>\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<div class=\"sitekey__stats-container\">\n");
    +        let tables = [
    +            ("Configuration Fetches", &stats.config_fetches),
    +            ("Proofs generated", &stats.solves),
    +            ("Grants Verified", &stats.confirms),
    +        ];
    +        __sf_rt :: render_text ! (__sf_buf , "\n\n<table class=\"notification__table\">\n<thead class=\"notification__heading\">\n<tr>\n<th colspan=\"4\" class=\"notification__title-text\">");
    +        for table in tables.iter() {
    +            __sf_rt::render_escaped!(__sf_buf, table.0);
    +            __sf_rt :: render_text ! (__sf_buf , "</th>\n</tr>\n</thead>\n<tbody class=\"notification__body\">\n\n<tr class=\"notification__item\">\n<td>\n<h3 class=\"notification__item-heading\">\n");
    +            for (count, val) in table.1.iter().enumerate() {
    +                __sf_rt::render_escaped!(__sf_buf, count + 1);
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\n</h3>\n</td>\n<td>\n<p class=\"notification__item-text\">"
    +                );
    +                __sf_rt::render_escaped!(__sf_buf, crate::date::Date::new(*val).date());
    +                __sf_rt :: render_text ! (__sf_buf , "</p>\n</td>\n</tr>\n\n<tr class=\"notification__item\">\n<td>\n<h3 class=\"notification__item-heading\">\n");
    +            }
    +            unsafe {
    +                __sf_buf._set_len(__sf_buf.len() - 78usize);
    +            }
    +            __sf_rt :: render_text ! (__sf_buf , "\n</tbody>\n</table>\n\n<table class=\"notification__table\">\n<thead class=\"notification__heading\">\n<tr>\n<th colspan=\"4\" class=\"notification__title-text\">");
    +        }
    +        unsafe {
    +            __sf_buf._set_len(__sf_buf.len() - 129usize);
    +        }
    +        __sf_rt::render_text!(__sf_buf, "\n</div>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n</div>\n<!-- end of container -->\n</main>");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "</main>\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.about);
    +            __sf_rt :: render_text ! (__sf_buf , "\">About</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.donate);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Donate</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.privacy);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Privacy</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.security);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Security</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.thanks);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Thanks</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, &*crate::SOURCE_FILES_OF_INSTANCE);
    +            __sf_rt::render_text!(__sf_buf, "\">\nv");
    +            __sf_rt::render_escaped!(__sf_buf, crate::VERSION);
    +            __sf_rt::render_text!(__sf_buf, "-");
    +            __sf_rt::render_escaped!(__sf_buf, crate::GIT_COMMIT_HASH[0..8]);
    +            __sf_rt::render_text!(__sf_buf, "\n</a>\n</li>\n</ul>\n</footer>");
    +        };
    +        __sf_rt :: render_text ! (__sf_buf , "\n</div>\n<link\nrel=\"stylesheet\"\nmedia=\"all\"\ntype=\"text/css\"\nhref=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::CSS);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<link\nrel=\"stylesheet\"\nmedia=\"screen and (max-width: 1250px)\"\ntype=\"text/css\"\nhref=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::MOBILE_CSS);
    +        __sf_rt::render_text!(__sf_buf, "\"\n/>\n<script src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::JS);
    +        __sf_rt::render_text!(__sf_buf, "\"></script>\n");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<div id=\"err__container\"></div>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n</body>\n</html>");
    +    };
    +}
    +
    +
    +
    \ No newline at end of file diff --git a/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-69dbd2cb3e3b897e.html b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-69dbd2cb3e3b897e.html new file mode 100644 index 00000000..43fda1ae --- /dev/null +++ b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-69dbd2cb3e3b897e.html @@ -0,0 +1,606 @@ +index-69dbd2cb3e3b897e - source
    1
    +2
    +3
    +4
    +5
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +55
    +56
    +57
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +65
    +66
    +67
    +68
    +69
    +70
    +71
    +72
    +73
    +74
    +75
    +76
    +77
    +78
    +79
    +80
    +81
    +82
    +83
    +84
    +85
    +86
    +87
    +88
    +89
    +90
    +91
    +92
    +93
    +94
    +95
    +96
    +97
    +98
    +99
    +100
    +101
    +102
    +103
    +104
    +105
    +106
    +107
    +108
    +109
    +110
    +111
    +112
    +113
    +114
    +115
    +116
    +117
    +118
    +119
    +120
    +121
    +122
    +123
    +124
    +125
    +126
    +127
    +128
    +129
    +130
    +131
    +132
    +133
    +134
    +135
    +136
    +137
    +138
    +139
    +140
    +141
    +142
    +143
    +144
    +145
    +146
    +147
    +148
    +149
    +150
    +151
    +152
    +153
    +154
    +155
    +156
    +157
    +158
    +159
    +160
    +161
    +162
    +163
    +164
    +165
    +166
    +167
    +168
    +169
    +170
    +171
    +172
    +173
    +174
    +175
    +176
    +177
    +178
    +179
    +180
    +181
    +182
    +183
    +184
    +185
    +186
    +187
    +188
    +189
    +190
    +191
    +192
    +193
    +194
    +195
    +196
    +197
    +198
    +199
    +200
    +201
    +202
    +203
    +204
    +205
    +206
    +207
    +208
    +209
    +210
    +211
    +212
    +213
    +214
    +215
    +216
    +217
    +218
    +219
    +220
    +221
    +222
    +223
    +224
    +225
    +226
    +227
    +228
    +229
    +230
    +231
    +232
    +233
    +234
    +235
    +236
    +237
    +238
    +239
    +240
    +241
    +242
    +243
    +244
    +245
    +246
    +247
    +248
    +249
    +250
    +251
    +252
    +253
    +254
    +255
    +256
    +257
    +258
    +259
    +260
    +261
    +262
    +263
    +264
    +265
    +266
    +267
    +268
    +269
    +270
    +271
    +272
    +273
    +274
    +275
    +276
    +277
    +278
    +279
    +280
    +281
    +282
    +283
    +284
    +285
    +286
    +287
    +288
    +289
    +290
    +291
    +292
    +293
    +294
    +295
    +296
    +297
    +298
    +299
    +300
    +301
    +302
    +
    {
    +    const DONE_ALT: &str = "sitekey copied";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const DONE_CLASS: &str = "sitekey__copy-done-icon";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const COPY_ALT: &str = "copy sitekey";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const COPY_CLASS: &str = "sitekey__copy-icon";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<meta charset=\"UTF-8\" />\n<title>");
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "</title>\n<meta name=\"referrer\" content=\"no-referrer-when-downgrade\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n<meta\nname=\"description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"author\" content=\"Aravinth Manivannan\" />\n<meta name=\"twitter:card\" value=\"summary_large_image\" />\n<meta name=\"twitter:site\" content=\"@realaravinth\" />\n<meta\nname=\"twitter:title\"\ncontent=\"");
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nname=\"twitter:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"twitter:creator\" content=\"@realaravinth\" />\n<meta name=\"twitter:image\"\ncontent=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/icon-trans.png")
    +                    .unwrap()
    +            );
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\n/>\n<meta\nproperty=\"og:title\"\ncontent=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta property=\"og:type\" content=\"article\" />\n<meta property=\"og:url\" content=\"https://mcaptcaha.org\" />\n<meta property=\"og:image\"\ncontent=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/icon-trans.png")
    +                    .unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nproperty=\"og:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta property=\"og:site_name\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\"  href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        if crate::SETTINGS.server.proxy_has_tls {
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt :: render_text ! (__sf_buf , "<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>");
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +        }
    +        __sf_rt::render_text!(__sf_buf, "\n</head>\n<body class=\"layout\">");
    +    };
    +    __sf_rt::render_text!(__sf_buf, " ");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a  class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n</a>\n<a href=\"/\" class=\"secondary-menu__brand-name\">\nmCaptcha\n</a>\n<label class=\"nav__hamburger-menu\"for=\"nav-toggle\">\n<span></span>\n<span></span>\n<span></span>\n</label>\n</div>\n<ul class=\"secondary-menu__list\">\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::HOME.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HOME.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nOverview\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.list);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::KEY.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::KEY.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSite Keys\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.settings.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSettings\n</div>\n</a>\n</li>\n");
    +        if crate::SETTINGS.commercial {
    +            __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nBilling\n</div>\n</a>\n</li>\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nHelp\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img\nclass=\"secondary-menu__icon\"\nsrc=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.0);
    +        __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<div class=\"secondary-menu__item-name\">\nSupport\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nAPI Docs\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS.source_code);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\"\nsrc=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSource Code\n</div>\n</a>\n</li>\n</ul>\n</nav>\n<!-- Nav/Side/Secondary bar -->");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<div class=\"tmp-layout\">\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<header>\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<a class=\"taskbar__link\" href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.add_easy);
    +                __sf_rt :: render_text ! (__sf_buf , "\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>");
    +            };
    +            __sf_rt :: render_text ! (__sf_buf , "\n</li>\n<li class=\"taskbar__action\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES.get("./static/cache/img/svg/moon.svg").unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Profile\" />\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.notifications);
    +            __sf_rt::render_text!(__sf_buf, "\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES.get("./static/cache/img/svg/bell.svg").unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Notifications\" />\n</a>\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.auth.logout);
    +            __sf_rt::render_text!(__sf_buf, "\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/svg/log-out.svg")
    +                    .unwrap()
    +            );
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\nalt=\"Profile\" /></a\n>\n</li>\n</ul>"
    +            );
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n</header>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<main class=\"panel-main\">\n");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<div class=\"inner-container\">\n");
    +    if sitekeys.is_empty() {
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<ul class=\"sitekey-list__box\">\n<p>\nIt looks like you don't have any sitekeys. Click ");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<a class=\"taskbar__link\" href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.add_easy);
    +                __sf_rt :: render_text ! (__sf_buf , "\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>");
    +            };
    +            __sf_rt::render_text!(__sf_buf, " to add new sitekey.\n</p>\n</ul>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +    } else {
    +        __sf_rt :: render_text ! (__sf_buf , "\n<table class=\"sitekey__table\">\n<thead class=\"sitekey__table-heading\">\n<tr>\n<th colspan=\"4\" class=\"sitekey__table-title-text\">\nYour Sitekeys\n</th>\n</tr>\n</thead>\n<tbody class=\"sitekey__body\">\n\n<tr class=\"sitekey__item\">\n<td class=\"sitekey-list__name\">\n<a\nhref=\"/sitekey/");
    +        for sitekey in sitekeys.iter() {
    +            __sf_rt::render_escaped!(__sf_buf, sitekey.key);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "/\"\nclass=\"sitekey-list__sitekey-link\"\n>\n"
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, sitekey.description);
    +            __sf_rt :: render_text ! (__sf_buf , "\n</a>\n</td>\n<td class=\"sitekey-list__key\">\n<div class=\"sitekey__key-container\">\n");
    +            let clipboard_data = ("sitekey", &sitekey.key);
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<img class=\"");
    +                __sf_rt::render_escaped!(__sf_buf, COPY_CLASS);
    +                __sf_rt::render_text!(__sf_buf, "\"\nsrc=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/svg/clipboard.svg")
    +                        .unwrap()
    +                );
    +                __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +                __sf_rt::render_escaped!(__sf_buf, COPY_ALT);
    +                __sf_rt::render_text!(__sf_buf, "\"\ndata-");
    +                __sf_rt::render_escaped!(__sf_buf, clipboard_data.0);
    +                __sf_rt::render_text!(__sf_buf, "=\"");
    +                __sf_rt::render_escaped!(__sf_buf, clipboard_data.1);
    +                __sf_rt::render_text!(__sf_buf, "\"\n/>\n<img\nclass=\"");
    +                __sf_rt::render_escaped!(__sf_buf, DONE_CLASS);
    +                __sf_rt::render_text!(__sf_buf, "\"\nsrc=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/svg/check.svg")
    +                        .unwrap()
    +                );
    +                __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +                __sf_rt::render_escaped!(__sf_buf, DONE_ALT);
    +                __sf_rt::render_text!(__sf_buf, "\"\n/>");
    +            };
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\n<a\nclass=\"sitekey__widget-link\"\nhref=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::WIDGET_ROUTES.verification_widget);
    +            __sf_rt::render_text!(__sf_buf, "/?sitekey=");
    +            __sf_rt::render_escaped!(__sf_buf, sitekey.key);
    +            __sf_rt::render_text!(__sf_buf, "\"\n>\n");
    +            __sf_rt::render_escaped!(__sf_buf, &sitekey.key[0..5]);
    +            __sf_rt :: render_text ! (__sf_buf , "\n</a>\n</div>\n</td>\n<td class=\"sitekey-list__key\">\n<div class=\"sitekey-list__edit\">\n");
    +            let edit_url = crate::PAGES.panel.sitekey.get_edit_easy(&sitekey.key);
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<a href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, edit_url);
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\">\n<img class=\"sitekey-form__edit\" src=\""
    +                );
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES.get("./static/cache/img/svg/edit.svg").unwrap()
    +                );
    +                __sf_rt::render_text!(__sf_buf, "\" alt=\"Edit\nsitekey\" />\n</a>");
    +            };
    +            __sf_rt :: render_text ! (__sf_buf , "\n</div>\n</td>\n</tr>\n\n<tr class=\"sitekey__item\">\n<td class=\"sitekey-list__name\">\n<a\nhref=\"/sitekey/");
    +        }
    +        unsafe {
    +            __sf_buf._set_len(__sf_buf.len() - 78usize);
    +        }
    +        __sf_rt::render_text!(__sf_buf, "\n</tbody>\n</table>\n");
    +    }
    +    __sf_rt::render_text!(__sf_buf, "\n</div>\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "</main>\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.about);
    +            __sf_rt :: render_text ! (__sf_buf , "\">About</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.donate);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Donate</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.privacy);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Privacy</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.security);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Security</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.thanks);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Thanks</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, &*crate::SOURCE_FILES_OF_INSTANCE);
    +            __sf_rt::render_text!(__sf_buf, "\">\nv");
    +            __sf_rt::render_escaped!(__sf_buf, crate::VERSION);
    +            __sf_rt::render_text!(__sf_buf, "-");
    +            __sf_rt::render_escaped!(__sf_buf, crate::GIT_COMMIT_HASH[0..8]);
    +            __sf_rt::render_text!(__sf_buf, "\n</a>\n</li>\n</ul>\n</footer>");
    +        };
    +        __sf_rt :: render_text ! (__sf_buf , "\n</div>\n<link\nrel=\"stylesheet\"\nmedia=\"all\"\ntype=\"text/css\"\nhref=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::CSS);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<link\nrel=\"stylesheet\"\nmedia=\"screen and (max-width: 1250px)\"\ntype=\"text/css\"\nhref=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::MOBILE_CSS);
    +        __sf_rt::render_text!(__sf_buf, "\"\n/>\n<script src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::JS);
    +        __sf_rt::render_text!(__sf_buf, "\"></script>\n");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<div id=\"err__container\"></div>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n</body>\n</html>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n</main>\n</div>");
    +}
    +
    +
    +
    \ No newline at end of file diff --git a/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-71f42f040d236f76.html b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-71f42f040d236f76.html new file mode 100644 index 00000000..605b55c0 --- /dev/null +++ b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-71f42f040d236f76.html @@ -0,0 +1,620 @@ +index-71f42f040d236f76 - source
    1
    +2
    +3
    +4
    +5
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +55
    +56
    +57
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +65
    +66
    +67
    +68
    +69
    +70
    +71
    +72
    +73
    +74
    +75
    +76
    +77
    +78
    +79
    +80
    +81
    +82
    +83
    +84
    +85
    +86
    +87
    +88
    +89
    +90
    +91
    +92
    +93
    +94
    +95
    +96
    +97
    +98
    +99
    +100
    +101
    +102
    +103
    +104
    +105
    +106
    +107
    +108
    +109
    +110
    +111
    +112
    +113
    +114
    +115
    +116
    +117
    +118
    +119
    +120
    +121
    +122
    +123
    +124
    +125
    +126
    +127
    +128
    +129
    +130
    +131
    +132
    +133
    +134
    +135
    +136
    +137
    +138
    +139
    +140
    +141
    +142
    +143
    +144
    +145
    +146
    +147
    +148
    +149
    +150
    +151
    +152
    +153
    +154
    +155
    +156
    +157
    +158
    +159
    +160
    +161
    +162
    +163
    +164
    +165
    +166
    +167
    +168
    +169
    +170
    +171
    +172
    +173
    +174
    +175
    +176
    +177
    +178
    +179
    +180
    +181
    +182
    +183
    +184
    +185
    +186
    +187
    +188
    +189
    +190
    +191
    +192
    +193
    +194
    +195
    +196
    +197
    +198
    +199
    +200
    +201
    +202
    +203
    +204
    +205
    +206
    +207
    +208
    +209
    +210
    +211
    +212
    +213
    +214
    +215
    +216
    +217
    +218
    +219
    +220
    +221
    +222
    +223
    +224
    +225
    +226
    +227
    +228
    +229
    +230
    +231
    +232
    +233
    +234
    +235
    +236
    +237
    +238
    +239
    +240
    +241
    +242
    +243
    +244
    +245
    +246
    +247
    +248
    +249
    +250
    +251
    +252
    +253
    +254
    +255
    +256
    +257
    +258
    +259
    +260
    +261
    +262
    +263
    +264
    +265
    +266
    +267
    +268
    +269
    +270
    +271
    +272
    +273
    +274
    +275
    +276
    +277
    +278
    +279
    +280
    +281
    +282
    +283
    +284
    +285
    +286
    +287
    +288
    +289
    +290
    +291
    +292
    +293
    +294
    +295
    +296
    +297
    +298
    +299
    +300
    +301
    +302
    +303
    +304
    +305
    +306
    +307
    +308
    +309
    +
    {
    +    const COPY_ALT: &str = "copy secret";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const COPY_CLASS: &str = "settings__secret-copy";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const DONE_ALT: &str = "secret copied";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const DONE_CLASS: &str = "settings__secret-copy-done";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    let clipboard_data = ("secret", &secret);
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<meta charset=\"UTF-8\" />\n<title>");
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "</title>\n<meta name=\"referrer\" content=\"no-referrer-when-downgrade\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n<meta\nname=\"description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"author\" content=\"Aravinth Manivannan\" />\n<meta name=\"twitter:card\" value=\"summary_large_image\" />\n<meta name=\"twitter:site\" content=\"@realaravinth\" />\n<meta\nname=\"twitter:title\"\ncontent=\"");
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nname=\"twitter:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"twitter:creator\" content=\"@realaravinth\" />\n<meta name=\"twitter:image\"\ncontent=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/icon-trans.png")
    +                    .unwrap()
    +            );
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\n/>\n<meta\nproperty=\"og:title\"\ncontent=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta property=\"og:type\" content=\"article\" />\n<meta property=\"og:url\" content=\"https://mcaptcaha.org\" />\n<meta property=\"og:image\"\ncontent=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/icon-trans.png")
    +                    .unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nproperty=\"og:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta property=\"og:site_name\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\"  href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        if crate::SETTINGS.server.proxy_has_tls {
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt :: render_text ! (__sf_buf , "<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>");
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +        }
    +        __sf_rt::render_text!(__sf_buf, "\n</head>\n<body class=\"layout\">");
    +    };
    +    __sf_rt::render_text!(__sf_buf, " \n");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a  class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n</a>\n<a href=\"/\" class=\"secondary-menu__brand-name\">\nmCaptcha\n</a>\n<label class=\"nav__hamburger-menu\"for=\"nav-toggle\">\n<span></span>\n<span></span>\n<span></span>\n</label>\n</div>\n<ul class=\"secondary-menu__list\">\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::HOME.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HOME.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nOverview\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.list);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::KEY.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::KEY.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSite Keys\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.settings.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSettings\n</div>\n</a>\n</li>\n");
    +        if crate::SETTINGS.commercial {
    +            __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nBilling\n</div>\n</a>\n</li>\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nHelp\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img\nclass=\"secondary-menu__icon\"\nsrc=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.0);
    +        __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<div class=\"secondary-menu__item-name\">\nSupport\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nAPI Docs\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS.source_code);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\"\nsrc=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSource Code\n</div>\n</a>\n</li>\n</ul>\n</nav>\n<!-- Nav/Side/Secondary bar -->");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<div class=\"tmp-layout\">");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<header>\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<a class=\"taskbar__link\" href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.add_easy);
    +                __sf_rt :: render_text ! (__sf_buf , "\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>");
    +            };
    +            __sf_rt :: render_text ! (__sf_buf , "\n</li>\n<li class=\"taskbar__action\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES.get("./static/cache/img/svg/moon.svg").unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Profile\" />\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.notifications);
    +            __sf_rt::render_text!(__sf_buf, "\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES.get("./static/cache/img/svg/bell.svg").unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Notifications\" />\n</a>\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.auth.logout);
    +            __sf_rt::render_text!(__sf_buf, "\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/svg/log-out.svg")
    +                    .unwrap()
    +            );
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\nalt=\"Profile\" /></a\n>\n</li>\n</ul>"
    +            );
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n</header>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<main class=\"panel-main\">\n");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>");
    +    };
    +    __sf_rt :: render_text ! (__sf_buf , "\n<!-- Main content container -->\n<div class=\"inner-container\">\n<div class=\"sitekey-form\" action=\"");
    +    __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.captcha.create);
    +    __sf_rt::render_text!(
    +        __sf_buf,
    +        "\" method=\"post\">\n<h1 class=\"form__title\">\n"
    +    );
    +    __sf_rt::render_escaped!(__sf_buf, PAGE);
    +    __sf_rt :: render_text ! (__sf_buf , "\n</h1>\n<form class=\"settings__form\" id=\"settings__username-form\"\naction=\"");
    +    __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.account.update_username);
    +    __sf_rt :: render_text ! (__sf_buf , "\"\nmethod=\"post\">\n<label class=\"settings-form__label\" for=\"username\">\nUsername\n<input\nclass=\"settings-form__input\"\ntype=\"text\"\nname=\"username\"\nid=\"username\"\nvalue=\"");
    +    __sf_rt::render_escaped!(__sf_buf, username);
    +    __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n</label>\n<button class=\"settings__submit-btn\" type=\"submit\">Update</button>\n</form>\n<form class=\"settings__form\" id=\"settings__email-form\"\naction=\"");
    +    __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.account.update_email);
    +    __sf_rt :: render_text ! (__sf_buf , "\"\nmethod=\"post\">\n<label class=\"settings-form__label\" for=\"email\">\nEmail\n<input\nclass=\"settings-form__input\"\ntype=\"email\"\nname=\"email\"\nid=\"email\"\n");
    +    if let Some(email) = email {
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        if !email.trim().is_empty() {
    +            __sf_rt::render_text!(__sf_buf, "\nvalue=\"");
    +            __sf_rt::render_escaped!(__sf_buf, email);
    +            __sf_rt::render_text!(__sf_buf, "\"\n");
    +        }
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +    }
    +    __sf_rt :: render_text ! (__sf_buf , "\n/>\n</label>\n<button class=\"settings__submit-btn\" type=\"submit\">Update</button>\n</form>\n<form\nclass=\"settings__form\" id=\"settings__secret-form\"\naction=\"");
    +    __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.account.update_secret);
    +    __sf_rt :: render_text ! (__sf_buf , "\"\nmethod=\"post\">\n<label class=\"settings-form__label\" for=\"secret\">\n<div class=\"settings__label-group\">\nSecret\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<img class=\"");
    +        __sf_rt::render_escaped!(__sf_buf, COPY_CLASS);
    +        __sf_rt::render_text!(__sf_buf, "\"\nsrc=\"");
    +        __sf_rt::render_escaped!(
    +            __sf_buf,
    +            crate::FILES
    +                .get("./static/cache/img/svg/clipboard.svg")
    +                .unwrap()
    +        );
    +        __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, COPY_ALT);
    +        __sf_rt::render_text!(__sf_buf, "\"\ndata-");
    +        __sf_rt::render_escaped!(__sf_buf, clipboard_data.0);
    +        __sf_rt::render_text!(__sf_buf, "=\"");
    +        __sf_rt::render_escaped!(__sf_buf, clipboard_data.1);
    +        __sf_rt::render_text!(__sf_buf, "\"\n/>\n<img\nclass=\"");
    +        __sf_rt::render_escaped!(__sf_buf, DONE_CLASS);
    +        __sf_rt::render_text!(__sf_buf, "\"\nsrc=\"");
    +        __sf_rt::render_escaped!(
    +            __sf_buf,
    +            crate::FILES
    +                .get("./static/cache/img/svg/check.svg")
    +                .unwrap()
    +        );
    +        __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, DONE_ALT);
    +        __sf_rt::render_text!(__sf_buf, "\"\n/>");
    +    };
    +    __sf_rt :: render_text ! (__sf_buf , "\n</div>\n<input\nclass=\"settings-form__input\"\ntype=\"password\"\nname=\"secret-password\"\nreadonly='readonly'\nid=\"secret\"\nvalue=\"");
    +    __sf_rt::render_escaped!(__sf_buf, secret);
    +    __sf_rt::render_text!(__sf_buf, "\"\n/>\n");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "<span class=\"show-password-container\">\n<img class=\"show-password--show\" src=\"");
    +        __sf_rt::render_escaped!(
    +            __sf_buf,
    +            crate::FILES.get("./static/cache/img/svg/eye.svg").unwrap()
    +        );
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\" alt=\"Show Password\" />\n<img class=\"show-password--hide\" src=\""
    +        );
    +        __sf_rt::render_escaped!(
    +            __sf_buf,
    +            crate::FILES
    +                .get("./static/cache/img/svg/eye-off.svg")
    +                .unwrap()
    +        );
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"Hide Password\" />\n</span>");
    +    };
    +    __sf_rt :: render_text ! (__sf_buf , "\n</label>\n<button class=\"settings__submit-btn\" type=\"submit\">\nRefresh\n<img\nclass=\"settings__refresh-sitekey\"\nsrc=\"");
    +    __sf_rt::render_escaped!(
    +        __sf_buf,
    +        crate::FILES
    +            .get("./static/cache/img/svg/refresh.svg")
    +            .unwrap()
    +    );
    +    __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Refresh Secret\"\n/>\n</button>\n</form>\n<form\nclass=\"settings__form\" id=\"settings__delete-form\"\naction=\"");
    +    __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.account.update_secret);
    +    __sf_rt :: render_text ! (__sf_buf , "\"\nmethod=\"post\">\n<label class=\"settings-form__label--danger\" for=\"delete-account\">\n<b>Delete your account</b>\n<button id=\"delete-account\" class=\"settings__submit-btn--danger\" type=\"submit\">\nDelete Account\n<img\nclass=\"settings__delete-account-icon\"\nsrc=\"");
    +    __sf_rt::render_escaped!(
    +        __sf_buf,
    +        crate::FILES
    +            .get("./static/cache/img/svg/trash.svg")
    +            .unwrap()
    +    );
    +    __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Delete Account\"\n/>\n</button>\n</label>\n</form>\n</div>\n</div>\n<!-- end of container -->");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "</main>\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.about);
    +            __sf_rt :: render_text ! (__sf_buf , "\">About</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.donate);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Donate</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.privacy);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Privacy</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.security);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Security</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.thanks);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Thanks</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, &*crate::SOURCE_FILES_OF_INSTANCE);
    +            __sf_rt::render_text!(__sf_buf, "\">\nv");
    +            __sf_rt::render_escaped!(__sf_buf, crate::VERSION);
    +            __sf_rt::render_text!(__sf_buf, "-");
    +            __sf_rt::render_escaped!(__sf_buf, crate::GIT_COMMIT_HASH[0..8]);
    +            __sf_rt::render_text!(__sf_buf, "\n</a>\n</li>\n</ul>\n</footer>");
    +        };
    +        __sf_rt :: render_text ! (__sf_buf , "\n</div>\n<link\nrel=\"stylesheet\"\nmedia=\"all\"\ntype=\"text/css\"\nhref=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::CSS);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<link\nrel=\"stylesheet\"\nmedia=\"screen and (max-width: 1250px)\"\ntype=\"text/css\"\nhref=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::MOBILE_CSS);
    +        __sf_rt::render_text!(__sf_buf, "\"\n/>\n<script src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::JS);
    +        __sf_rt::render_text!(__sf_buf, "\"></script>\n");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<div id=\"err__container\"></div>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n</body>\n</html>");
    +    };
    +}
    +
    +
    +
    \ No newline at end of file diff --git a/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-752d42c60c4f0290.html b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-752d42c60c4f0290.html new file mode 100644 index 00000000..045a3b01 --- /dev/null +++ b/src/mcaptcha/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-305b5c16c83d046b/out/templates/index-752d42c60c4f0290.html @@ -0,0 +1,606 @@ +index-752d42c60c4f0290 - source
    1
    +2
    +3
    +4
    +5
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +55
    +56
    +57
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +65
    +66
    +67
    +68
    +69
    +70
    +71
    +72
    +73
    +74
    +75
    +76
    +77
    +78
    +79
    +80
    +81
    +82
    +83
    +84
    +85
    +86
    +87
    +88
    +89
    +90
    +91
    +92
    +93
    +94
    +95
    +96
    +97
    +98
    +99
    +100
    +101
    +102
    +103
    +104
    +105
    +106
    +107
    +108
    +109
    +110
    +111
    +112
    +113
    +114
    +115
    +116
    +117
    +118
    +119
    +120
    +121
    +122
    +123
    +124
    +125
    +126
    +127
    +128
    +129
    +130
    +131
    +132
    +133
    +134
    +135
    +136
    +137
    +138
    +139
    +140
    +141
    +142
    +143
    +144
    +145
    +146
    +147
    +148
    +149
    +150
    +151
    +152
    +153
    +154
    +155
    +156
    +157
    +158
    +159
    +160
    +161
    +162
    +163
    +164
    +165
    +166
    +167
    +168
    +169
    +170
    +171
    +172
    +173
    +174
    +175
    +176
    +177
    +178
    +179
    +180
    +181
    +182
    +183
    +184
    +185
    +186
    +187
    +188
    +189
    +190
    +191
    +192
    +193
    +194
    +195
    +196
    +197
    +198
    +199
    +200
    +201
    +202
    +203
    +204
    +205
    +206
    +207
    +208
    +209
    +210
    +211
    +212
    +213
    +214
    +215
    +216
    +217
    +218
    +219
    +220
    +221
    +222
    +223
    +224
    +225
    +226
    +227
    +228
    +229
    +230
    +231
    +232
    +233
    +234
    +235
    +236
    +237
    +238
    +239
    +240
    +241
    +242
    +243
    +244
    +245
    +246
    +247
    +248
    +249
    +250
    +251
    +252
    +253
    +254
    +255
    +256
    +257
    +258
    +259
    +260
    +261
    +262
    +263
    +264
    +265
    +266
    +267
    +268
    +269
    +270
    +271
    +272
    +273
    +274
    +275
    +276
    +277
    +278
    +279
    +280
    +281
    +282
    +283
    +284
    +285
    +286
    +287
    +288
    +289
    +290
    +291
    +292
    +293
    +294
    +295
    +296
    +297
    +298
    +299
    +300
    +301
    +302
    +
    {
    +    const DONE_ALT: &str = "sitekey copied";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const DONE_CLASS: &str = "sitekey__copy-done-icon";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const COPY_ALT: &str = "copy sitekey";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    const COPY_CLASS: &str = "sitekey__copy-icon";
    +    __sf_rt::render_text!(__sf_buf, "\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<meta charset=\"UTF-8\" />\n<title>");
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "</title>\n<meta name=\"referrer\" content=\"no-referrer-when-downgrade\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n<meta\nname=\"description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"author\" content=\"Aravinth Manivannan\" />\n<meta name=\"twitter:card\" value=\"summary_large_image\" />\n<meta name=\"twitter:site\" content=\"@realaravinth\" />\n<meta\nname=\"twitter:title\"\ncontent=\"");
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nname=\"twitter:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta name=\"twitter:creator\" content=\"@realaravinth\" />\n<meta name=\"twitter:image\"\ncontent=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/icon-trans.png")
    +                    .unwrap()
    +            );
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\n/>\n<meta\nproperty=\"og:title\"\ncontent=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, PAGE);
    +            __sf_rt::render_text!(__sf_buf, " | ");
    +            __sf_rt::render_escaped!(__sf_buf, crate::pages::NAME);
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta property=\"og:type\" content=\"article\" />\n<meta property=\"og:url\" content=\"https://mcaptcaha.org\" />\n<meta property=\"og:image\"\ncontent=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/icon-trans.png")
    +                    .unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<meta\nproperty=\"og:description\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>\n<meta property=\"og:site_name\"\ncontent=\"mCaptcha is an AGPL'd, privacy focued, proof-of-work based CAPTCHA System\"\n/>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\"  href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        if crate::SETTINGS.server.proxy_has_tls {
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt :: render_text ! (__sf_buf , "<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>");
    +            };
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +        }
    +        __sf_rt::render_text!(__sf_buf, "\n</head>\n<body class=\"layout\">");
    +    };
    +    __sf_rt::render_text!(__sf_buf, " ");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a  class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MCAPTCHA_TRANS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n</a>\n<a href=\"/\" class=\"secondary-menu__brand-name\">\nmCaptcha\n</a>\n<label class=\"nav__hamburger-menu\"for=\"nav-toggle\">\n<span></span>\n<span></span>\n<span></span>\n</label>\n</div>\n<ul class=\"secondary-menu__list\">\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::HOME.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HOME.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nOverview\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.list);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::KEY.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::KEY.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSite Keys\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.settings.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSettings\n</div>\n</a>\n</li>\n");
    +        if crate::SETTINGS.commercial {
    +            __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.0);
    +            __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::CREDIT_CARD.1);
    +            __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nBilling\n</div>\n</a>\n</li>\n");
    +        }
    +        __sf_rt :: render_text ! (__sf_buf , "\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img class=\"secondary-menu__icon\" src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::HELP_CIRCLE.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nHelp\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"\">\n<img\nclass=\"secondary-menu__icon\"\nsrc=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.0);
    +        __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::MESSAGE.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<div class=\"secondary-menu__item-name\">\nSupport\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS.home);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\" src=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::DOCS_ICON.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nAPI Docs\n</div>\n</a>\n</li>\n<li class=\"secondary-menu__item\">\n<a class=\"secondary-menu__item-link\" href=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::SETTINGS.source_code);
    +        __sf_rt::render_text!(
    +            __sf_buf,
    +            "\">\n<img class=\"secondary-menu__icon\"\nsrc=\""
    +        );
    +        __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.0);
    +        __sf_rt::render_text!(__sf_buf, "\" alt=\"");
    +        __sf_rt::render_escaped!(__sf_buf, crate::GITHUB.1);
    +        __sf_rt :: render_text ! (__sf_buf , "\" />\n<div class=\"secondary-menu__item-name\">\nSource Code\n</div>\n</a>\n</li>\n</ul>\n</nav>\n<!-- Nav/Side/Secondary bar -->");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<div class=\"tmp-layout\">\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "<header>\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<a class=\"taskbar__link\" href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.add_easy);
    +                __sf_rt :: render_text ! (__sf_buf , "\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>");
    +            };
    +            __sf_rt :: render_text ! (__sf_buf , "\n</li>\n<li class=\"taskbar__action\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES.get("./static/cache/img/svg/moon.svg").unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Profile\" />\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.notifications);
    +            __sf_rt::render_text!(__sf_buf, "\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES.get("./static/cache/img/svg/bell.svg").unwrap()
    +            );
    +            __sf_rt :: render_text ! (__sf_buf , "\"\nalt=\"Notifications\" />\n</a>\n</li>\n<li class=\"taskbar__action\">\n<a href=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::V1_API_ROUTES.auth.logout);
    +            __sf_rt::render_text!(__sf_buf, "\">\n<img class=\"taskbar__icon\" src=\"");
    +            __sf_rt::render_escaped!(
    +                __sf_buf,
    +                crate::FILES
    +                    .get("./static/cache/img/svg/log-out.svg")
    +                    .unwrap()
    +            );
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\"\nalt=\"Profile\" /></a\n>\n</li>\n</ul>"
    +            );
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n</header>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n<main class=\"panel-main\">\n");
    +    {
    +        __sf_rt :: render_text ! (__sf_buf , "<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>");
    +    };
    +    __sf_rt :: render_text ! (__sf_buf , "\n<!-- Main content container -->\n<div class=\"inner-container\">\n<!-- Main menu/ important actions roaster -->\n");
    +    if sitekeys.is_empty() {
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<ul class=\"sitekey-list__box\">\n<p>\nIt looks like you don't have any sitekeys. Click ");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<a class=\"taskbar__link\" href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, crate::PAGES.panel.sitekey.add_easy);
    +                __sf_rt :: render_text ! (__sf_buf , "\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>");
    +            };
    +            __sf_rt::render_text!(__sf_buf, " to add new sitekey.\n</p>\n</ul>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n");
    +    } else {
    +        __sf_rt :: render_text ! (__sf_buf , "\n<table class=\"sitekey__table\">\n<thead class=\"sitekey__table-heading\">\n<tr>\n<th colspan=\"4\" class=\"sitekey__table-title-text\">\nYour Sitekeys\n</th>\n</tr>\n</thead>\n<tbody class=\"sitekey__body\">\n\n<tr class=\"sitekey__item\">\n<td class=\"sitekey-list__name\">\n<a\nhref=\"/sitekey/");
    +        for sitekey in sitekeys.iter() {
    +            __sf_rt::render_escaped!(__sf_buf, sitekey.key);
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "/\"\nclass=\"sitekey-list__sitekey-link\"\n>\n"
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, sitekey.description);
    +            __sf_rt :: render_text ! (__sf_buf , "\n</a>\n</td>\n<td class=\"sitekey-list__key\">\n<div class=\"sitekey__key-container\">\n");
    +            let clipboard_data = ("sitekey", &sitekey.key);
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<img class=\"");
    +                __sf_rt::render_escaped!(__sf_buf, COPY_CLASS);
    +                __sf_rt::render_text!(__sf_buf, "\"\nsrc=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/svg/clipboard.svg")
    +                        .unwrap()
    +                );
    +                __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +                __sf_rt::render_escaped!(__sf_buf, COPY_ALT);
    +                __sf_rt::render_text!(__sf_buf, "\"\ndata-");
    +                __sf_rt::render_escaped!(__sf_buf, clipboard_data.0);
    +                __sf_rt::render_text!(__sf_buf, "=\"");
    +                __sf_rt::render_escaped!(__sf_buf, clipboard_data.1);
    +                __sf_rt::render_text!(__sf_buf, "\"\n/>\n<img\nclass=\"");
    +                __sf_rt::render_escaped!(__sf_buf, DONE_CLASS);
    +                __sf_rt::render_text!(__sf_buf, "\"\nsrc=\"");
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES
    +                        .get("./static/cache/img/svg/check.svg")
    +                        .unwrap()
    +                );
    +                __sf_rt::render_text!(__sf_buf, "\"\nalt=\"");
    +                __sf_rt::render_escaped!(__sf_buf, DONE_ALT);
    +                __sf_rt::render_text!(__sf_buf, "\"\n/>");
    +            };
    +            __sf_rt::render_text!(
    +                __sf_buf,
    +                "\n<a\nclass=\"sitekey__widget-link\"\nhref=\""
    +            );
    +            __sf_rt::render_escaped!(__sf_buf, crate::WIDGET_ROUTES.verification_widget);
    +            __sf_rt::render_text!(__sf_buf, "/?sitekey=");
    +            __sf_rt::render_escaped!(__sf_buf, sitekey.key);
    +            __sf_rt::render_text!(__sf_buf, "\"\n>\n");
    +            __sf_rt::render_escaped!(__sf_buf, &sitekey.key[0..5]);
    +            __sf_rt :: render_text ! (__sf_buf , "\n</a>\n</div>\n</td>\n<td class=\"sitekey-list__key\">\n<div class=\"sitekey-list__edit\">\n");
    +            let edit_url = crate::PAGES.panel.sitekey.get_edit_easy(&sitekey.key);
    +            __sf_rt::render_text!(__sf_buf, "\n");
    +            {
    +                __sf_rt::render_text!(__sf_buf, "<a href=\"");
    +                __sf_rt::render_escaped!(__sf_buf, edit_url);
    +                __sf_rt::render_text!(
    +                    __sf_buf,
    +                    "\">\n<img class=\"sitekey-form__edit\" src=\""
    +                );
    +                __sf_rt::render_escaped!(
    +                    __sf_buf,
    +                    crate::FILES.get("./static/cache/img/svg/edit.svg").unwrap()
    +                );
    +                __sf_rt::render_text!(__sf_buf, "\" alt=\"Edit\nsitekey\" />\n</a>");
    +            };
    +            __sf_rt :: render_text ! (__sf_buf , "\n</div>\n</td>\n</tr>\n\n<tr class=\"sitekey__item\">\n<td class=\"sitekey-list__name\">\n<a\nhref=\"/sitekey/");
    +        }
    +        unsafe {
    +            __sf_buf._set_len(__sf_buf.len() - 78usize);
    +        }
    +        __sf_rt::render_text!(__sf_buf, "\n</tbody>\n</table>\n");
    +    }
    +    __sf_rt::render_text!(__sf_buf, "\n</div>\n<!-- end of container -->\n");
    +    {
    +        __sf_rt::render_text!(__sf_buf, "</main>\n");
    +        {
    +            __sf_rt :: render_text ! (__sf_buf , "<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.about);
    +            __sf_rt :: render_text ! (__sf_buf , "\">About</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.donate);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Donate</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.privacy);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Privacy</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.security);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Security</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, crate::PKG_HOMEPAGE);
    +            __sf_rt::render_escaped!(__sf_buf, crate::PAGES.thanks);
    +            __sf_rt :: render_text ! (__sf_buf , "\">Thanks</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\"");
    +            __sf_rt::render_escaped!(__sf_buf, &*crate::SOURCE_FILES_OF_INSTANCE);
    +            __sf_rt::render_text!(__sf_buf, "\">\nv");
    +            __sf_rt::render_escaped!(__sf_buf, crate::VERSION);
    +            __sf_rt::render_text!(__sf_buf, "-");
    +            __sf_rt::render_escaped!(__sf_buf, crate::GIT_COMMIT_HASH[0..8]);
    +            __sf_rt::render_text!(__sf_buf, "\n</a>\n</li>\n</ul>\n</footer>");
    +        };
    +        __sf_rt :: render_text ! (__sf_buf , "\n</div>\n<link\nrel=\"stylesheet\"\nmedia=\"all\"\ntype=\"text/css\"\nhref=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::CSS);
    +        __sf_rt :: render_text ! (__sf_buf , "\"\n/>\n<link\nrel=\"stylesheet\"\nmedia=\"screen and (max-width: 1250px)\"\ntype=\"text/css\"\nhref=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::MOBILE_CSS);
    +        __sf_rt::render_text!(__sf_buf, "\"\n/>\n<script src=\"");
    +        __sf_rt::render_escaped!(__sf_buf, &*crate::JS);
    +        __sf_rt::render_text!(__sf_buf, "\"></script>\n");
    +        {
    +            __sf_rt::render_text!(__sf_buf, "<div id=\"err__container\"></div>");
    +        };
    +        __sf_rt::render_text!(__sf_buf, "\n</body>\n</html>");
    +    };
    +    __sf_rt::render_text!(__sf_buf, "\n</main>\n</div>");
    +}
    +
    +
    +
    \ No newline at end of file diff --git a/src/mcaptcha/main.rs.html b/src/mcaptcha/main.rs.html index ee7f3efd..a0dd1a3f 100644 --- a/src/mcaptcha/main.rs.html +++ b/src/mcaptcha/main.rs.html @@ -1,4 +1,4 @@ -main.rs - source
    1
    +main.rs - source
    1
     2
     3
     4
    @@ -385,4 +385,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/auth/login.rs.html b/src/mcaptcha/pages/auth/login.rs.html index 757ea9ef..caf530e5 100644 --- a/src/mcaptcha/pages/auth/login.rs.html +++ b/src/mcaptcha/pages/auth/login.rs.html @@ -1,4 +1,4 @@ -login.rs - source
    1
    +login.rs - source
    1
     2
     3
     4
    @@ -89,4 +89,4 @@
             .body(&**INDEX)
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/auth/mod.rs.html b/src/mcaptcha/pages/auth/mod.rs.html index 03ad9c30..84a7c05b 100644 --- a/src/mcaptcha/pages/auth/mod.rs.html +++ b/src/mcaptcha/pages/auth/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -121,4 +121,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/auth/register.rs.html b/src/mcaptcha/pages/auth/register.rs.html index 5c63c6dc..275137cd 100644 --- a/src/mcaptcha/pages/auth/register.rs.html +++ b/src/mcaptcha/pages/auth/register.rs.html @@ -1,4 +1,4 @@ -register.rs - source
    1
    +register.rs - source
    1
     2
     3
     4
    @@ -85,4 +85,4 @@
             .body(&**INDEX)
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/auth/sudo.rs.html b/src/mcaptcha/pages/auth/sudo.rs.html index 0a168373..6ac00bb6 100644 --- a/src/mcaptcha/pages/auth/sudo.rs.html +++ b/src/mcaptcha/pages/auth/sudo.rs.html @@ -1,4 +1,4 @@ -sudo.rs - source
    1
    +sudo.rs - source
    1
     2
     3
     4
    @@ -89,4 +89,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/errors.rs.html b/src/mcaptcha/pages/errors.rs.html index f4f6f25c..89b01ff1 100644 --- a/src/mcaptcha/pages/errors.rs.html +++ b/src/mcaptcha/pages/errors.rs.html @@ -1,4 +1,4 @@ -errors.rs - source
    1
    +errors.rs - source
    1
     2
     3
     4
    @@ -239,4 +239,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/mod.rs.html b/src/mcaptcha/pages/mod.rs.html index 7308155a..00c32210 100644 --- a/src/mcaptcha/pages/mod.rs.html +++ b/src/mcaptcha/pages/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -247,4 +247,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/mod.rs.html b/src/mcaptcha/pages/panel/mod.rs.html index 5cc8a0df..6d134223 100644 --- a/src/mcaptcha/pages/panel/mod.rs.html +++ b/src/mcaptcha/pages/panel/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -197,4 +197,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/notifications.rs.html b/src/mcaptcha/pages/panel/notifications.rs.html index fc3be53f..595adaf3 100644 --- a/src/mcaptcha/pages/panel/notifications.rs.html +++ b/src/mcaptcha/pages/panel/notifications.rs.html @@ -1,4 +1,4 @@ -notifications.rs - source
    1
    +notifications.rs - source
    1
     2
     3
     4
    @@ -259,4 +259,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/settings.rs.html b/src/mcaptcha/pages/panel/settings.rs.html index e2fbafd8..15e1c373 100644 --- a/src/mcaptcha/pages/panel/settings.rs.html +++ b/src/mcaptcha/pages/panel/settings.rs.html @@ -1,4 +1,4 @@ -settings.rs - source
    1
    +settings.rs - source
    1
     2
     3
     4
    @@ -223,4 +223,4 @@
             .body(page)
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/sitekey/add.rs.html b/src/mcaptcha/pages/panel/sitekey/add.rs.html index bb015ba9..2a3ac05c 100644 --- a/src/mcaptcha/pages/panel/sitekey/add.rs.html +++ b/src/mcaptcha/pages/panel/sitekey/add.rs.html @@ -1,4 +1,4 @@ -add.rs - source
    1
    +add.rs - source
    1
     2
     3
     4
    @@ -179,4 +179,4 @@
             .body(&**EASY_INDEX)
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/sitekey/delete.rs.html b/src/mcaptcha/pages/panel/sitekey/delete.rs.html index dbb1b294..64192270 100644 --- a/src/mcaptcha/pages/panel/sitekey/delete.rs.html +++ b/src/mcaptcha/pages/panel/sitekey/delete.rs.html @@ -1,4 +1,4 @@ -delete.rs - source
    1
    +delete.rs - source
    1
     2
     3
     4
    @@ -75,4 +75,4 @@
             .body(page)
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/sitekey/edit.rs.html b/src/mcaptcha/pages/panel/sitekey/edit.rs.html index 9df8f40d..bdb890e3 100644 --- a/src/mcaptcha/pages/panel/sitekey/edit.rs.html +++ b/src/mcaptcha/pages/panel/sitekey/edit.rs.html @@ -1,4 +1,4 @@ -edit.rs - source
    1
    +edit.rs - source
    1
     2
     3
     4
    @@ -413,4 +413,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/sitekey/list.rs.html b/src/mcaptcha/pages/panel/sitekey/list.rs.html index a07c60f1..bb39a509 100644 --- a/src/mcaptcha/pages/panel/sitekey/list.rs.html +++ b/src/mcaptcha/pages/panel/sitekey/list.rs.html @@ -1,4 +1,4 @@ -list.rs - source
    1
    +list.rs - source
    1
     2
     3
     4
    @@ -229,4 +229,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/sitekey/mod.rs.html b/src/mcaptcha/pages/panel/sitekey/mod.rs.html index 221ca3b7..e80744c5 100644 --- a/src/mcaptcha/pages/panel/sitekey/mod.rs.html +++ b/src/mcaptcha/pages/panel/sitekey/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -197,4 +197,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/panel/sitekey/view.rs.html b/src/mcaptcha/pages/panel/sitekey/view.rs.html index 3cd42b9e..db5ee6a4 100644 --- a/src/mcaptcha/pages/panel/sitekey/view.rs.html +++ b/src/mcaptcha/pages/panel/sitekey/view.rs.html @@ -1,4 +1,4 @@ -view.rs - source
    1
    +view.rs - source
    1
     2
     3
     4
    @@ -279,4 +279,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/routes.rs.html b/src/mcaptcha/pages/routes.rs.html index 99538aa8..93d6305f 100644 --- a/src/mcaptcha/pages/routes.rs.html +++ b/src/mcaptcha/pages/routes.rs.html @@ -1,4 +1,4 @@ -routes.rs - source
    1
    +routes.rs - source
    1
     2
     3
     4
    @@ -153,4 +153,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/pages/sitemap.rs.html b/src/mcaptcha/pages/sitemap.rs.html index 980383f0..0f7b1840 100644 --- a/src/mcaptcha/pages/sitemap.rs.html +++ b/src/mcaptcha/pages/sitemap.rs.html @@ -1,4 +1,4 @@ -sitemap.rs - source
    1
    +sitemap.rs - source
    1
     2
     3
     4
    @@ -107,4 +107,4 @@
             .body(&**INDEX)
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/routes.rs.html b/src/mcaptcha/routes.rs.html index c6b9c2df..28d6b4b1 100644 --- a/src/mcaptcha/routes.rs.html +++ b/src/mcaptcha/routes.rs.html @@ -1,4 +1,4 @@ -routes.rs - source
    1
    +routes.rs - source
    1
     2
     3
     4
    @@ -47,4 +47,4 @@
         crate::static_assets::services(cfg);
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/settings.rs.html b/src/mcaptcha/settings.rs.html index 958ef789..a44a9a50 100644 --- a/src/mcaptcha/settings.rs.html +++ b/src/mcaptcha/settings.rs.html @@ -1,4 +1,4 @@ -settings.rs - source
    1
    +settings.rs - source
    1
     2
     3
     4
    @@ -531,4 +531,4 @@
     //    }
     //}
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/static_assets/filemap.rs.html b/src/mcaptcha/static_assets/filemap.rs.html index 0f544187..839a9cf0 100644 --- a/src/mcaptcha/static_assets/filemap.rs.html +++ b/src/mcaptcha/static_assets/filemap.rs.html @@ -1,4 +1,4 @@ -filemap.rs - source
    1
    +filemap.rs - source
    1
     2
     3
     4
    @@ -91,4 +91,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/static_assets/mod.rs.html b/src/mcaptcha/static_assets/mod.rs.html index dbcfcefc..02fdfbae 100644 --- a/src/mcaptcha/static_assets/mod.rs.html +++ b/src/mcaptcha/static_assets/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -49,4 +49,4 @@
         cfg.service(static_files::favicons);
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/static_assets/static_files.rs.html b/src/mcaptcha/static_assets/static_files.rs.html index d9328706..640fc28c 100644 --- a/src/mcaptcha/static_assets/static_files.rs.html +++ b/src/mcaptcha/static_assets/static_files.rs.html @@ -1,4 +1,4 @@ -static_files.rs - source
    1
    +static_files.rs - source
    1
     2
     3
     4
    @@ -335,4 +335,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/stats.rs.html b/src/mcaptcha/stats.rs.html index 08c436a2..d378e96d 100644 --- a/src/mcaptcha/stats.rs.html +++ b/src/mcaptcha/stats.rs.html @@ -1,4 +1,4 @@ -stats.rs - source
    1
    +stats.rs - source
    1
     2
     3
     4
    @@ -259,4 +259,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/src/mcaptcha/widget/mod.rs.html b/src/mcaptcha/widget/mod.rs.html index 9491dc8e..2dbe35ce 100644 --- a/src/mcaptcha/widget/mod.rs.html +++ b/src/mcaptcha/widget/mod.rs.html @@ -1,4 +1,4 @@ -mod.rs - source
    1
    +mod.rs - source
    1
     2
     3
     4
    @@ -161,4 +161,4 @@
         }
     }
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2 b/static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2 deleted file mode 100644 index db57d214..00000000 Binary files a/static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2 and /dev/null differ diff --git a/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 b/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 new file mode 100644 index 00000000..181a07f6 Binary files /dev/null and b/static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2 differ diff --git a/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 b/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 new file mode 100644 index 00000000..2ae08a7b Binary files /dev/null and b/static.files/SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2 differ diff --git a/static.files/SourceSerif4-It-d034fe4ef9d0fa00.ttf.woff2 b/static.files/SourceSerif4-It-d034fe4ef9d0fa00.ttf.woff2 deleted file mode 100644 index 1cbc021a..00000000 Binary files a/static.files/SourceSerif4-It-d034fe4ef9d0fa00.ttf.woff2 and /dev/null differ diff --git a/static.files/SourceSerif4-LICENSE-964d32dc04f20ca3.md b/static.files/SourceSerif4-LICENSE-971e190366a5901b.md similarity index 95% rename from static.files/SourceSerif4-LICENSE-964d32dc04f20ca3.md rename to static.files/SourceSerif4-LICENSE-971e190366a5901b.md index 68ea1892..5871e1f3 100644 --- a/static.files/SourceSerif4-LICENSE-964d32dc04f20ca3.md +++ b/static.files/SourceSerif4-LICENSE-971e190366a5901b.md @@ -1,4 +1,4 @@ -Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. +Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. This Font Software is licensed under the SIL Open Font License, Version 1.1. diff --git a/static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2 b/static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2 deleted file mode 100644 index 2db73fe2..00000000 Binary files a/static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2 and /dev/null differ diff --git a/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 b/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 new file mode 100644 index 00000000..0263fc30 Binary files /dev/null and b/static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2 differ diff --git a/static.files/ayu-65289d5d067c7c66.css b/static.files/ayu-65289d5d067c7c66.css deleted file mode 100644 index ea0d3f6d..00000000 --- a/static.files/ayu-65289d5d067c7c66.css +++ /dev/null @@ -1 +0,0 @@ - :root{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--test-arrow-color:#788797;--test-arrow-background-color:rgba(57,175,215,0.09);--test-arrow-hover-color:#c5c5c5;--test-arrow-hover-background-color:rgba(57,175,215,0.368);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--tooltip-background-color:#314559;--tooltip-color:#c5c5c5;--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--source-sidebar-background-selected:#14191f;--source-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:rgb(91,59,1);--scrape-example-code-line-highlight-focus:rgb(124,75,15);--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;}h1,h2,h3,h4{color:white;}h1 a{color:#fff;}h4{border:none;}.docblock code{color:#ffb454;}.code-header{color:#e6e1cf;}.docblock pre>code,pre>code{color:#e6e1cf;}.item-info code{color:#e6e1cf;}.docblock a>code{color:#39AFD7 !important;}pre,.rustdoc.source .example-wrap{color:#e6e1cf;}.sidebar .current,.sidebar a:hover{color:#ffb44c;}.sidebar-elems .location{color:#ff7733;}.src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}.search-results a:hover{color:#fff !important;background-color:#3c3c3c;}.search-results a:focus{color:#fff !important;background-color:#3c3c3c;}.search-results a{color:#0096cf;}.search-results a div.desc{color:#c5c5c5;}.sidebar h2 a,.sidebar h3 a{color:white;}.result-name .primitive>i,.result-name .keyword>i{color:#788797;}#search-tabs>button.selected{background-color:#141920 !important;border-bottom:1px solid #ffb44c !important;border-top:none;}#search-tabs>button:not(.selected){background-color:transparent !important;border:none;}#search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}#search-tabs>button:hover,#search-tabs>button.selected{}#settings-menu>a img{filter:invert(100);}#source-sidebar>.title{color:#fff;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus,#source-sidebar div.files>a.selected{color:#ffb44c;}.scraped-example:not(.expanded) .code-wrapper::before{background:linear-gradient(to bottom,rgba(15,20,25,1),rgba(15,20,25,0));}.scraped-example:not(.expanded) .code-wrapper::after{background:linear-gradient(to top,rgba(15,20,25,1),rgba(15,20,25,0));} \ No newline at end of file diff --git a/static.files/ayu-be46fdc453a55015.css b/static.files/ayu-be46fdc453a55015.css new file mode 100644 index 00000000..1cad9034 --- /dev/null +++ b/static.files/ayu-be46fdc453a55015.css @@ -0,0 +1 @@ + :root{--main-background-color:#0f1419;--main-color:#c5c5c5;--settings-input-color:#ffb454;--settings-button-color:#fff;--settings-button-border-focus:#e0e0e0;--sidebar-background-color:#14191f;--sidebar-background-color-hover:rgba(70,70,70,0.33);--code-block-background-color:#191f26;--scrollbar-track-background-color:transparent;--scrollbar-thumb-background-color:#5c6773;--scrollbar-color:#5c6773 #24292f;--headings-border-bottom-color:#5c6773;--border-color:#5c6773;--button-background-color:#141920;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#5c6773;--copy-path-button-color:#fff;--copy-path-img-filter:invert(70%);--copy-path-img-hover-filter:invert(100%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ffa0a5;--trait-link-color:#39afd7;--assoc-item-link-color:#39afd7;--function-link-color:#fdd687;--macro-link-color:#a37acc;--keyword-link-color:#39afd7;--mod-link-color:#39afd7;--link-color:#39afd7;--sidebar-link-color:#53b1db;--sidebar-current-link-background-color:transparent;--search-result-link-focus-background-color:#3c3c3c;--search-result-border-color:#aaa3;--search-color:#fff;--search-error-code-background-color:#4f4c4c;--search-results-alias-color:#c5c5c5;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:none;--search-tab-button-not-selected-background:transparent !important;--search-tab-button-selected-border-top-color:none;--search-tab-button-selected-background:#141920 !important;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ff7733;--code-highlight-kw-2-color:#ff7733;--code-highlight-lifetime-color:#ff7733;--code-highlight-prelude-color:#69f2df;--code-highlight-prelude-val-color:#ff7733;--code-highlight-number-color:#b8cc52;--code-highlight-string-color:#b8cc52;--code-highlight-literal-color:#ff7733;--code-highlight-attribute-color:#e6e1cf;--code-highlight-self-color:#36a3d9;--code-highlight-macro-color:#a37acc;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#788797;--code-highlight-doc-comment-color:#a1ac88;--src-line-numbers-span-color:#5c6773;--src-line-number-highlighted-background-color:rgba(255,236,164,0.06);--test-arrow-color:#788797;--test-arrow-background-color:rgba(57,175,215,0.09);--test-arrow-hover-color:#c5c5c5;--test-arrow-hover-background-color:rgba(57,175,215,0.368);--target-background-color:rgba(255,236,164,0.06);--target-border-color:rgba(255,180,76,0.85);--kbd-color:#c5c5c5;--kbd-background:#314559;--kbd-box-shadow-color:#5c6773;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(41%) sepia(12%) saturate(487%) hue-rotate(171deg) brightness(94%) contrast(94%);--crate-search-div-hover-filter:invert(98%) sepia(12%) saturate(81%) hue-rotate(343deg) brightness(113%) contrast(76%);--crate-search-hover-border:#e0e0e0;--source-sidebar-background-selected:#14191f;--source-sidebar-background-hover:#14191f;--table-alt-row-background-color:#191f26;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:rgb(91,59,1);--scrape-example-code-line-highlight-focus:rgb(124,75,15);--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(15,20,25,1);--scrape-example-code-wrapper-background-end:rgba(15,20,25,0);}h1,h2,h3,h4,h1 a,.sidebar h2 a,.sidebar h3 a,#source-sidebar>.title{color:#fff;}h4{border:none;}.docblock code{color:#ffb454;}.docblock a>code{color:#39AFD7 !important;}.code-header,.docblock pre>code,pre,pre>code,.item-info code,.rustdoc.source .example-wrap{color:#e6e1cf;}.sidebar .current,.sidebar a:hover,#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus,#source-sidebar div.files>a.selected{color:#ffb44c;}.sidebar-elems .location{color:#ff7733;}.src-line-numbers .line-highlighted{color:#708090;padding-right:7px;border-right:1px solid #ffb44c;}.search-results a:hover,.search-results a:focus{color:#fff !important;background-color:#3c3c3c;}.search-results a{color:#0096cf;}.search-results a div.desc{color:#c5c5c5;}.result-name .primitive>i,.result-name .keyword>i{color:#788797;}#search-tabs>button.selected{border-bottom:1px solid #ffb44c !important;border-top:none;}#search-tabs>button:not(.selected){border:none;background-color:transparent !important;}#search-tabs>button:hover{border-bottom:1px solid rgba(242,151,24,0.3);}#settings-menu>a img{filter:invert(100);} \ No newline at end of file diff --git a/static.files/dark-0e1b889528bd466b.css b/static.files/dark-0e1b889528bd466b.css deleted file mode 100644 index 50dad33b..00000000 --- a/static.files/dark-0e1b889528bd466b.css +++ /dev/null @@ -1 +0,0 @@ -:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--tooltip-background-color:#000;--tooltip-color:#fff;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--source-sidebar-background-selected:#333;--source-sidebar-background-hover:#444;--table-alt-row-background-color:#2A2A2A;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:rgb(91,59,1);--scrape-example-code-line-highlight-focus:rgb(124,75,15);--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;}#search-tabs>button:not(.selected){background-color:#252525;border-top-color:#252525;}#search-tabs>button:hover,#search-tabs>button.selected{border-top-color:#0089ff;background-color:#353535;}.scraped-example:not(.expanded) .code-wrapper::before{background:linear-gradient(to bottom,rgba(53,53,53,1),rgba(53,53,53,0));}.scraped-example:not(.expanded) .code-wrapper::after{background:linear-gradient(to top,rgba(53,53,53,1),rgba(53,53,53,0));} \ No newline at end of file diff --git a/static.files/dark-cf923f49f397b216.css b/static.files/dark-cf923f49f397b216.css new file mode 100644 index 00000000..70f9f118 --- /dev/null +++ b/static.files/dark-cf923f49f397b216.css @@ -0,0 +1 @@ +:root{--main-background-color:#353535;--main-color:#ddd;--settings-input-color:#2196f3;--settings-button-color:#000;--settings-button-border-focus:#ffb900;--sidebar-background-color:#505050;--sidebar-background-color-hover:#676767;--code-block-background-color:#2A2A2A;--scrollbar-track-background-color:#717171;--scrollbar-thumb-background-color:rgba(32,34,37,.6);--scrollbar-color:rgba(32,34,37,.6) #5a5a5a;--headings-border-bottom-color:#d2d2d2;--border-color:#e0e0e0;--button-background-color:#f0f0f0;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:invert(100%);--search-input-focused-border-color:#008dfd;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(65%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#2dbfb8;--trait-link-color:#b78cf2;--assoc-item-link-color:#d2991d;--function-link-color:#2bab63;--macro-link-color:#09bd00;--keyword-link-color:#d2991d;--mod-link-color:#d2991d;--link-color:#d2991d;--sidebar-link-color:#fdbf35;--sidebar-current-link-background-color:#444;--search-result-link-focus-background-color:#616161;--search-result-border-color:#aaa3;--search-color:#111;--search-error-code-background-color:#484848;--search-results-alias-color:#fff;--search-results-grey-color:#ccc;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#252525;--search-tab-button-not-selected-background:#252525;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#353535;--stab-background-color:#314559;--stab-code-color:#e6e1cf;--code-highlight-kw-color:#ab8ac1;--code-highlight-kw-2-color:#769acb;--code-highlight-lifetime-color:#d97f26;--code-highlight-prelude-color:#769acb;--code-highlight-prelude-val-color:#ee6868;--code-highlight-number-color:#83a300;--code-highlight-string-color:#83a300;--code-highlight-literal-color:#ee6868;--code-highlight-attribute-color:#ee6868;--code-highlight-self-color:#ee6868;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8d8d8b;--code-highlight-doc-comment-color:#8ca375;--src-line-numbers-span-color:#3b91e2;--src-line-number-highlighted-background-color:#0a042f;--test-arrow-color:#dedede;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#dedede;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#494a3d;--target-border-color:#bb7410;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);--crate-search-div-filter:invert(94%) sepia(0%) saturate(721%) hue-rotate(255deg) brightness(90%) contrast(90%);--crate-search-div-hover-filter:invert(69%) sepia(60%) saturate(6613%) hue-rotate(184deg) brightness(100%) contrast(91%);--crate-search-hover-border:#2196f3;--source-sidebar-background-selected:#333;--source-sidebar-background-hover:#444;--table-alt-row-background-color:#2A2A2A;--codeblock-link-background:#333;--scrape-example-toggle-line-background:#999;--scrape-example-toggle-line-hover-background:#c5c5c5;--scrape-example-code-line-highlight:rgb(91,59,1);--scrape-example-code-line-highlight-focus:rgb(124,75,15);--scrape-example-help-border-color:#aaa;--scrape-example-help-color:#eee;--scrape-example-help-hover-border-color:#fff;--scrape-example-help-hover-color:#fff;--scrape-example-code-wrapper-background-start:rgba(53,53,53,1);--scrape-example-code-wrapper-background-end:rgba(53,53,53,0);} \ No newline at end of file diff --git a/static.files/down-arrow-927217e04c7463ac.svg b/static.files/down-arrow-927217e04c7463ac.svg deleted file mode 100644 index 5d76a64e..00000000 --- a/static.files/down-arrow-927217e04c7463ac.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static.files/light-4743e13df3dfe8c4.css b/static.files/light-4743e13df3dfe8c4.css deleted file mode 100644 index f058592a..00000000 --- a/static.files/light-4743e13df3dfe8c4.css +++ /dev/null @@ -1 +0,0 @@ -:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#F5F5F5;--sidebar-background-color-hover:#E0E0E0;--code-block-background-color:#F5F5F5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--tooltip-background-color:#000;--tooltip-color:#fff;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--source-sidebar-background-selected:#fff;--source-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#F5F5F5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;}#search-tabs>button:not(.selected){background-color:#e6e6e6;border-top-color:#e6e6e6;}#search-tabs>button:hover,#search-tabs>button.selected{background-color:#ffffff;border-top-color:#0089ff;}.scraped-example:not(.expanded) .code-wrapper::before{background:linear-gradient(to bottom,rgba(255,255,255,1),rgba(255,255,255,0));}.scraped-example:not(.expanded) .code-wrapper::after{background:linear-gradient(to top,rgba(255,255,255,1),rgba(255,255,255,0));} \ No newline at end of file diff --git a/static.files/light-db279b6232be9c13.css b/static.files/light-db279b6232be9c13.css new file mode 100644 index 00000000..f0080dbe --- /dev/null +++ b/static.files/light-db279b6232be9c13.css @@ -0,0 +1 @@ +:root{--main-background-color:white;--main-color:black;--settings-input-color:#2196f3;--settings-button-color:#000;--settings-button-border-focus:#717171;--sidebar-background-color:#F5F5F5;--sidebar-background-color-hover:#E0E0E0;--code-block-background-color:#F5F5F5;--scrollbar-track-background-color:#dcdcdc;--scrollbar-thumb-background-color:rgba(36,37,39,0.6);--scrollbar-color:rgba(36,37,39,0.6) #d9d9d9;--headings-border-bottom-color:#ddd;--border-color:#e0e0e0;--button-background-color:#fff;--right-side-color:grey;--code-attribute-color:#999;--toggles-color:#999;--toggle-filter:none;--search-input-focused-border-color:#66afe9;--copy-path-button-color:#999;--copy-path-img-filter:invert(50%);--copy-path-img-hover-filter:invert(35%);--codeblock-error-hover-color:rgb(255,0,0);--codeblock-error-color:rgba(255,0,0,.5);--codeblock-ignore-hover-color:rgb(255,142,0);--codeblock-ignore-color:rgba(255,142,0,.6);--type-link-color:#ad378a;--trait-link-color:#6e4fc9;--assoc-item-link-color:#3873ad;--function-link-color:#ad7c37;--macro-link-color:#068000;--keyword-link-color:#3873ad;--mod-link-color:#3873ad;--link-color:#3873ad;--sidebar-link-color:#356da4;--sidebar-current-link-background-color:#fff;--search-result-link-focus-background-color:#ccc;--search-result-border-color:#aaa3;--search-color:#000;--search-error-code-background-color:#d0cccc;--search-results-alias-color:#000;--search-results-grey-color:#999;--search-tab-title-count-color:#888;--search-tab-button-not-selected-border-top-color:#e6e6e6;--search-tab-button-not-selected-background:#e6e6e6;--search-tab-button-selected-border-top-color:#0089ff;--search-tab-button-selected-background:#ffffff;--stab-background-color:#fff5d6;--stab-code-color:#000;--code-highlight-kw-color:#8959a8;--code-highlight-kw-2-color:#4271ae;--code-highlight-lifetime-color:#b76514;--code-highlight-prelude-color:#4271ae;--code-highlight-prelude-val-color:#c82829;--code-highlight-number-color:#718c00;--code-highlight-string-color:#718c00;--code-highlight-literal-color:#c82829;--code-highlight-attribute-color:#c82829;--code-highlight-self-color:#c82829;--code-highlight-macro-color:#3e999f;--code-highlight-question-mark-color:#ff9011;--code-highlight-comment-color:#8e908c;--code-highlight-doc-comment-color:#4d4d4c;--src-line-numbers-span-color:#c67e2d;--src-line-number-highlighted-background-color:#fdffd3;--test-arrow-color:#f5f5f5;--test-arrow-background-color:rgba(78,139,202,0.2);--test-arrow-hover-color:#f5f5f5;--test-arrow-hover-background-color:#4e8bca;--target-background-color:#fdffd3;--target-border-color:#ad7c37;--kbd-color:#000;--kbd-background:#fafbfc;--kbd-box-shadow-color:#c6cbd1;--rust-logo-filter:initial;--crate-search-div-filter:invert(100%) sepia(0%) saturate(4223%) hue-rotate(289deg) brightness(114%) contrast(76%);--crate-search-div-hover-filter:invert(44%) sepia(18%) saturate(23%) hue-rotate(317deg) brightness(96%) contrast(93%);--crate-search-hover-border:#717171;--source-sidebar-background-selected:#fff;--source-sidebar-background-hover:#e0e0e0;--table-alt-row-background-color:#F5F5F5;--codeblock-link-background:#eee;--scrape-example-toggle-line-background:#ccc;--scrape-example-toggle-line-hover-background:#999;--scrape-example-code-line-highlight:#fcffd6;--scrape-example-code-line-highlight-focus:#f6fdb0;--scrape-example-help-border-color:#555;--scrape-example-help-color:#333;--scrape-example-help-hover-border-color:#000;--scrape-example-help-hover-color:#000;--scrape-example-code-wrapper-background-start:rgba(255,255,255,1);--scrape-example-code-wrapper-background-end:rgba(255,255,255,0);} \ No newline at end of file diff --git a/static.files/main-3367e395607fafc1.js b/static.files/main-3367e395607fafc1.js deleted file mode 100644 index a6fe6ddc..00000000 --- a/static.files/main-3367e395607fafc1.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict";function getVar(name){const el=document.getElementById("rustdoc-vars");if(el){return el.attributes["data-"+name].value}else{return null}}function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function elemIsInParent(elem,parent){while(elem&&elem!==document.body){if(elem===parent){return true}elem=elem.parentElement}return false}function blurHandler(event,parentElem,hideCallback){if(!elemIsInParent(document.activeElement,parentElem)&&!elemIsInParent(event.relatedTarget,parentElem)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileLocationTitle=document.querySelector(".mobile-topbar h2");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileLocationTitle&&locationTitle){mobileLocationTitle.innerHTML=locationTitle.innerHTML}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function loadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url){const script=document.createElement("script");script.src=url;document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadCss(getVar("static-root-path")+getVar("settings-css"));loadScript(getVar("static-root-path")+getVar("settings-js"))};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},hideResults:()=>{switchDisplayedElement(null);document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"));loadScript(resourcePath("search-index",".js"))}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

    "+searchState.loadingText+"

    ";searchState.showResults(search)},};function getPageId(){if(window.location.hash){const tmp=window.location.hash.replace(/^#/,"");if(tmp.length>0){return tmp}}return null}const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}if(savedHash!==window.location.hash){savedHash=window.location.hash;if(savedHash.length===0){return}expandSection(savedHash.slice(1))}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();switchDisplayedElement(null);if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const item of filtered){const name=item[0];const desc=item[1];let path;if(shortty==="mod"){path=name+"/index.html"}else{path=shortty+"."+name+".html"}const current_page=document.location.href.split("/").pop();const link=document.createElement("a");link.href=path;link.title=desc;if(path===current_page){link.className="current"}link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("union","unions","Unions");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Definitions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=script?script.getAttribute("data-ignore-extern-crates"):"";for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.indexOf(lib)!==-1){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";if(window.rootPath!=="./"&&crate===window.currentCrate){link.className="current"}link.textContent=crate;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}});const pageId=getPageId();if(pageId!==null){expandSection(pageId)}}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}let oldSidebarScrollPosition=null;window.rustdocMobileScrollLock=function(){const mobile_topbar=document.querySelector(".mobile-topbar");if(window.innerWidth<=window.RUSTDOC_MOBILE_BREAKPOINT){oldSidebarScrollPosition=window.scrollY;document.body.style.width=`${document.body.offsetWidth}px`;document.body.style.position="fixed";document.body.style.top=`-${oldSidebarScrollPosition}px`;if(mobile_topbar){mobile_topbar.style.top=`${oldSidebarScrollPosition}px`;mobile_topbar.style.position="relative"}}else{oldSidebarScrollPosition=null}};window.rustdocMobileScrollUnlock=function(){const mobile_topbar=document.querySelector(".mobile-topbar");if(oldSidebarScrollPosition!==null){document.body.style.width="";document.body.style.position="";document.body.style.top="";if(mobile_topbar){mobile_topbar.style.top="";mobile_topbar.style.position=""}window.scrollTo(0,oldSidebarScrollPosition);oldSidebarScrollPosition=null}};function showSidebar(){window.hideAllModals(false);window.rustdocMobileScrollLock();const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){window.rustdocMobileScrollUnlock();const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.innerWidth>window.RUSTDOC_MOBILE_BREAKPOINT&&oldSidebarScrollPosition!==null){hideSidebar()}if(window.CURRENT_NOTABLE_ELEMENT){const base=window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE;const force_visible=base.NOTABLE_FORCE_VISIBLE;hideNotable(false);if(force_visible){showNotable(base);base.NOTABLE_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showNotable(e){if(!window.NOTABLE_TRAITS){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showNotable() called on page without any notable traits!")}}if(window.CURRENT_NOTABLE_ELEMENT&&window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE===e){return}window.hideAllModals(false);const ty=e.getAttribute("data-ty");const wrapper=document.createElement("div");wrapper.innerHTML="
    "+window.NOTABLE_TRAITS[ty]+"
    ";wrapper.className="notable popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideNotable;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";const body=document.getElementsByTagName("body")[0];body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px")}wrapper.style.visibility="";window.CURRENT_NOTABLE_ELEMENT=wrapper;window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE=e;wrapper.onpointerleave=function(ev){if(ev.pointerType!=="mouse"){return}if(!e.NOTABLE_FORCE_VISIBLE&&!elemIsInParent(event.relatedTarget,e)){hideNotable(true)}}}function notableBlurHandler(event){if(window.CURRENT_NOTABLE_ELEMENT&&!elemIsInParent(document.activeElement,window.CURRENT_NOTABLE_ELEMENT)&&!elemIsInParent(event.relatedTarget,window.CURRENT_NOTABLE_ELEMENT)&&!elemIsInParent(document.activeElement,window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE)&&!elemIsInParent(event.relatedTarget,window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE)){setTimeout(()=>hideNotable(false),0)}}function hideNotable(focus){if(window.CURRENT_NOTABLE_ELEMENT){if(window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE.NOTABLE_FORCE_VISIBLE){if(focus){window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE.focus()}window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE.NOTABLE_FORCE_VISIBLE=false}const body=document.getElementsByTagName("body")[0];body.removeChild(window.CURRENT_NOTABLE_ELEMENT);window.CURRENT_NOTABLE_ELEMENT=null}}onEachLazy(document.getElementsByClassName("notable-traits"),e=>{e.onclick=function(){this.NOTABLE_FORCE_VISIBLE=this.NOTABLE_FORCE_VISIBLE?false:true;if(window.CURRENT_NOTABLE_ELEMENT&&!this.NOTABLE_FORCE_VISIBLE){hideNotable(true)}else{showNotable(this);window.CURRENT_NOTABLE_ELEMENT.setAttribute("tabindex","0");window.CURRENT_NOTABLE_ELEMENT.focus();window.CURRENT_NOTABLE_ELEMENT.onblur=notableBlurHandler}return false};e.onpointerenter=function(ev){if(ev.pointerType!=="mouse"){return}showNotable(this)};e.onpointerleave=function(ev){if(ev.pointerType!=="mouse"){return}if(!this.NOTABLE_FORCE_VISIBLE&&!elemIsInParent(ev.relatedTarget,window.CURRENT_NOTABLE_ELEMENT)){hideNotable(true)}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");book_info.className="top";book_info.innerHTML="You can find more information in \ - the rustdoc book.";const shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
    "+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
    "+x[1]+"
    ").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

    Keyboard Shortcuts

    "+shortcuts+"
    ";const infos=["Prefix searches with a type followed by a colon (e.g., fn:) to \ - restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ - enum, trait, type, macro, \ - and const.","Search functions by type signature (e.g., vec -> usize or \ - -> vec)","Search multiple things at once by splitting your query with comma (e.g., \ - str,u8 or String,struct:Vec,test)","You can look for items with an exact name by putting double quotes around \ - your request: \"string\"","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

    "+x+"

    ").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

    Search Tricks

    "+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=function(switchFocus){hideSidebar();window.hidePopoverMenus();hideNotable(switchFocus)};window.hidePopoverMenus=function(){onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){let reset_button_timeout=null;window.copy_path=but=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});const el=document.createElement("textarea");el.value=path.join("::");el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el);but.children[0].style.display="none";let tmp;if(but.childNodes.length<2){tmp=document.createTextNode("✓");but.appendChild(tmp)}else{onEachLazy(but.childNodes,e=>{if(e.nodeType===Node.TEXT_NODE){tmp=e;return true}});tmp.textContent="✓"}if(reset_button_timeout!==null){window.clearTimeout(reset_button_timeout)}function reset_button(){tmp.textContent="";reset_button_timeout=null;but.children[0].style.display=""}reset_button_timeout=window.setTimeout(reset_button,1000)}}()) \ No newline at end of file diff --git a/static.files/main-98a684e84ae5b08b.js b/static.files/main-98a684e84ae5b08b.js new file mode 100644 index 00000000..1a1db3b0 --- /dev/null +++ b/static.files/main-98a684e84ae5b08b.js @@ -0,0 +1,8 @@ +"use strict";function getVar(name){const el=document.getElementById("rustdoc-vars");if(el){return el.attributes["data-"+name].value}else{return null}}function resourcePath(basename,extension){return getVar("root-path")+basename+getVar("resource-suffix")+extension}function hideMain(){addClass(document.getElementById(MAIN_ID),"hidden")}function showMain(){removeClass(document.getElementById(MAIN_ID),"hidden")}function elemIsInParent(elem,parent){while(elem&&elem!==document.body){if(elem===parent){return true}elem=elem.parentElement}return false}function blurHandler(event,parentElem,hideCallback){if(!elemIsInParent(document.activeElement,parentElem)&&!elemIsInParent(event.relatedTarget,parentElem)){hideCallback()}}window.rootPath=getVar("root-path");window.currentCrate=getVar("current-crate");function setMobileTopbar(){const mobileLocationTitle=document.querySelector(".mobile-topbar h2");const locationTitle=document.querySelector(".sidebar h2.location");if(mobileLocationTitle&&locationTitle){mobileLocationTitle.innerHTML=locationTitle.innerHTML}}function getVirtualKey(ev){if("key"in ev&&typeof ev.key!=="undefined"){return ev.key}const c=ev.charCode||ev.keyCode;if(c===27){return"Escape"}return String.fromCharCode(c)}const MAIN_ID="main-content";const SETTINGS_BUTTON_ID="settings-menu";const ALTERNATIVE_DISPLAY_ID="alternative-display";const NOT_DISPLAYED_ID="not-displayed";const HELP_BUTTON_ID="help-button";function getSettingsButton(){return document.getElementById(SETTINGS_BUTTON_ID)}function getHelpButton(){return document.getElementById(HELP_BUTTON_ID)}function getNakedUrl(){return window.location.href.split("?")[0].split("#")[0]}function insertAfter(newNode,referenceNode){referenceNode.parentNode.insertBefore(newNode,referenceNode.nextSibling)}function getOrCreateSection(id,classes){let el=document.getElementById(id);if(!el){el=document.createElement("section");el.id=id;el.className=classes;insertAfter(el,document.getElementById(MAIN_ID))}return el}function getAlternativeDisplayElem(){return getOrCreateSection(ALTERNATIVE_DISPLAY_ID,"content hidden")}function getNotDisplayedElem(){return getOrCreateSection(NOT_DISPLAYED_ID,"hidden")}function switchDisplayedElement(elemToDisplay){const el=getAlternativeDisplayElem();if(el.children.length>0){getNotDisplayedElem().appendChild(el.firstElementChild)}if(elemToDisplay===null){addClass(el,"hidden");showMain();return}el.appendChild(elemToDisplay);hideMain();removeClass(el,"hidden")}function browserSupportsHistoryApi(){return window.history&&typeof window.history.pushState==="function"}function loadCss(cssUrl){const link=document.createElement("link");link.href=cssUrl;link.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(link)}(function(){const isHelpPage=window.location.pathname.endsWith("/help.html");function loadScript(url){const script=document.createElement("script");script.src=url;document.head.append(script)}getSettingsButton().onclick=event=>{if(event.ctrlKey||event.altKey||event.metaKey){return}window.hideAllModals(false);addClass(getSettingsButton(),"rotate");event.preventDefault();loadCss(getVar("static-root-path")+getVar("settings-css"));loadScript(getVar("static-root-path")+getVar("settings-js"))};window.searchState={loadingText:"Loading search results...",input:document.getElementsByClassName("search-input")[0],outputElement:()=>{let el=document.getElementById("search");if(!el){el=document.createElement("section");el.id="search";getNotDisplayedElem().appendChild(el)}return el},title:document.title,titleBeforeSearch:document.title,timeout:null,currentTab:0,focusedByTab:[null,null,null],clearInputTimeout:()=>{if(searchState.timeout!==null){clearTimeout(searchState.timeout);searchState.timeout=null}},isDisplayed:()=>searchState.outputElement().parentElement.id===ALTERNATIVE_DISPLAY_ID,focus:()=>{searchState.input.focus()},defocus:()=>{searchState.input.blur()},showResults:search=>{if(search===null||typeof search==="undefined"){search=searchState.outputElement()}switchDisplayedElement(search);searchState.mouseMovedAfterSearch=false;document.title=searchState.title},hideResults:()=>{switchDisplayedElement(null);document.title=searchState.titleBeforeSearch;if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}},getQueryStringParams:()=>{const params={};window.location.search.substring(1).split("&").map(s=>{const pair=s.split("=");params[decodeURIComponent(pair[0])]=typeof pair[1]==="undefined"?null:decodeURIComponent(pair[1])});return params},setup:()=>{const search_input=searchState.input;if(!searchState.input){return}let searchLoaded=false;function loadSearch(){if(!searchLoaded){searchLoaded=true;loadScript(getVar("static-root-path")+getVar("search-js"));loadScript(resourcePath("search-index",".js"))}}search_input.addEventListener("focus",()=>{search_input.origPlaceholder=search_input.placeholder;search_input.placeholder="Type your search here.";loadSearch()});if(search_input.value!==""){loadSearch()}const params=searchState.getQueryStringParams();if(params.search!==undefined){searchState.setLoadingSearch();loadSearch()}},setLoadingSearch:()=>{const search=searchState.outputElement();search.innerHTML="

    "+searchState.loadingText+"

    ";searchState.showResults(search)},};function getPageId(){if(window.location.hash){const tmp=window.location.hash.replace(/^#/,"");if(tmp.length>0){return tmp}}return null}const toggleAllDocsId="toggle-all-docs";let savedHash="";function handleHashes(ev){if(ev!==null&&searchState.isDisplayed()&&ev.newURL){switchDisplayedElement(null);const hash=ev.newURL.slice(ev.newURL.indexOf("#")+1);if(browserSupportsHistoryApi()){history.replaceState(null,"",getNakedUrl()+window.location.search+"#"+hash)}const elem=document.getElementById(hash);if(elem){elem.scrollIntoView()}}if(savedHash!==window.location.hash){savedHash=window.location.hash;if(savedHash.length===0){return}expandSection(savedHash.slice(1))}}function onHashChange(ev){hideSidebar();handleHashes(ev)}function openParentDetails(elem){while(elem){if(elem.tagName==="DETAILS"){elem.open=true}elem=elem.parentNode}}function expandSection(id){openParentDetails(document.getElementById(id))}function handleEscape(ev){searchState.clearInputTimeout();switchDisplayedElement(null);if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}ev.preventDefault();searchState.defocus();window.hideAllModals(true)}function handleShortcut(ev){const disableShortcuts=getSettingValue("disable-shortcuts")==="true";if(ev.ctrlKey||ev.altKey||ev.metaKey||disableShortcuts){return}if(document.activeElement.tagName==="INPUT"&&document.activeElement.type!=="checkbox"&&document.activeElement.type!=="radio"){switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break}}else{switch(getVirtualKey(ev)){case"Escape":handleEscape(ev);break;case"s":case"S":ev.preventDefault();searchState.focus();break;case"+":ev.preventDefault();expandAllDocs();break;case"-":ev.preventDefault();collapseAllDocs();break;case"?":showHelp();break;default:break}}}document.addEventListener("keypress",handleShortcut);document.addEventListener("keydown",handleShortcut);function addSidebarItems(){if(!window.SIDEBAR_ITEMS){return}const sidebar=document.getElementsByClassName("sidebar-elems")[0];function block(shortty,id,longty){const filtered=window.SIDEBAR_ITEMS[shortty];if(!filtered){return}const h3=document.createElement("h3");h3.innerHTML=`${longty}`;const ul=document.createElement("ul");ul.className="block "+shortty;for(const name of filtered){let path;if(shortty==="mod"){path=name+"/index.html"}else{path=shortty+"."+name+".html"}const current_page=document.location.href.split("/").pop();const link=document.createElement("a");link.href=path;if(path===current_page){link.className="current"}link.textContent=name;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebar.appendChild(h3);sidebar.appendChild(ul)}if(sidebar){block("primitive","primitives","Primitive Types");block("mod","modules","Modules");block("macro","macros","Macros");block("struct","structs","Structs");block("enum","enums","Enums");block("union","unions","Unions");block("constant","constants","Constants");block("static","static","Statics");block("trait","traits","Traits");block("fn","functions","Functions");block("type","types","Type Definitions");block("foreigntype","foreign-types","Foreign Types");block("keyword","keywords","Keywords");block("traitalias","trait-aliases","Trait Aliases")}}window.register_implementors=imp=>{const implementors=document.getElementById("implementors-list");const synthetic_implementors=document.getElementById("synthetic-implementors-list");const inlined_types=new Set();const TEXT_IDX=0;const SYNTHETIC_IDX=1;const TYPES_IDX=2;if(synthetic_implementors){onEachLazy(synthetic_implementors.getElementsByClassName("impl"),el=>{const aliases=el.getAttribute("data-aliases");if(!aliases){return}aliases.split(",").forEach(alias=>{inlined_types.add(alias)})})}let currentNbImpls=implementors.getElementsByClassName("impl").length;const traitName=document.querySelector(".main-heading h1 > .trait").textContent;const baseIdName="impl-"+traitName+"-";const libs=Object.getOwnPropertyNames(imp);const script=document.querySelector("script[data-ignore-extern-crates]");const ignoreExternCrates=script?script.getAttribute("data-ignore-extern-crates"):"";for(const lib of libs){if(lib===window.currentCrate||ignoreExternCrates.indexOf(lib)!==-1){continue}const structs=imp[lib];struct_loop:for(const struct of structs){const list=struct[SYNTHETIC_IDX]?synthetic_implementors:implementors;if(struct[SYNTHETIC_IDX]){for(const struct_type of struct[TYPES_IDX]){if(inlined_types.has(struct_type)){continue struct_loop}inlined_types.add(struct_type)}}const code=document.createElement("h3");code.innerHTML=struct[TEXT_IDX];addClass(code,"code-header");onEachLazy(code.getElementsByTagName("a"),elem=>{const href=elem.getAttribute("href");if(href&&!/^(?:[a-z+]+:)?\/\//.test(href)){elem.setAttribute("href",window.rootPath+href)}});const currentId=baseIdName+currentNbImpls;const anchor=document.createElement("a");anchor.href="#"+currentId;addClass(anchor,"anchor");const display=document.createElement("div");display.id=currentId;addClass(display,"impl");display.appendChild(anchor);display.appendChild(code);list.appendChild(display);currentNbImpls+=1}}};if(window.pending_implementors){window.register_implementors(window.pending_implementors)}function addSidebarCrates(){if(!window.ALL_CRATES){return}const sidebarElems=document.getElementsByClassName("sidebar-elems")[0];if(!sidebarElems){return}const h3=document.createElement("h3");h3.innerHTML="Crates";const ul=document.createElement("ul");ul.className="block crate";for(const crate of window.ALL_CRATES){const link=document.createElement("a");link.href=window.rootPath+crate+"/index.html";if(window.rootPath!=="./"&&crate===window.currentCrate){link.className="current"}link.textContent=crate;const li=document.createElement("li");li.appendChild(link);ul.appendChild(li)}sidebarElems.appendChild(h3);sidebarElems.appendChild(ul)}function expandAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);removeClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hasClass(e,"type-contents-toggle")&&!hasClass(e,"more-examples-toggle")){e.open=true}});innerToggle.title="collapse all docs";innerToggle.children[0].innerText="\u2212"}function collapseAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);addClass(innerToggle,"will-expand");onEachLazy(document.getElementsByClassName("toggle"),e=>{if(e.parentNode.id!=="implementations-list"||(!hasClass(e,"implementors-toggle")&&!hasClass(e,"type-contents-toggle"))){e.open=false}});innerToggle.title="expand all docs";innerToggle.children[0].innerText="+"}function toggleAllDocs(){const innerToggle=document.getElementById(toggleAllDocsId);if(!innerToggle){return}if(hasClass(innerToggle,"will-expand")){expandAllDocs()}else{collapseAllDocs()}}(function(){const toggles=document.getElementById(toggleAllDocsId);if(toggles){toggles.onclick=toggleAllDocs}const hideMethodDocs=getSettingValue("auto-hide-method-docs")==="true";const hideImplementations=getSettingValue("auto-hide-trait-implementations")==="true";const hideLargeItemContents=getSettingValue("auto-hide-large-items")!=="false";function setImplementorsTogglesOpen(id,open){const list=document.getElementById(id);if(list!==null){onEachLazy(list.getElementsByClassName("implementors-toggle"),e=>{e.open=open})}}if(hideImplementations){setImplementorsTogglesOpen("trait-implementations-list",false);setImplementorsTogglesOpen("blanket-implementations-list",false)}onEachLazy(document.getElementsByClassName("toggle"),e=>{if(!hideLargeItemContents&&hasClass(e,"type-contents-toggle")){e.open=true}if(hideMethodDocs&&hasClass(e,"method-toggle")){e.open=false}});const pageId=getPageId();if(pageId!==null){expandSection(pageId)}}());window.rustdoc_add_line_numbers_to_examples=()=>{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");if(line_numbers.length>0){return}const count=x.textContent.split("\n").length;const elems=[];for(let i=0;i{onEachLazy(document.getElementsByClassName("rust-example-rendered"),x=>{const parent=x.parentNode;const line_numbers=parent.querySelectorAll(".example-line-numbers");for(const node of line_numbers){parent.removeChild(node)}})};if(getSettingValue("line-numbers")==="true"){window.rustdoc_add_line_numbers_to_examples()}let oldSidebarScrollPosition=null;window.rustdocMobileScrollLock=function(){const mobile_topbar=document.querySelector(".mobile-topbar");if(window.innerWidth<=window.RUSTDOC_MOBILE_BREAKPOINT){oldSidebarScrollPosition=window.scrollY;document.body.style.width=`${document.body.offsetWidth}px`;document.body.style.position="fixed";document.body.style.top=`-${oldSidebarScrollPosition}px`;if(mobile_topbar){mobile_topbar.style.top=`${oldSidebarScrollPosition}px`;mobile_topbar.style.position="relative"}}else{oldSidebarScrollPosition=null}};window.rustdocMobileScrollUnlock=function(){const mobile_topbar=document.querySelector(".mobile-topbar");if(oldSidebarScrollPosition!==null){document.body.style.width="";document.body.style.position="";document.body.style.top="";if(mobile_topbar){mobile_topbar.style.top="";mobile_topbar.style.position=""}window.scrollTo(0,oldSidebarScrollPosition);oldSidebarScrollPosition=null}};function showSidebar(){window.hideAllModals(false);window.rustdocMobileScrollLock();const sidebar=document.getElementsByClassName("sidebar")[0];addClass(sidebar,"shown")}function hideSidebar(){window.rustdocMobileScrollUnlock();const sidebar=document.getElementsByClassName("sidebar")[0];removeClass(sidebar,"shown")}window.addEventListener("resize",()=>{if(window.innerWidth>window.RUSTDOC_MOBILE_BREAKPOINT&&oldSidebarScrollPosition!==null){hideSidebar()}if(window.CURRENT_TOOLTIP_ELEMENT){const base=window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE;const force_visible=base.TOOLTIP_FORCE_VISIBLE;hideTooltip(false);if(force_visible){showTooltip(base);base.TOOLTIP_FORCE_VISIBLE=true}}});const mainElem=document.getElementById(MAIN_ID);if(mainElem){mainElem.addEventListener("click",hideSidebar)}onEachLazy(document.querySelectorAll("a[href^='#']"),el=>{el.addEventListener("click",()=>{expandSection(el.hash.slice(1));hideSidebar()})});onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"),el=>{el.addEventListener("click",e=>{if(e.target.tagName!=="SUMMARY"&&e.target.tagName!=="A"){e.preventDefault()}})});function showTooltip(e){const notable_ty=e.getAttribute("data-notable-ty");if(!window.NOTABLE_TRAITS&¬able_ty){const data=document.getElementById("notable-traits-data");if(data){window.NOTABLE_TRAITS=JSON.parse(data.innerText)}else{throw new Error("showTooltip() called with notable without any notable traits!")}}if(window.CURRENT_TOOLTIP_ELEMENT&&window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE===e){return}window.hideAllModals(false);const wrapper=document.createElement("div");if(notable_ty){wrapper.innerHTML="
    "+window.NOTABLE_TRAITS[notable_ty]+"
    "}else if(e.getAttribute("title")!==undefined){const titleContent=document.createElement("div");titleContent.className="content";titleContent.appendChild(document.createTextNode(e.getAttribute("title")));wrapper.appendChild(titleContent)}wrapper.className="tooltip popover";const focusCatcher=document.createElement("div");focusCatcher.setAttribute("tabindex","0");focusCatcher.onfocus=hideTooltip;wrapper.appendChild(focusCatcher);const pos=e.getBoundingClientRect();wrapper.style.top=(pos.top+window.scrollY+pos.height)+"px";wrapper.style.left=0;wrapper.style.right="auto";wrapper.style.visibility="hidden";const body=document.getElementsByTagName("body")[0];body.appendChild(wrapper);const wrapperPos=wrapper.getBoundingClientRect();const finalPos=pos.left+window.scrollX-wrapperPos.width+24;if(finalPos>0){wrapper.style.left=finalPos+"px"}else{wrapper.style.setProperty("--popover-arrow-offset",(wrapperPos.right-pos.right+4)+"px")}wrapper.style.visibility="";window.CURRENT_TOOLTIP_ELEMENT=wrapper;window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE=e;wrapper.onpointerleave=function(ev){if(ev.pointerType!=="mouse"){return}if(!e.TOOLTIP_FORCE_VISIBLE&&!elemIsInParent(event.relatedTarget,e)){hideTooltip(true)}}}function tooltipBlurHandler(event){if(window.CURRENT_TOOLTIP_ELEMENT&&!elemIsInParent(document.activeElement,window.CURRENT_TOOLTIP_ELEMENT)&&!elemIsInParent(event.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT)&&!elemIsInParent(document.activeElement,window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE)&&!elemIsInParent(event.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE)){setTimeout(()=>hideTooltip(false),0)}}function hideTooltip(focus){if(window.CURRENT_TOOLTIP_ELEMENT){if(window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE){if(focus){window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.focus()}window.CURRENT_TOOLTIP_ELEMENT.TOOLTIP_BASE.TOOLTIP_FORCE_VISIBLE=false}const body=document.getElementsByTagName("body")[0];body.removeChild(window.CURRENT_TOOLTIP_ELEMENT);window.CURRENT_TOOLTIP_ELEMENT=null}}onEachLazy(document.getElementsByClassName("tooltip"),e=>{e.onclick=function(){this.TOOLTIP_FORCE_VISIBLE=this.TOOLTIP_FORCE_VISIBLE?false:true;if(window.CURRENT_TOOLTIP_ELEMENT&&!this.TOOLTIP_FORCE_VISIBLE){hideTooltip(true)}else{showTooltip(this);window.CURRENT_TOOLTIP_ELEMENT.setAttribute("tabindex","0");window.CURRENT_TOOLTIP_ELEMENT.focus();window.CURRENT_TOOLTIP_ELEMENT.onblur=tooltipBlurHandler}return false};e.onpointerenter=function(ev){if(ev.pointerType!=="mouse"){return}showTooltip(this)};e.onpointerleave=function(ev){if(ev.pointerType!=="mouse"){return}if(!this.TOOLTIP_FORCE_VISIBLE&&!elemIsInParent(ev.relatedTarget,window.CURRENT_TOOLTIP_ELEMENT)){hideTooltip(true)}}});const sidebar_menu_toggle=document.getElementsByClassName("sidebar-menu-toggle")[0];if(sidebar_menu_toggle){sidebar_menu_toggle.addEventListener("click",()=>{const sidebar=document.getElementsByClassName("sidebar")[0];if(!hasClass(sidebar,"shown")){showSidebar()}else{hideSidebar()}})}function helpBlurHandler(event){blurHandler(event,getHelpButton(),window.hidePopoverMenus)}function buildHelpMenu(){const book_info=document.createElement("span");book_info.className="top";book_info.innerHTML="You can find more information in \ + the rustdoc book.";const shortcuts=[["?","Show this help dialog"],["S","Focus the search field"],["↑","Move up in search results"],["↓","Move down in search results"],["← / →","Switch result tab (when results focused)"],["⏎","Go to active search result"],["+","Expand all sections"],["-","Collapse all sections"],].map(x=>"
    "+x[0].split(" ").map((y,index)=>((index&1)===0?""+y+"":" "+y+" ")).join("")+"
    "+x[1]+"
    ").join("");const div_shortcuts=document.createElement("div");addClass(div_shortcuts,"shortcuts");div_shortcuts.innerHTML="

    Keyboard Shortcuts

    "+shortcuts+"
    ";const infos=["Prefix searches with a type followed by a colon (e.g., fn:) to \ + restrict the search to a given item kind.","Accepted kinds are: fn, mod, struct, \ + enum, trait, type, macro, \ + and const.","Search functions by type signature (e.g., vec -> usize or \ + -> vec)","Search multiple things at once by splitting your query with comma (e.g., \ + str,u8 or String,struct:Vec,test)","You can look for items with an exact name by putting double quotes around \ + your request: \"string\"","Look for items inside another one by searching for a path: vec::Vec",].map(x=>"

    "+x+"

    ").join("");const div_infos=document.createElement("div");addClass(div_infos,"infos");div_infos.innerHTML="

    Search Tricks

    "+infos;const rustdoc_version=document.createElement("span");rustdoc_version.className="bottom";const rustdoc_version_code=document.createElement("code");rustdoc_version_code.innerText="rustdoc "+getVar("rustdoc-version");rustdoc_version.appendChild(rustdoc_version_code);const container=document.createElement("div");if(!isHelpPage){container.className="popover"}container.id="help";container.style.display="none";const side_by_side=document.createElement("div");side_by_side.className="side-by-side";side_by_side.appendChild(div_shortcuts);side_by_side.appendChild(div_infos);container.appendChild(book_info);container.appendChild(side_by_side);container.appendChild(rustdoc_version);if(isHelpPage){const help_section=document.createElement("section");help_section.appendChild(container);document.getElementById("main-content").appendChild(help_section);container.style.display="block"}else{const help_button=getHelpButton();help_button.appendChild(container);container.onblur=helpBlurHandler;help_button.onblur=helpBlurHandler;help_button.children[0].onblur=helpBlurHandler}return container}window.hideAllModals=function(switchFocus){hideSidebar();window.hidePopoverMenus();hideTooltip(switchFocus)};window.hidePopoverMenus=function(){onEachLazy(document.querySelectorAll(".search-form .popover"),elem=>{elem.style.display="none"})};function getHelpMenu(buildNeeded){let menu=getHelpButton().querySelector(".popover");if(!menu&&buildNeeded){menu=buildHelpMenu()}return menu}function showHelp(){getHelpButton().querySelector("a").focus();const menu=getHelpMenu(true);if(menu.style.display==="none"){window.hideAllModals();menu.style.display=""}}if(isHelpPage){showHelp();document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault()})}else{document.querySelector(`#${HELP_BUTTON_ID} > a`).addEventListener("click",event=>{const target=event.target;if(target.tagName!=="A"||target.parentElement.id!==HELP_BUTTON_ID||event.ctrlKey||event.altKey||event.metaKey){return}event.preventDefault();const menu=getHelpMenu(true);const shouldShowHelp=menu.style.display==="none";if(shouldShowHelp){showHelp()}else{window.hidePopoverMenus()}})}setMobileTopbar();addSidebarItems();addSidebarCrates();onHashChange(null);window.addEventListener("hashchange",onHashChange);searchState.setup()}());(function(){let reset_button_timeout=null;const but=document.getElementById("copy-path");if(!but){return}but.onclick=()=>{const parent=but.parentElement;const path=[];onEach(parent.childNodes,child=>{if(child.tagName==="A"){path.push(child.textContent)}});const el=document.createElement("textarea");el.value=path.join("::");el.setAttribute("readonly","");el.style.position="absolute";el.style.left="-9999px";document.body.appendChild(el);el.select();document.execCommand("copy");document.body.removeChild(el);but.children[0].style.display="none";let tmp;if(but.childNodes.length<2){tmp=document.createTextNode("✓");but.appendChild(tmp)}else{onEachLazy(but.childNodes,e=>{if(e.nodeType===Node.TEXT_NODE){tmp=e;return true}});tmp.textContent="✓"}if(reset_button_timeout!==null){window.clearTimeout(reset_button_timeout)}function reset_button(){tmp.textContent="";reset_button_timeout=null;but.children[0].style.display=""}reset_button_timeout=window.setTimeout(reset_button,1000)}}()) \ No newline at end of file diff --git a/static.files/rustdoc-93196c7a1c3542a8.css b/static.files/rustdoc-93196c7a1c3542a8.css deleted file mode 100644 index 4ec447aa..00000000 --- a/static.files/rustdoc-93196c7a1c3542a8.css +++ /dev/null @@ -1 +0,0 @@ - @font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-d034fe4ef9d0fa00.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}html{content:"";}@media (prefers-color-scheme:light){html{content:"light";}}@media (prefers-color-scheme:dark){html{content:"dark";}}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-left>a,.out-of-band,span.since,a.srclink,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.small-section-header a,#source-sidebar a,pre.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name .primitive>i,.result-name .keyword>i{color:var(--main-color);}.content span.enum,.content a.enum,.content span.struct,.content a.struct,.content span.union,.content a.union,.content span.primitive,.content a.primitive,.content span.type,.content a.type,.content span.foreigntype,.content a.foreigntype{color:var(--type-link-color);}.content span.trait,.content a.trait,.content span.traitalias,.content a.traitalias{color:var(--trait-link-color);}.content span.associatedtype,.content a.associatedtype,.content span.constant,.content a.constant,.content span.static,.content a.static{color:var(--assoc-item-link-color);}.content span.fn,.content a.fn,.content span.method,.content a.method,.content span.tymethod,.content a.tymethod{color:var(--function-link-color);}.content span.attr,.content a.attr,.content span.derive,.content a.derive,.content span.macro,.content a.macro{color:var(--macro-link-color);}.content span.mod,.content a.mod{color:var(--mod-link-color);}.content span.keyword,.content a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p{margin:0 0 .75em 0;}p:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.source main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}.item-decl pre{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.source .content pre{padding:20px;}.rustdoc.source .example-wrap>pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.sub-logo-container,.logo-container{line-height:0;display:block;}.sub-logo-container{margin-right:32px;}.sub-logo-container>img{height:60px;width:60px;object-fit:contain;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 200px;overflow-y:scroll;position:sticky;height:100vh;top:0;left:0;}.rustdoc.source .sidebar{flex-basis:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar-toggle,#source-sidebar{background-color:var(--sidebar-background-color);}#src-sidebar-toggle>button:hover,#src-sidebar-toggle>button:focus{background-color:var(--sidebar-background-color-hover);}.source .sidebar>*:not(#src-sidebar-toggle){visibility:hidden;}.source-sidebar-expanded .source .sidebar{overflow-y:auto;flex-basis:300px;}.source-sidebar-expanded .source .sidebar>*:not(#src-sidebar-toggle){visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.sidebar .logo-container{margin-top:10px;margin-bottom:10px;text-align:center;}.version{overflow-wrap:break-word;}.logo-container>img{height:100px;width:100px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-left:-0.25rem;}.sidebar h2{overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>h2{padding-left:24px;}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap>pre{margin:0;flex-grow:1;overflow-x:auto;}.rustdoc .example-wrap>pre.example-line-numbers,.rustdoc .example-wrap>pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap>pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.source .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}.method .where,.fn .where,.where.fmt-newline{display:block;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.source nav.sub{margin:0 0 15px 0;}.small-section-header{display:block;position:relative;}.small-section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.small-section-header>.anchor{left:-15px;padding-right:8px;}h2.small-section-header>.anchor{padding-right:6px;}.main-heading a:hover,.example-wrap>pre.rust a:hover,.all-items a:hover,.docblock a:not(.test-arrow):not(.scrape-help):hover,.docblock-short a:not(.test-arrow):not(.scrape-help):hover,.item-info a{text-decoration:underline;}.crate.block a.current{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;}.item-row{display:table-row;}.item-left,.item-right{display:table-cell;}.item-left{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}@-moz-document url-prefix(){#crate-search{padding-left:0px;padding-right:19px;}}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url("down-arrow-927217e04c7463ac.svg");filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div{flex:1;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name span.alias{color:var(--search-results-alias-color);}.search-results .result-name span.grey{color:var(--search-results-grey-color);}.popover{position:absolute;top:100%;right:0;z-index:2;margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{min-height:36px;display:flex;padding:3px;margin-bottom:5px;}.item-left .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;align-items:center;white-space:pre-wrap;border-radius:3px;display:inline-flex;vertical-align:text-bottom;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji{font-size:1.25rem;margin-right:0.3rem;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.module-item.unstable,.import-item.unstable{opacity:0.65;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.source .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;}.example-wrap .tooltip:hover::after{padding:5px 3px 3px 3px;border-radius:6px;margin-left:5px;font-size:1rem;border:1px solid var(--border-color);position:absolute;width:max-content;top:-2px;z-index:1;background-color:var(--tooltip-background-color);color:var(--tooltip-color);}.example-wrap .tooltip:hover::before{content:" ";position:absolute;top:50%;left:16px;margin-top:-5px;z-index:1;border:5px solid transparent;border-right-color:var(--tooltip-background-color);}.example-wrap.ignore .tooltip:hover::after{content:"This example is not tested";}.example-wrap.compile_fail .tooltip:hover::after{content:"This example deliberately fails to compile";}.example-wrap.should_panic .tooltip:hover::after{content:"This example panics";}.example-wrap.edition .tooltip:hover::after{content:"This code runs with edition " attr(data-edition);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}a.test-arrow{visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;color:var(--test-arrow-color);background-color:var(--test-arrow-background-color);}a.test-arrow:hover{color:var(--test-arrow-hover-color);background-color:var(--test-arrow-hover-background-color);}.example-wrap:hover .test-arrow{visibility:visible;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.notable-traits{color:inherit;margin-right:15px;position:relative;}.notable-traits:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.notable .content{margin:0.25em 0.5em;}.notable .content pre,.notable .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.notable .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs .count{font-size:1rem;color:var(--search-tab-title-count-color);}#src-sidebar-toggle{position:sticky;top:0;left:0;font-size:1.25rem;border-bottom:1px solid;display:flex;height:40px;justify-content:stretch;align-items:stretch;z-index:10;}#source-sidebar{width:100%;overflow:auto;}#source-sidebar>.title{font-size:1.5rem;text-align:center;border-bottom:1px solid var(--border-color);margin-bottom:6px;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--source-sidebar-background-hover);}#source-sidebar div.files>a.selected{background-color:var(--source-sidebar-background-selected);}#src-sidebar-toggle>button{font-size:inherit;font-weight:bold;background:none;color:inherit;text-align:center;border:none;outline:none;flex:1 1;-webkit-appearance:none;opacity:1;}#settings-menu,#help-button{margin-left:4px;display:flex;}#settings-menu>a,#help-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:2px;color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus{border-color:var(--settings-button-border-focus);}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:34px;margin-left:10px;padding:0;padding-left:2px;border:0;width:33px;}#copy-path>img{filter:var(--copy-path-img-filter);}#copy-path:hover>img{filter:var(--copy-path-img-hover-filter);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url("toggle-plus-1092eb4930d581b0.svg") no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url("toggle-minus-31bbd6e4c77f5c96.svg") no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.source main,.rustdoc.source .sidebar{top:0;padding:0;height:100vh;border:0;}.sidebar.shown,.source-sidebar-expanded .source .sidebar,.rustdoc:not(.source) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;}.mobile-topbar h2 a{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.sidebar-menu-toggle{width:45px;font-size:32px;border:none;color:var(--main-color);}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#search-tabs .count{display:block;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#src-sidebar-toggle{position:fixed;left:1px;top:100px;width:30px;font-size:1.5rem;padding:0;z-index:10;border-top-right-radius:3px;border-bottom-right-radius:3px;border:1px solid;border-left:0;}.source-sidebar-expanded #src-sidebar-toggle{left:unset;top:unset;width:unset;border-top-right-radius:unset;border-bottom-right-radius:unset;position:sticky;border:0;border-bottom:1px solid;}#copy-path,#help-button{display:none;}.item-table,.item-row,.item-left,.item-right,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-right{padding-left:2em;}.source-sidebar-expanded .source .sidebar{max-width:100vw;width:100vw;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.source nav.sub{margin:0;padding:8px;}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}}@media print{nav.sidebar,nav.sub,.out-of-band,a.srclink,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}.sub-logo-container>img{height:35px;width:35px;}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper:before,.scraped-example:not(.expanded) .code-wrapper:after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper:before{top:0;}.scraped-example:not(.expanded) .code-wrapper:after{bottom:0;}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;} \ No newline at end of file diff --git a/static.files/rustdoc-c4dbdcde0fbd8430.css b/static.files/rustdoc-c4dbdcde0fbd8430.css new file mode 100644 index 00000000..afd98f0e --- /dev/null +++ b/static.files/rustdoc-c4dbdcde0fbd8430.css @@ -0,0 +1,8 @@ + @font-face {font-family:'Fira Sans';font-style:normal;font-weight:400;src:local('Fira Sans'),url("FiraSans-Regular-018c141bf0843ffd.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Fira Sans';font-style:normal;font-weight:500;src:local('Fira Sans Medium'),url("FiraSans-Medium-8f9a781e4970d388.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:400;src:local('Source Serif 4'),url("SourceSerif4-Regular-46f98efaafac5295.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:italic;font-weight:400;src:local('Source Serif 4 Italic'),url("SourceSerif4-It-acdfaf1a8af734b1.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Serif 4';font-style:normal;font-weight:700;src:local('Source Serif 4 Bold'),url("SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:400;src:url("SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:italic;font-weight:400;src:url("SourceCodePro-It-1cc31594bf4f1f79.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'Source Code Pro';font-style:normal;font-weight:600;src:url("SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2") format("woff2");font-display:swap;}@font-face {font-family:'NanumBarunGothic';src:url("NanumBarunGothic-0f09457c7a19b7c6.ttf.woff2") format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F,U+A960-A97F,U+D7B0-D7FF;}*{box-sizing:border-box;}html{content:"";}@media (prefers-color-scheme:light){html{content:"light";}}@media (prefers-color-scheme:dark){html{content:"dark";}}body{font:1rem/1.5 "Source Serif 4",NanumBarunGothic,serif;margin:0;position:relative;overflow-wrap:break-word;overflow-wrap:anywhere;font-feature-settings:"kern","liga";background-color:var(--main-background-color);color:var(--main-color);}h1{font-size:1.5rem;}h2{font-size:1.375rem;}h3{font-size:1.25rem;}h1,h2,h3,h4,h5,h6{font-weight:500;}h1,h2,h3,h4{margin:25px 0 15px 0;padding-bottom:6px;}.docblock h3,.docblock h4,h5,h6{margin:15px 0 5px 0;}.docblock>h2:first-child,.docblock>h3:first-child,.docblock>h4:first-child,.docblock>h5:first-child,.docblock>h6:first-child{margin-top:0;}.main-heading h1{margin:0;padding:0;flex-grow:1;overflow-wrap:break-word;overflow-wrap:anywhere;}.main-heading{display:flex;flex-wrap:wrap;padding-bottom:6px;margin-bottom:15px;}.content h2,.top-doc .docblock>h3,.top-doc .docblock>h4{border-bottom:1px solid var(--headings-border-bottom-color);}h1,h2{line-height:1.25;padding-top:3px;padding-bottom:9px;}h3.code-header{font-size:1.125rem;}h4.code-header{font-size:1rem;}.code-header{font-weight:600;margin:0;padding:0;white-space:pre-wrap;}#crate-search,h1,h2,h3,h4,h5,h6,.sidebar,.mobile-topbar,.search-input,.search-results .result-name,.item-name>a,.out-of-band,span.since,a.srclink,#help-button>a,summary.hideme,.scraped-example-list,ul.all-items{font-family:"Fira Sans",Arial,NanumBarunGothic,sans-serif;}#toggle-all-docs,a.anchor,.small-section-header a,#source-sidebar a,pre.rust a,.sidebar h2 a,.sidebar h3 a,.mobile-topbar h2 a,h1 a,.search-results a,.stab,.result-name .primitive>i,.result-name .keyword>i{color:var(--main-color);}.content span.enum,.content a.enum,.content span.struct,.content a.struct,.content span.union,.content a.union,.content span.primitive,.content a.primitive,.content span.type,.content a.type,.content span.foreigntype,.content a.foreigntype{color:var(--type-link-color);}.content span.trait,.content a.trait,.content span.traitalias,.content a.traitalias{color:var(--trait-link-color);}.content span.associatedtype,.content a.associatedtype,.content span.constant,.content a.constant,.content span.static,.content a.static{color:var(--assoc-item-link-color);}.content span.fn,.content a.fn,.content span.method,.content a.method,.content span.tymethod,.content a.tymethod{color:var(--function-link-color);}.content span.attr,.content a.attr,.content span.derive,.content a.derive,.content span.macro,.content a.macro{color:var(--macro-link-color);}.content span.mod,.content a.mod{color:var(--mod-link-color);}.content span.keyword,.content a.keyword{color:var(--keyword-link-color);}a{color:var(--link-color);text-decoration:none;}ol,ul{padding-left:24px;}ul ul,ol ul,ul ol,ol ol{margin-bottom:.625em;}p{margin:0 0 .75em 0;}p:last-child{margin:0;}button{padding:1px 6px;cursor:pointer;}button#toggle-all-docs{padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.rustdoc{display:flex;flex-direction:row;flex-wrap:nowrap;}main{position:relative;flex-grow:1;padding:10px 15px 40px 45px;min-width:0;}.source main{padding:15px;}.width-limiter{max-width:960px;margin-right:auto;}details:not(.toggle) summary{margin-bottom:.6em;}code,pre,a.test-arrow,.code-header{font-family:"Source Code Pro",monospace;}.docblock code,.docblock-short code{border-radius:3px;padding:0 0.125em;}.docblock pre code,.docblock-short pre code{padding:0;}pre{padding:14px;line-height:1.5;}pre.item-decl{overflow-x:auto;}.item-decl .type-contents-toggle{contain:initial;}.source .content pre{padding:20px;}.rustdoc.source .example-wrap>pre.src-line-numbers{padding:20px 0 20px 4px;}img{max-width:100%;}.sub-logo-container,.logo-container{line-height:0;display:block;}.sub-logo-container{margin-right:32px;}.sub-logo-container>img{height:60px;width:60px;object-fit:contain;}.rust-logo{filter:var(--rust-logo-filter);}.sidebar{font-size:0.875rem;flex:0 0 200px;overflow-y:scroll;position:sticky;height:100vh;top:0;left:0;}.rustdoc.source .sidebar{flex-basis:50px;border-right:1px solid;overflow-x:hidden;overflow-y:hidden;}.sidebar,.mobile-topbar,.sidebar-menu-toggle,#src-sidebar-toggle,#source-sidebar{background-color:var(--sidebar-background-color);}#src-sidebar-toggle>button:hover,#src-sidebar-toggle>button:focus{background-color:var(--sidebar-background-color-hover);}.source .sidebar>*:not(#src-sidebar-toggle){visibility:hidden;}.source-sidebar-expanded .source .sidebar{overflow-y:auto;flex-basis:300px;}.source-sidebar-expanded .source .sidebar>*:not(#src-sidebar-toggle){visibility:visible;}#all-types{margin-top:1em;}*{scrollbar-width:initial;scrollbar-color:var(--scrollbar-color);}.sidebar{scrollbar-width:thin;scrollbar-color:var(--scrollbar-color);}::-webkit-scrollbar{width:12px;}.sidebar::-webkit-scrollbar{width:8px;}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0;background-color:var(--scrollbar-track-background-color);}.sidebar::-webkit-scrollbar-track{background-color:var(--scrollbar-track-background-color);}::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb-background-color);}.hidden{display:none !important;}.sidebar .logo-container{margin-top:10px;margin-bottom:10px;text-align:center;}.version{overflow-wrap:break-word;}.logo-container>img{height:100px;width:100px;}ul.block,.block li{padding:0;margin:0;list-style:none;}.sidebar-elems a,.sidebar>h2 a{display:block;padding:0.25rem;margin-left:-0.25rem;}.sidebar h2{overflow-wrap:anywhere;padding:0;margin:0.7rem 0;}.sidebar h3{font-size:1.125rem;padding:0;margin:0;}.sidebar-elems,.sidebar>h2{padding-left:24px;}.sidebar a{color:var(--sidebar-link-color);}.sidebar .current,.sidebar a:hover:not(.logo-container){background-color:var(--sidebar-current-link-background-color);}.sidebar-elems .block{margin-bottom:2em;}.sidebar-elems .block li a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.mobile-topbar{display:none;}.rustdoc .example-wrap{display:flex;position:relative;margin-bottom:10px;}.rustdoc .example-wrap:last-child{margin-bottom:0px;}.rustdoc .example-wrap>pre{margin:0;flex-grow:1;overflow:auto hidden;}.rustdoc .example-wrap>pre.example-line-numbers,.rustdoc .example-wrap>pre.src-line-numbers{flex-grow:0;min-width:fit-content;overflow:initial;text-align:right;-webkit-user-select:none;user-select:none;padding:14px 8px;color:var(--src-line-numbers-span-color);}.rustdoc .example-wrap>pre.src-line-numbers{padding:14px 0;}.src-line-numbers a,.src-line-numbers span{color:var(--src-line-numbers-span-color);padding:0 8px;}.src-line-numbers :target{background-color:transparent;border-right:none;padding:0 8px;}.src-line-numbers .line-highlighted{background-color:var(--src-line-number-highlighted-background-color);}.search-loading{text-align:center;}.docblock-short{overflow-wrap:break-word;overflow-wrap:anywhere;}.docblock :not(pre)>code,.docblock-short code{white-space:pre-wrap;}.top-doc .docblock h2{font-size:1.375rem;}.top-doc .docblock h3{font-size:1.25rem;}.top-doc .docblock h4,.top-doc .docblock h5{font-size:1.125rem;}.top-doc .docblock h6{font-size:1rem;}.docblock h5{font-size:1rem;}.docblock h6{font-size:0.875rem;}.docblock{margin-left:24px;position:relative;}.docblock>:not(.more-examples-toggle):not(.example-wrap){max-width:100%;overflow-x:auto;}.out-of-band{flex-grow:0;font-size:1.125rem;}.docblock code,.docblock-short code,pre,.rustdoc.source .example-wrap{background-color:var(--code-block-background-color);}#main-content{position:relative;}.docblock table{margin:.5em 0;border-collapse:collapse;}.docblock table td,.docblock table th{padding:.5em;border:1px solid var(--border-color);}.docblock table tbody tr:nth-child(2n){background:var(--table-alt-row-background-color);}.method .where,.fn .where,.where.fmt-newline{display:block;white-space:pre-wrap;font-size:0.875rem;}.item-info{display:block;margin-left:24px;}.item-info code{font-size:0.875rem;}#main-content>.item-info{margin-left:0;}nav.sub{flex-grow:1;flex-flow:row nowrap;margin:4px 0 25px 0;display:flex;align-items:center;}.search-form{position:relative;display:flex;height:34px;flex-grow:1;}.source nav.sub{margin:0 0 15px 0;}.small-section-header{display:block;position:relative;}.small-section-header:hover>.anchor,.impl:hover>.anchor,.trait-impl:hover>.anchor,.variant:hover>.anchor{display:initial;}.anchor{display:none;position:absolute;left:-0.5em;background:none !important;}.anchor.field{left:-5px;}.small-section-header>.anchor{left:-15px;padding-right:8px;}h2.small-section-header>.anchor{padding-right:6px;}.main-heading a:hover,.example-wrap>pre.rust a:hover,.all-items a:hover,.docblock a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.docblock-short a:not(.test-arrow):not(.scrape-help):not(.tooltip):hover,.item-info a{text-decoration:underline;}.crate.block a.current{font-weight:500;}table,.item-table{overflow-wrap:break-word;}.item-table{display:table;padding:0;margin:0;}.item-table>li{display:table-row;}.item-table>li>div{display:table-cell;}.item-table>li>.item-name{padding-right:1.25rem;}.search-results-title{margin-top:0;white-space:nowrap;display:flex;align-items:baseline;}#crate-search-div{position:relative;min-width:5em;}#crate-search{min-width:115px;padding:0 23px 0 4px;max-width:100%;text-overflow:ellipsis;border:1px solid var(--border-color);border-radius:4px;outline:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;text-indent:0.01px;background-color:var(--main-background-color);color:inherit;line-height:1.5;font-weight:500;}#crate-search:hover,#crate-search:focus{border-color:var(--crate-search-hover-border);}@-moz-document url-prefix(){#crate-search{padding-left:0px;padding-right:19px;}}#crate-search-div::after{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;content:"";background-repeat:no-repeat;background-size:20px;background-position:calc(100% - 2px) 56%;background-image:url('data:image/svg+xml, \ + ');filter:var(--crate-search-div-filter);}#crate-search-div:hover::after,#crate-search-div:focus-within::after{filter:var(--crate-search-div-hover-filter);}#crate-search>option{font-size:1rem;}.search-input{-webkit-appearance:none;outline:none;border:1px solid var(--border-color);border-radius:2px;padding:8px;font-size:1rem;flex-grow:1;background-color:var(--button-background-color);color:var(--search-color);}.search-input:focus{border-color:var(--search-input-focused-border-color);}.search-results{display:none;}.search-results.active{display:block;}.search-results>a{display:flex;margin-left:2px;margin-right:2px;border-bottom:1px solid var(--search-result-border-color);gap:1em;}.search-results>a>div{flex:1;}.search-results>a>div.desc{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.search-results a:hover,.search-results a:focus{background-color:var(--search-result-link-focus-background-color);}.search-results .result-name span.alias{color:var(--search-results-alias-color);}.search-results .result-name span.grey{color:var(--search-results-grey-color);}.popover{position:absolute;top:100%;right:0;z-index:2;margin-top:7px;border-radius:3px;border:1px solid var(--border-color);background-color:var(--main-background-color);color:var(--main-color);--popover-arrow-offset:11px;}.popover::before{content:'';position:absolute;right:var(--popover-arrow-offset);border:solid var(--border-color);border-width:1px 1px 0 0;background-color:var(--main-background-color);padding:4px;transform:rotate(-45deg);top:-5px;}#help.popover{max-width:600px;--popover-arrow-offset:48px;}#help dt{float:left;clear:left;margin-right:0.5rem;}#help span.top,#help span.bottom{text-align:center;display:block;font-size:1.125rem;}#help span.top{margin:10px 0;border-bottom:1px solid var(--border-color);padding-bottom:4px;margin-bottom:6px;}#help span.bottom{clear:both;border-top:1px solid var(--border-color);}.side-by-side>div{width:50%;float:left;padding:0 20px 20px 17px;}.item-info .stab{min-height:36px;display:flex;padding:3px;margin-bottom:5px;}.item-name .stab{margin-left:0.3125em;}.stab{padding:0 2px;font-size:0.875rem;font-weight:normal;color:var(--main-color);background-color:var(--stab-background-color);width:fit-content;align-items:center;white-space:pre-wrap;border-radius:3px;display:inline-flex;vertical-align:text-bottom;}.stab.portability>code{background:none;color:var(--stab-code-color);}.stab .emoji{font-size:1.25rem;margin-right:0.3rem;}.emoji{text-shadow:1px 0 0 black,-1px 0 0 black,0 1px 0 black,0 -1px 0 black;}.since{font-weight:normal;font-size:initial;}.rightside{padding-left:12px;float:right;}.rightside:not(a),.out-of-band{color:var(--right-side-color);}pre.rust{tab-size:4;-moz-tab-size:4;}pre.rust .kw{color:var(--code-highlight-kw-color);}pre.rust .kw-2{color:var(--code-highlight-kw-2-color);}pre.rust .lifetime{color:var(--code-highlight-lifetime-color);}pre.rust .prelude-ty{color:var(--code-highlight-prelude-color);}pre.rust .prelude-val{color:var(--code-highlight-prelude-val-color);}pre.rust .string{color:var(--code-highlight-string-color);}pre.rust .number{color:var(--code-highlight-number-color);}pre.rust .bool-val{color:var(--code-highlight-literal-color);}pre.rust .self{color:var(--code-highlight-self-color);}pre.rust .attr{color:var(--code-highlight-attribute-color);}pre.rust .macro,pre.rust .macro-nonterminal{color:var(--code-highlight-macro-color);}pre.rust .question-mark{font-weight:bold;color:var(--code-highlight-question-mark-color);}pre.rust .comment{color:var(--code-highlight-comment-color);}pre.rust .doccomment{color:var(--code-highlight-doc-comment-color);}.rustdoc.source .example-wrap pre.rust a{background:var(--codeblock-link-background);}.example-wrap.compile_fail,.example-wrap.should_panic{border-left:2px solid var(--codeblock-error-color);}.ignore.example-wrap{border-left:2px solid var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover,.example-wrap.should_panic:hover{border-left:2px solid var(--codeblock-error-hover-color);}.example-wrap.ignore:hover{border-left:2px solid var(--codeblock-ignore-hover-color);}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip{color:var(--codeblock-error-color);}.example-wrap.ignore .tooltip{color:var(--codeblock-ignore-color);}.example-wrap.compile_fail:hover .tooltip,.example-wrap.should_panic:hover .tooltip{color:var(--codeblock-error-hover-color);}.example-wrap.ignore:hover .tooltip{color:var(--codeblock-ignore-hover-color);}.example-wrap .tooltip{position:absolute;display:block;left:-25px;top:5px;margin:0;line-height:1;}.example-wrap.compile_fail .tooltip,.example-wrap.should_panic .tooltip,.example-wrap.ignore .tooltip{font-weight:bold;font-size:1.25rem;}a.test-arrow{visibility:hidden;position:absolute;padding:5px 10px 5px 10px;border-radius:5px;font-size:1.375rem;top:5px;right:5px;z-index:1;color:var(--test-arrow-color);background-color:var(--test-arrow-background-color);}a.test-arrow:hover{color:var(--test-arrow-hover-color);background-color:var(--test-arrow-hover-background-color);}.example-wrap:hover .test-arrow{visibility:visible;}.code-attribute{font-weight:300;color:var(--code-attribute-color);}.item-spacer{width:100%;height:12px;display:block;}.out-of-band>span.since{font-size:1.25rem;}.sub-variant h4{font-size:1rem;font-weight:400;margin-top:0;margin-bottom:0;}.sub-variant{margin-left:24px;margin-bottom:40px;}.sub-variant>.sub-variant-field{margin-left:24px;}:target{padding-right:3px;background-color:var(--target-background-color);border-right:3px solid var(--target-border-color);}.code-header a.tooltip{color:inherit;margin-right:15px;position:relative;}a.tooltip:hover::after{position:absolute;top:calc(100% - 10px);left:-15px;right:-15px;height:20px;content:"\00a0";}.popover.tooltip .content{margin:0.25em 0.5em;}.popover.tooltip .content pre,.popover.tooltip .content code{background:transparent;margin:0;padding:0;font-size:1.25rem;white-space:pre-wrap;}.popover.tooltip .content>h3:first-child{margin:0 0 5px 0;}.search-failed{text-align:center;margin-top:20px;display:none;}.search-failed.active{display:block;}.search-failed>ul{text-align:left;max-width:570px;margin-left:auto;margin-right:auto;}#search-tabs{display:flex;flex-direction:row;gap:1px;margin-bottom:4px;}#search-tabs button{text-align:center;font-size:1.125rem;border:0;border-top:2px solid;flex:1;line-height:1.5;color:inherit;}#search-tabs button:not(.selected){background-color:var(--search-tab-button-not-selected-background);border-top-color:var(--search-tab-button-not-selected-border-top-color);}#search-tabs button:hover,#search-tabs button.selected{background-color:var(--search-tab-button-selected-background);border-top-color:var(--search-tab-button-selected-border-top-color);}#search-tabs .count{font-size:1rem;color:var(--search-tab-title-count-color);}#search .error code{border-radius:3px;background-color:var(--search-error-code-background-color);}#src-sidebar-toggle{position:sticky;top:0;left:0;font-size:1.25rem;border-bottom:1px solid;display:flex;height:40px;justify-content:stretch;align-items:stretch;z-index:10;}#source-sidebar{width:100%;overflow:auto;}#source-sidebar>.title{font-size:1.5rem;text-align:center;border-bottom:1px solid var(--border-color);margin-bottom:6px;}#source-sidebar div.files>a:hover,details.dir-entry summary:hover,#source-sidebar div.files>a:focus,details.dir-entry summary:focus{background-color:var(--source-sidebar-background-hover);}#source-sidebar div.files>a.selected{background-color:var(--source-sidebar-background-selected);}#src-sidebar-toggle>button{font-size:inherit;font-weight:bold;background:none;color:inherit;text-align:center;border:none;outline:none;flex:1 1;-webkit-appearance:none;opacity:1;}#settings-menu,#help-button{margin-left:4px;display:flex;}#settings-menu>a,#help-button>a{display:flex;align-items:center;justify-content:center;background-color:var(--button-background-color);border:1px solid var(--border-color);border-radius:2px;color:var(--settings-button-color);font-size:20px;width:33px;}#settings-menu>a:hover,#settings-menu>a:focus,#help-button>a:hover,#help-button>a:focus{border-color:var(--settings-button-border-focus);}#copy-path{color:var(--copy-path-button-color);background:var(--main-background-color);height:34px;margin-left:10px;padding:0;padding-left:2px;border:0;width:33px;}#copy-path>img{filter:var(--copy-path-img-filter);}#copy-path:hover>img{filter:var(--copy-path-img-hover-filter);}@keyframes rotating{from{transform:rotate(0deg);}to{transform:rotate(360deg);}}#settings-menu.rotate>a img{animation:rotating 2s linear infinite;}kbd{display:inline-block;padding:3px 5px;font:15px monospace;line-height:10px;vertical-align:middle;border:solid 1px var(--border-color);border-radius:3px;color:var(--kbd-color);background-color:var(--kbd-background);box-shadow:inset 0 -1px 0 var(--kbd-box-shadow-color);}ul.all-items>li{list-style:none;}details.dir-entry{padding-left:4px;}details.dir-entry>summary{margin:0 0 0 -4px;padding:0 0 0 4px;cursor:pointer;}details.dir-entry div.folders,details.dir-entry div.files{padding-left:23px;}details.dir-entry a{display:block;}details.toggle{contain:layout;position:relative;}details.toggle>summary.hideme{cursor:pointer;font-size:1rem;}details.toggle>summary{list-style:none;outline:none;}details.toggle>summary::-webkit-details-marker,details.toggle>summary::marker{display:none;}details.toggle>summary.hideme>span{margin-left:9px;}details.toggle>summary::before{background:url('data:image/svg+xml,') no-repeat top left;content:"";cursor:pointer;width:16px;height:16px;display:inline-block;vertical-align:middle;opacity:.5;filter:var(--toggle-filter);}details.toggle>summary.hideme>span,.more-examples-toggle summary,.more-examples-toggle .hide-more{color:var(--toggles-color);}details.toggle>summary::after{content:"Expand";overflow:hidden;width:0;height:0;position:absolute;}details.toggle>summary.hideme::after{content:"";}details.toggle>summary:focus::before,details.toggle>summary:hover::before{opacity:1;}details.toggle>summary:focus-visible::before{outline:1px dotted #000;outline-offset:1px;}details.non-exhaustive{margin-bottom:8px;}details.toggle>summary.hideme::before{position:relative;}details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;top:4px;}.impl-items>details.toggle>summary:not(.hideme)::before{position:absolute;left:-24px;}details.toggle[open] >summary.hideme{position:absolute;}details.toggle[open] >summary.hideme>span{display:none;}details.toggle[open] >summary::before{background:url('data:image/svg+xml,') no-repeat top left;}details.toggle[open] >summary::after{content:"Collapse";}.docblock summary>*{display:inline-block;}.docblock>.example-wrap:first-child .tooltip{margin-top:16px;}@media (max-width:700px){*[id]{scroll-margin-top:45px;}.rustdoc{display:block;}main{padding-left:15px;padding-top:0px;}.main-heading{flex-direction:column;}.out-of-band{text-align:left;margin-left:initial;padding:initial;}.out-of-band .since::before{content:"Since ";}.sidebar .logo-container,.sidebar .location{display:none;}.sidebar{position:fixed;top:45px;left:-1000px;z-index:11;height:calc(100vh - 45px);width:200px;}.source main,.rustdoc.source .sidebar{top:0;padding:0;height:100vh;border:0;}.sidebar.shown,.source-sidebar-expanded .source .sidebar,.rustdoc:not(.source) .sidebar:focus-within{left:0;}.mobile-topbar h2{padding-bottom:0;margin:auto 0.5em auto auto;overflow:hidden;font-size:24px;}.mobile-topbar h2 a{display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.mobile-topbar .logo-container>img{max-width:35px;max-height:35px;margin:5px 0 5px 20px;}.mobile-topbar{display:flex;flex-direction:row;position:sticky;z-index:10;font-size:2rem;height:45px;width:100%;left:0;top:0;}.sidebar-menu-toggle{width:45px;font-size:32px;border:none;color:var(--main-color);}.sidebar-elems{margin-top:1em;}.anchor{display:none !important;}#search-tabs .count{display:block;}#main-content>details.toggle>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}#src-sidebar-toggle{position:fixed;left:1px;top:100px;width:30px;font-size:1.5rem;padding:0;z-index:10;border-top-right-radius:3px;border-bottom-right-radius:3px;border:1px solid;border-left:0;}.source-sidebar-expanded #src-sidebar-toggle{left:unset;top:unset;width:unset;border-top-right-radius:unset;border-bottom-right-radius:unset;position:sticky;border:0;border-bottom:1px solid;}#copy-path,#help-button{display:none;}.item-table,.item-row,.item-table>li,.item-table>li>div,.search-results>a,.search-results>a>div{display:block;}.search-results>a{padding:5px 0px;}.search-results>a>div.desc,.item-table>li>div.desc{padding-left:2em;}.source-sidebar-expanded .source .sidebar{max-width:100vw;width:100vw;}details.toggle:not(.top-doc)>summary{margin-left:10px;}.impl-items>details.toggle>summary:not(.hideme)::before,#main-content>details.toggle:not(.top-doc)>summary::before,#main-content>div>details.toggle>summary::before{left:-11px;}.impl-items>.item-info{margin-left:34px;}.source nav.sub{margin:0;padding:8px;}}@media (min-width:701px){.scraped-example-title{position:absolute;z-index:10;background:var(--main-background-color);bottom:8px;right:5px;padding:2px 4px;box-shadow:0 0 4px var(--main-background-color);}}@media print{nav.sidebar,nav.sub,.out-of-band,a.srclink,#copy-path,details.toggle[open] >summary::before,details.toggle>summary::before,details.toggle.top-doc>summary{display:none;}.docblock{margin-left:0;}main{padding:10px;}}@media (max-width:464px){.docblock{margin-left:12px;}.docblock code{overflow-wrap:break-word;overflow-wrap:anywhere;}nav.sub{flex-direction:column;}.search-form{align-self:stretch;}.sub-logo-container>img{height:35px;width:35px;}}.variant,.implementors-toggle>summary,.impl,#implementors-list>.docblock,.impl-items>section,.impl-items>.toggle>summary,.methods>section,.methods>.toggle>summary{margin-bottom:0.75em;}.variants>.docblock,.implementors-toggle>.docblock,.impl-items>.toggle[open]:not(:last-child),.methods>.toggle[open]:not(:last-child),.implementors-toggle[open]:not(:last-child){margin-bottom:2em;}#trait-implementations-list .impl-items>.toggle:not(:last-child),#synthetic-implementations-list .impl-items>.toggle:not(:last-child),#blanket-implementations-list .impl-items>.toggle:not(:last-child){margin-bottom:1em;}.scraped-example-list .scrape-help{margin-left:10px;padding:0 4px;font-weight:normal;font-size:12px;position:relative;bottom:1px;border:1px solid var(--scrape-example-help-border-color);border-radius:50px;color:var(--scrape-example-help-color);}.scraped-example-list .scrape-help:hover{border-color:var(--scrape-example-help-hover-border-color);color:var(--scrape-example-help-hover-color);}.scraped-example{position:relative;}.scraped-example .code-wrapper{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;}.scraped-example:not(.expanded) .code-wrapper{max-height:calc(1.5em * 5 + 10px);}.scraped-example:not(.expanded) .code-wrapper pre{overflow-y:hidden;padding-bottom:0;max-height:calc(1.5em * 5 + 10px);}.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper,.more-scraped-examples .scraped-example:not(.expanded) .code-wrapper pre{max-height:calc(1.5em * 10 + 10px);}.scraped-example .code-wrapper .next,.scraped-example .code-wrapper .prev,.scraped-example .code-wrapper .expand{color:var(--main-color);position:absolute;top:0.25em;z-index:1;padding:0;background:none;border:none;-webkit-appearance:none;opacity:1;}.scraped-example .code-wrapper .prev{right:2.25em;}.scraped-example .code-wrapper .next{right:1.25em;}.scraped-example .code-wrapper .expand{right:0.25em;}.scraped-example:not(.expanded) .code-wrapper::before,.scraped-example:not(.expanded) .code-wrapper::after{content:" ";width:100%;height:5px;position:absolute;z-index:1;}.scraped-example:not(.expanded) .code-wrapper::before{top:0;background:linear-gradient(to bottom,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example:not(.expanded) .code-wrapper::after{bottom:0;background:linear-gradient(to top,var(--scrape-example-code-wrapper-background-start),var(--scrape-example-code-wrapper-background-end));}.scraped-example .code-wrapper .example-wrap{width:100%;overflow-y:hidden;margin-bottom:0;}.scraped-example:not(.expanded) .code-wrapper .example-wrap{overflow-x:hidden;}.scraped-example .example-wrap .rust span.highlight{background:var(--scrape-example-code-line-highlight);}.scraped-example .example-wrap .rust span.highlight.focus{background:var(--scrape-example-code-line-highlight-focus);}.more-examples-toggle{max-width:calc(100% + 25px);margin-top:10px;margin-left:-25px;}.more-examples-toggle .hide-more{margin-left:25px;cursor:pointer;}.more-scraped-examples{margin-left:25px;position:relative;}.toggle-line{position:absolute;top:5px;bottom:0;right:calc(100% + 10px);padding:0 4px;cursor:pointer;}.toggle-line-inner{min-width:2px;height:100%;background:var(--scrape-example-toggle-line-background);}.toggle-line:hover .toggle-line-inner{background:var(--scrape-example-toggle-line-hover-background);}.more-scraped-examples .scraped-example,.example-links{margin-top:20px;}.more-scraped-examples .scraped-example:first-child{margin-top:5px;}.example-links ul{margin-bottom:0;} \ No newline at end of file diff --git a/static.files/search-8a59a8356673ec1f.js b/static.files/search-8a59a8356673ec1f.js new file mode 100644 index 00000000..c8963b3b --- /dev/null +++ b/static.files/search-8a59a8356673ec1f.js @@ -0,0 +1 @@ +"use strict";(function(){const itemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias",];const TY_PRIMITIVE=itemTypes.indexOf("primitive");const TY_KEYWORD=itemTypes.indexOf("keyword");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";function hasOwnPropertyRustdoc(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)}function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("search-tabs").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb}else if(nb!==0){printTab(0)}}const levenshtein_row2=[];function levenshtein(s1,s2){if(s1===s2){return 0}const s1_len=s1.length,s2_len=s2.length;if(s1_len&&s2_len){let i1=0,i2=0,a,b,c,c2;const row=levenshtein_row2;while(i1-".indexOf(c)!==-1}function isStopCharacter(c){return isWhitespace(c)||isEndCharacter(c)}function isErrorCharacter(c){return"()".indexOf(c)!==-1}function itemTypeFromName(typename){const index=itemTypes.findIndex(i=>i===typename);if(index<0){throw["Unknown type filter ",typename]}return index}function getStringElem(query,parserState,isInGenerics){if(isInGenerics){throw["Unexpected ","\""," in generics"]}else if(query.literalSearch){throw["Cannot have more than one literal search element"]}else if(parserState.totalElems-parserState.genericsElems>0){throw["Cannot use literal search when there is more than one element"]}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw["Unclosed ","\""]}else if(parserState.userQuery[end]!=="\""){throw["Unexpected ",parserState.userQuery[end]," in a string element"]}else if(start===end){throw["Cannot have empty string element"]}parserState.pos+=1;query.literalSearch=true}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function isIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}function isSeparatorCharacter(c){return c===","||isWhitespaceCharacter(c)}function isWhitespaceCharacter(c){return c===" "||c==="\t"}function createQueryElement(query,parserState,name,generics,isInGenerics){if(name==="*"||(name.length===0&&generics.length===0)){return}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){throw["You cannot have more than one element if you use quotes"]}const pathSegments=name.split("::");if(pathSegments.length>1){for(let i=0,len=pathSegments.length;i=end){throw["Found generics without a path"]}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}if(start>=end&&generics.length===0){return}elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics))}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;while(parserState.pos"){extra="<"}else if(endChar===""){extra="->"}else{extra=endChar}throw["Unexpected ",c," after ",extra]}if(!foundStopChar){if(endChar!==""){throw["Expected ",",",", "," "," or ",endChar,", found ",c,]}throw["Expected ",","," or "," ",", found ",c,]}const posBefore=parserState.pos;getNextElem(query,parserState,elems,endChar===">");if(endChar!==""){if(parserState.pos>=parserState.length){throw["Unclosed ","<"]}const c2=parserState.userQuery[parserState.pos];if(!isSeparatorCharacter(c2)&&c2!==endChar){throw["Expected ",endChar,", found ",c2]}}if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}if(parserState.pos>=parserState.length&&endChar!==""){throw["Unclosed ","<"]}parserState.pos+=1}function checkExtraTypeFilterCharacters(parserState){const query=parserState.userQuery;for(let pos=0;pos"){if(isReturnArrow(parserState)){break}throw["Unexpected ",c," (did you mean ","->","?)"]}throw["Unexpected ",c]}else if(c===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw["Unexpected ",":"]}if(query.elems.length===0){throw["Expected type filter before ",":"]}else if(query.elems.length!==1||parserState.totalElems!==1){throw["Unexpected ",":"]}else if(query.literalSearch){throw["You cannot use quotes on type filter"]}checkExtraTypeFilterCharacters(parserState);parserState.typeFilter=query.elems.pop().name;parserState.pos+=1;parserState.totalElems=0;query.literalSearch=false;foundStopChar=true;continue}if(!foundStopChar){if(parserState.typeFilter!==null){throw["Expected ",",",", "," "," or ","->",", found ",c,]}throw["Expected ",",",", "," ",", ",":"," or ","->",", found ",c,]}const before=query.elems.length;getNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}while(parserState.pos"]}break}else{parserState.pos+=1}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),typeFilter:NO_TYPE_FILTER,elems:[],returned:[],foundElems:0,literalSearch:false,error:null,}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&hasOwnPropertyRustdoc(rawSearchIndex,elem.value)){return elem.value}return null}function parseQuery(userQuery){userQuery=userQuery.trim();const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);if(parserState.typeFilter!==null){let typeFilter=parserState.typeFilter;if(typeFilter==="const"){typeFilter="constant"}query.typeFilter=itemTypeFromName(typeFilter)}}catch(err){query=newParsedQuery(userQuery);query.error=err;query.typeFilter=-1;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;return query}function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}function execQuery(parsedQuery,searchWords,filterCrates,currentCrate){const results_others={},results_in_args={},results_returned={};function transformResults(results){const duplicates={};const out=[];for(const result of results){if(result.id>-1){const obj=searchIndex[result.id];obj.lev=result.lev;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;if(duplicates[obj.fullPath]){continue}duplicates[obj.fullPath]=true;obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out}function sortResults(results,isType,preferredCrate){const userQuery=parsedQuery.userQuery;const ar=[];for(const entry in results){if(hasOwnPropertyRustdoc(results,entry)){const result=results[entry];result.word=searchWords[result.id];result.item=searchIndex[result.id]||{};ar.push(result)}}results=ar;if(results.length===0){return[]}results.sort((aaa,bbb)=>{let a,b;a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.path_lev;b=bbb.path_lev;if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}a=(aaa.lev);b=(bbb.lev);if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}if((aaa.item.ty===TY_PRIMITIVE&&bbb.item.ty!==TY_KEYWORD)||(aaa.item.ty===TY_KEYWORD&&bbb.item.ty!==TY_PRIMITIVE)){return-1}if((bbb.item.ty===TY_PRIMITIVE&&aaa.item.ty!==TY_PRIMITIVE)||(bbb.item.ty===TY_KEYWORD&&aaa.item.ty!==TY_KEYWORD)){return 1}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});let nameSplit=null;if(parsedQuery.elems.length===1){const hasPath=typeof parsedQuery.elems[0].path==="undefined";nameSplit=hasPath?null:parsedQuery.elems[0].path}for(const result of results){if(result.dontValidate){continue}const name=result.item.name.toLowerCase(),path=result.item.path.toLowerCase(),parent=result.item.parent;if(!isType&&!validateResult(name,path,nameSplit,parent)){result.id=-1}}return transformResults(results)}function checkGenerics(row,elem,defaultLev,maxLevDistance){if(row.generics.length===0){return elem.generics.length===0?defaultLev:maxLevDistance+1}else if(row.generics.length>0&&row.generics[0].name===null){return checkGenerics(row.generics[0],elem,defaultLev,maxLevDistance)}let elem_name;if(elem.generics.length>0&&row.generics.length>=elem.generics.length){const elems=Object.create(null);for(const entry of row.generics){elem_name=entry.name;if(elem_name===""){if(checkGenerics(entry,elem,maxLevDistance+1,maxLevDistance)!==0){return maxLevDistance+1}continue}if(elems[elem_name]===undefined){elems[elem_name]=0}elems[elem_name]+=1}for(const generic of elem.generics){let match=null;if(elems[generic.name]){match=generic.name}else{for(elem_name in elems){if(!hasOwnPropertyRustdoc(elems,elem_name)){continue}if(elem_name===generic){match=elem_name;break}}}if(match===null){return maxLevDistance+1}elems[match]-=1;if(elems[match]===0){delete elems[match]}}return 0}return maxLevDistance+1}function checkIfInGenerics(row,elem,maxLevDistance){let lev=maxLevDistance+1;for(const entry of row.generics){lev=Math.min(checkType(entry,elem,true,maxLevDistance),lev);if(lev===0){break}}return lev}function checkType(row,elem,literalSearch,maxLevDistance){if(row.name===null){if(row.generics.length>0){return checkIfInGenerics(row,elem,maxLevDistance)}return maxLevDistance+1}let lev=levenshtein(row.name,elem.name);if(literalSearch){if(lev!==0){if(elem.generics.length===0){const checkGeneric=row.generics.length>0;if(checkGeneric&&row.generics.findIndex(tmp_elem=>tmp_elem.name===elem.name)!==-1){return 0}}return maxLevDistance+1}else if(elem.generics.length>0){return checkGenerics(row,elem,maxLevDistance+1,maxLevDistance)}return 0}else if(row.generics.length>0){if(elem.generics.length===0){if(lev===0){return 0}lev=Math.min(lev,checkIfInGenerics(row,elem,maxLevDistance));return lev}else if(lev>maxLevDistance){return checkIfInGenerics(row,elem,maxLevDistance)}else{const tmp_lev=checkGenerics(row,elem,lev,maxLevDistance);if(tmp_lev>maxLevDistance){return maxLevDistance+1}return(tmp_lev+lev)/2}}else if(elem.generics.length>0){return maxLevDistance+1}return lev}function findArg(row,elem,typeFilter,maxLevDistance){let lev=maxLevDistance+1;if(row&&row.type&&row.type.inputs&&row.type.inputs.length>0){for(const input of row.type.inputs){if(!typePassesFilter(typeFilter,input.ty)){continue}lev=Math.min(lev,checkType(input,elem,parsedQuery.literalSearch,maxLevDistance));if(lev===0){return 0}}}return parsedQuery.literalSearch?maxLevDistance+1:lev}function checkReturned(row,elem,typeFilter,maxLevDistance){let lev=maxLevDistance+1;if(row&&row.type&&row.type.output.length>0){const ret=row.type.output;for(const ret_ty of ret){if(!typePassesFilter(typeFilter,ret_ty.ty)){continue}lev=Math.min(lev,checkType(ret_ty,elem,parsedQuery.literalSearch,maxLevDistance));if(lev===0){return 0}}}return parsedQuery.literalSearch?maxLevDistance+1:lev}function checkPath(contains,ty,maxLevDistance){if(contains.length===0){return 0}let ret_lev=maxLevDistance+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;if(clength>length){return maxLevDistance+1}for(let i=0;ilength){break}let lev_total=0;let aborted=false;for(let x=0;xmaxLevDistance){aborted=true;break}lev_total+=lev}if(!aborted){ret_lev=Math.min(ret_lev,Math.round(lev_total/clength))}}return ret_lev}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,}}function handleAliases(ret,query,filterCrates,currentCrate){const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(ALIASES[filterCrates]&&ALIASES[filterCrates][lowerQuery]){const query_aliases=ALIASES[filterCrates][lowerQuery];for(const alias of query_aliases){aliases.push(createAliasFromItem(searchIndex[alias]))}}}else{Object.keys(ALIASES).forEach(crate=>{if(ALIASES[crate][lowerQuery]){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=ALIASES[crate][lowerQuery];for(const alias of query_aliases){pushTo.push(createAliasFromItem(searchIndex[alias]))}}})}const sortFunc=(aaa,bbb)=>{if(aaa.path{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach(pushFunc);crateAliases.forEach(pushFunc)}function addIntoResults(results,fullId,id,index,lev,path_lev,maxLevDistance){const inBounds=lev<=maxLevDistance||index!==-1;if(lev===0||(!parsedQuery.literalSearch&&inBounds)){if(results[fullId]!==undefined){const result=results[fullId];if(result.dontValidate||result.lev<=lev){return}}results[fullId]={id:id,index:index,dontValidate:parsedQuery.literalSearch,lev:lev,path_lev:path_lev,}}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned,maxLevDistance){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let lev,index=-1,path_lev=0;const fullId=row.id;const searchWord=searchWords[pos];const in_args=findArg(row,elem,parsedQuery.typeFilter,maxLevDistance);const returned=checkReturned(row,elem,parsedQuery.typeFilter,maxLevDistance);addIntoResults(results_in_args,fullId,pos,-1,in_args,0,maxLevDistance);addIntoResults(results_returned,fullId,pos,-1,returned,0,maxLevDistance);if(!typePassesFilter(parsedQuery.typeFilter,row.ty)){return}const row_index=row.normalizedName.indexOf(elem.pathLast);const word_index=searchWord.indexOf(elem.pathLast);if(row_index===-1){index=word_index}else if(word_index===-1){index=row_index}else if(word_index1){path_lev=checkPath(elem.pathWithoutLast,row,maxLevDistance);if(path_lev>maxLevDistance){return}}if(parsedQuery.literalSearch){if(searchWord===elem.name){addIntoResults(results_others,fullId,pos,index,0,path_lev)}return}lev=levenshtein(searchWord,elem.pathLast);if(index===-1&&lev+path_lev>maxLevDistance){return}addIntoResults(results_others,fullId,pos,index,lev,path_lev,maxLevDistance)}function handleArgs(row,pos,results,maxLevDistance){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let totalLev=0;let nbLev=0;function checkArgs(elems,callback){for(const elem of elems){const lev=callback(row,elem,NO_TYPE_FILTER,maxLevDistance);if(lev<=1){nbLev+=1;totalLev+=lev}else{return false}}return true}if(!checkArgs(parsedQuery.elems,findArg)){return}if(!checkArgs(parsedQuery.returned,checkReturned)){return}if(nbLev===0){return}const lev=Math.round(totalLev/nbLev);addIntoResults(results,row.id,pos,0,lev,0,maxLevDistance)}function innerRunQuery(){let elem,i,nSearchWords,in_returned,row;let queryLen=0;for(const elem of parsedQuery.elems){queryLen+=elem.name.length}for(const elem of parsedQuery.returned){queryLen+=elem.name.length}const maxLevDistance=Math.floor(queryLen/3);if(parsedQuery.foundElems===1){if(parsedQuery.elems.length===1){elem=parsedQuery.elems[0];for(i=0,nSearchWords=searchWords.length;i0){for(i=0,nSearchWords=searchWords.length;i-1||path.indexOf(key)>-1||(parent!==undefined&&parent.name!==undefined&&parent.name.toLowerCase().indexOf(key)>-1)||levenshtein(name,key)<=maxLevDistance)){return false}}return true}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#search-tabs button").item(searchState.currentTab);searchState.focusedByTab[searchState.currentTab]=null;if(target){target.focus()}}function buildHrefAndPath(item){let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;if(type==="mod"){displayPath=path+"::";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=ROOT_PATH+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor="#"+type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="#variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}href=ROOT_PATH+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html"+anchor}else{displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href]}function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){let extraClass="";if(display===true){extraClass=" active"}const output=document.createElement("div");let length=0;if(array.length>0){output.className="search-results "+extraClass;array.forEach(item=>{const name=item.name;const type=itemTypes[item.ty];length+=1;let extra="";if(type==="primitive"){extra=" (primitive type)"}else if(type==="keyword"){extra=" (keyword)"}const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const resultName=document.createElement("div");resultName.className="result-name";if(item.is_alias){const alias=document.createElement("span");alias.className="alias";const bold=document.createElement("b");bold.innerText=item.alias;alias.appendChild(bold);alias.insertAdjacentHTML("beforeend"," - see ");resultName.appendChild(alias)}resultName.insertAdjacentHTML("beforeend",item.displayPath+""+name+extra+"");link.appendChild(resultName);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)})}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
    "+"Try on DuckDuckGo?

    "+"Or try looking in one of these:"}return[output,length]}function makeTabHeader(tabNb,text,nbElems){if(searchState.currentTab===tabNb){return""}return""}function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true"&&(!search.firstChild||search.firstChild.innerText!==searchState.loadingText))){const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const ret_others=addTab(results.others,results.query,true);const ret_in_args=addTab(results.in_args,results.query,false);const ret_returned=addTab(results.returned,results.query,false);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";const crates_list=Object.keys(rawSearchIndex);if(crates_list.length>1){crates=" in 
    "}let output=`

    Results${crates}

    `;if(results.query.error!==null){const error=results.query.error;error.forEach((value,index)=>{value=value.split("<").join("<").split(">").join(">");if(index%2!==0){error[index]=`${value}`}else{error[index]=value}});output+=`

    Query parser error: "${error.join("")}".

    `;output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+"
    ";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
    "}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
    "+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
    ";currentTab=0}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function search(e,forced){if(e){e.preventDefault()}const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";if(browserSupportsHistoryApi()){const newURL=buildUrl(query.original,filterCrates);if(!history.state&&!params.search){history.pushState(null,"",newURL)}else{history.replaceState(null,"",newURL)}}showResults(execQuery(query,searchWords,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;return types.map(type=>{let pathIndex,generics;if(typeof type==="number"){pathIndex=type;generics=[]}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths)}return{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:generics,}})}function buildFunctionSearchType(functionSearchType,lowercasePaths){const INPUTS_DATA=0;const OUTPUT_DATA=1;if(functionSearchType===0){return null}let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){const pathIndex=functionSearchType[INPUTS_DATA];inputs=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){const pathIndex=functionSearchType[OUTPUT_DATA];output=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths)}}else{output=[]}return{inputs,output,}}function buildIndex(rawSearchIndex){searchIndex=[];const searchWords=[];const charA="A".charCodeAt(0);let currentIndex=0;let id=0;for(const crate in rawSearchIndex){if(!hasOwnPropertyRustdoc(rawSearchIndex,crate)){continue}let crateSize=0;const crateCorpus=rawSearchIndex[crate];searchWords.push(crate);const crateRow={crate:crate,ty:1,name:crate,path:"",desc:crateCorpus.doc,parent:undefined,type:null,id:id,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),};id+=1;searchIndex.push(crateRow);currentIndex+=1;const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=crateCorpus.q;const itemDescs=crateCorpus.d;const itemParentIdxs=crateCorpus.i;const itemFunctionSearchTypes=crateCorpus.f;const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];let len=paths.length;for(let i=0;i0?paths[itemParentIdxs[i]-1]:undefined,type:buildFunctionSearchType(itemFunctionSearchTypes[i],lowercasePaths),id:id,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),};id+=1;searchIndex.push(row);lastPath=row.path;crateSize+=1}if(aliases){ALIASES[crate]=Object.create(null);for(const alias_name in aliases){if(!hasOwnPropertyRustdoc(aliases,alias_name)){continue}if(!hasOwnPropertyRustdoc(ALIASES[crate],alias_name)){ALIASES[crate][alias_name]=[]}for(const local_alias of aliases[alias_name]){ALIASES[crate][alias_name].push(local_alias+currentIndex)}}}currentIndex+=crateSize}return searchWords}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;search(e)}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const params=searchState.getQueryStringParams();const query=searchState.input.value.trim();if(!history.state&&!params.search){history.pushState(null,"",buildUrl(query,null))}else{history.replaceState(null,"",buildUrl(query,null))}}currentResults=null;search(undefined,true)}const searchWords=buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}return searchWords}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch({})}})() \ No newline at end of file diff --git a/static.files/search-98d53477a794af0b.js b/static.files/search-98d53477a794af0b.js deleted file mode 100644 index 64e17055..00000000 --- a/static.files/search-98d53477a794af0b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(function(){const itemTypes=["mod","externcrate","import","struct","enum","fn","type","static","trait","impl","tymethod","method","structfield","variant","macro","primitive","associatedtype","constant","associatedconstant","union","foreigntype","keyword","existential","attr","derive","traitalias",];const TY_PRIMITIVE=itemTypes.indexOf("primitive");const TY_KEYWORD=itemTypes.indexOf("keyword");const ROOT_PATH=typeof window!=="undefined"?window.rootPath:"../";function hasOwnPropertyRustdoc(obj,property){return Object.prototype.hasOwnProperty.call(obj,property)}function printTab(nb){let iter=0;let foundCurrentTab=false;let foundCurrentResultSet=false;onEachLazy(document.getElementById("search-tabs").childNodes,elem=>{if(nb===iter){addClass(elem,"selected");foundCurrentTab=true}else{removeClass(elem,"selected")}iter+=1});iter=0;onEachLazy(document.getElementById("results").childNodes,elem=>{if(nb===iter){addClass(elem,"active");foundCurrentResultSet=true}else{removeClass(elem,"active")}iter+=1});if(foundCurrentTab&&foundCurrentResultSet){searchState.currentTab=nb}else if(nb!==0){printTab(0)}}const levenshtein_row2=[];function levenshtein(s1,s2){if(s1===s2){return 0}const s1_len=s1.length,s2_len=s2.length;if(s1_len&&s2_len){let i1=0,i2=0,a,b,c,c2;const row=levenshtein_row2;while(i1-".indexOf(c)!==-1}function isStopCharacter(c){return isWhitespace(c)||isEndCharacter(c)}function isErrorCharacter(c){return"()".indexOf(c)!==-1}function itemTypeFromName(typename){for(let i=0,len=itemTypes.length;i0){throw new Error("Cannot use literal search when there is more than one element")}parserState.pos+=1;const start=parserState.pos;const end=getIdentEndPosition(parserState);if(parserState.pos>=parserState.length){throw new Error("Unclosed `\"`")}else if(parserState.userQuery[end]!=="\""){throw new Error(`Unexpected \`${parserState.userQuery[end]}\` in a string element`)}else if(start===end){throw new Error("Cannot have empty string element")}parserState.pos+=1;query.literalSearch=true}function isPathStart(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="::"}function isReturnArrow(parserState){return parserState.userQuery.slice(parserState.pos,parserState.pos+2)==="->"}function isIdentCharacter(c){return(c==="_"||(c>="0"&&c<="9")||(c>="a"&&c<="z")||(c>="A"&&c<="Z"))}function isSeparatorCharacter(c){return c===","||isWhitespaceCharacter(c)}function isWhitespaceCharacter(c){return c===" "||c==="\t"}function createQueryElement(query,parserState,name,generics,isInGenerics){if(name==="*"||(name.length===0&&generics.length===0)){return}if(query.literalSearch&&parserState.totalElems-parserState.genericsElems>0){throw new Error("You cannot have more than one element if you use quotes")}const pathSegments=name.split("::");if(pathSegments.length>1){for(let i=0,len=pathSegments.length;i=end){throw new Error("Found generics without a path")}parserState.pos+=1;getItemsBefore(query,parserState,generics,">")}if(start>=end&&generics.length===0){return}elems.push(createQueryElement(query,parserState,parserState.userQuery.slice(start,end),generics,isInGenerics))}function getItemsBefore(query,parserState,elems,endChar){let foundStopChar=true;while(parserState.pos"){extra="`<`"}else if(endChar===""){extra="`->`"}throw new Error("Unexpected `"+c+"` after "+extra)}if(!foundStopChar){if(endChar!==""){throw new Error(`Expected \`,\`, \` \` or \`${endChar}\`, found \`${c}\``)}throw new Error(`Expected \`,\` or \` \`, found \`${c}\``)}const posBefore=parserState.pos;getNextElem(query,parserState,elems,endChar===">");if(posBefore===parserState.pos){parserState.pos+=1}foundStopChar=false}parserState.pos+=1}function checkExtraTypeFilterCharacters(parserState){const query=parserState.userQuery;for(let pos=0;pos"){if(isReturnArrow(parserState)){break}throw new Error(`Unexpected \`${c}\` (did you mean \`->\`?)`)}throw new Error(`Unexpected \`${c}\``)}else if(c===":"&&!isPathStart(parserState)){if(parserState.typeFilter!==null){throw new Error("Unexpected `:`")}if(query.elems.length===0){throw new Error("Expected type filter before `:`")}else if(query.elems.length!==1||parserState.totalElems!==1){throw new Error("Unexpected `:`")}else if(query.literalSearch){throw new Error("You cannot use quotes on type filter")}checkExtraTypeFilterCharacters(parserState);parserState.typeFilter=query.elems.pop().name;parserState.pos+=1;parserState.totalElems=0;query.literalSearch=false;foundStopChar=true;continue}if(!foundStopChar){if(parserState.typeFilter!==null){throw new Error(`Expected \`,\`, \` \` or \`->\`, found \`${c}\``)}throw new Error(`Expected \`,\`, \` \`, \`:\` or \`->\`, found \`${c}\``)}before=query.elems.length;getNextElem(query,parserState,query.elems,false);if(query.elems.length===before){parserState.pos+=1}foundStopChar=false}while(parserState.pos`")}break}else{parserState.pos+=1}}}function newParsedQuery(userQuery){return{original:userQuery,userQuery:userQuery.toLowerCase(),typeFilter:NO_TYPE_FILTER,elems:[],returned:[],foundElems:0,literalSearch:false,error:null,}}function buildUrl(search,filterCrates){let extra="?search="+encodeURIComponent(search);if(filterCrates!==null){extra+="&filter-crate="+encodeURIComponent(filterCrates)}return getNakedUrl()+extra+window.location.hash}function getFilterCrates(){const elem=document.getElementById("crate-search");if(elem&&elem.value!=="all crates"&&hasOwnPropertyRustdoc(rawSearchIndex,elem.value)){return elem.value}return null}function parseQuery(userQuery){userQuery=userQuery.trim();const parserState={length:userQuery.length,pos:0,totalElems:0,genericsElems:0,typeFilter:null,userQuery:userQuery.toLowerCase(),};let query=newParsedQuery(userQuery);try{parseInput(query,parserState);if(parserState.typeFilter!==null){let typeFilter=parserState.typeFilter;if(typeFilter==="const"){typeFilter="constant"}query.typeFilter=itemTypeFromName(typeFilter)}}catch(err){query=newParsedQuery(userQuery);query.error=err.message;query.typeFilter=-1;return query}if(!query.literalSearch){query.literalSearch=parserState.totalElems>1}query.foundElems=query.elems.length+query.returned.length;return query}function createQueryResults(results_in_args,results_returned,results_others,parsedQuery){return{"in_args":results_in_args,"returned":results_returned,"others":results_others,"query":parsedQuery,}}function execQuery(parsedQuery,searchWords,filterCrates,currentCrate){const results_others={},results_in_args={},results_returned={};function transformResults(results){const duplicates={};const out=[];for(const result of results){if(result.id>-1){const obj=searchIndex[result.id];obj.lev=result.lev;const res=buildHrefAndPath(obj);obj.displayPath=pathSplitter(res[0]);obj.fullPath=obj.displayPath+obj.name;obj.fullPath+="|"+obj.ty;if(duplicates[obj.fullPath]){continue}duplicates[obj.fullPath]=true;obj.href=res[1];out.push(obj);if(out.length>=MAX_RESULTS){break}}}return out}function sortResults(results,isType,preferredCrate){const userQuery=parsedQuery.userQuery;const ar=[];for(const entry in results){if(hasOwnPropertyRustdoc(results,entry)){const result=results[entry];result.word=searchWords[result.id];result.item=searchIndex[result.id]||{};ar.push(result)}}results=ar;if(results.length===0){return[]}results.sort((aaa,bbb)=>{let a,b;a=(aaa.word!==userQuery);b=(bbb.word!==userQuery);if(a!==b){return a-b}a=(aaa.index<0);b=(bbb.index<0);if(a!==b){return a-b}a=aaa.path_lev;b=bbb.path_lev;if(a!==b){return a-b}a=aaa.index;b=bbb.index;if(a!==b){return a-b}a=(aaa.lev);b=(bbb.lev);if(a!==b){return a-b}a=(aaa.item.crate!==preferredCrate);b=(bbb.item.crate!==preferredCrate);if(a!==b){return a-b}a=aaa.word.length;b=bbb.word.length;if(a!==b){return a-b}a=aaa.word;b=bbb.word;if(a!==b){return(a>b?+1:-1)}if((aaa.item.ty===TY_PRIMITIVE&&bbb.item.ty!==TY_KEYWORD)||(aaa.item.ty===TY_KEYWORD&&bbb.item.ty!==TY_PRIMITIVE)){return-1}if((bbb.item.ty===TY_PRIMITIVE&&aaa.item.ty!==TY_PRIMITIVE)||(bbb.item.ty===TY_KEYWORD&&aaa.item.ty!==TY_KEYWORD)){return 1}a=(aaa.item.desc==="");b=(bbb.item.desc==="");if(a!==b){return a-b}a=aaa.item.ty;b=bbb.item.ty;if(a!==b){return a-b}a=aaa.item.path;b=bbb.item.path;if(a!==b){return(a>b?+1:-1)}return 0});let nameSplit=null;if(parsedQuery.elems.length===1){const hasPath=typeof parsedQuery.elems[0].path==="undefined";nameSplit=hasPath?null:parsedQuery.elems[0].path}for(const result of results){if(result.dontValidate){continue}const name=result.item.name.toLowerCase(),path=result.item.path.toLowerCase(),parent=result.item.parent;if(!isType&&!validateResult(name,path,nameSplit,parent)){result.id=-1}}return transformResults(results)}function checkGenerics(row,elem,defaultLev){if(row.generics.length===0){return elem.generics.length===0?defaultLev:MAX_LEV_DISTANCE+1}else if(row.generics.length>0&&row.generics[0].name===null){return checkGenerics(row.generics[0],elem,defaultLev)}let elem_name;if(elem.generics.length>0&&row.generics.length>=elem.generics.length){const elems=Object.create(null);for(const entry of row.generics){elem_name=entry.name;if(elem_name===""){if(checkGenerics(entry,elem,MAX_LEV_DISTANCE+1)!==0){return MAX_LEV_DISTANCE+1}continue}if(elems[elem_name]===undefined){elems[elem_name]=0}elems[elem_name]+=1}for(const generic of elem.generics){let match=null;if(elems[generic.name]){match=generic.name}else{for(elem_name in elems){if(!hasOwnPropertyRustdoc(elems,elem_name)){continue}if(elem_name===generic){match=elem_name;break}}}if(match===null){return MAX_LEV_DISTANCE+1}elems[match]-=1;if(elems[match]===0){delete elems[match]}}return 0}return MAX_LEV_DISTANCE+1}function checkIfInGenerics(row,elem){let lev=MAX_LEV_DISTANCE+1;for(const entry of row.generics){lev=Math.min(checkType(entry,elem,true),lev);if(lev===0){break}}return lev}function checkType(row,elem,literalSearch){if(row.name===null){if(row.generics.length>0){return checkIfInGenerics(row,elem)}return MAX_LEV_DISTANCE+1}let lev=levenshtein(row.name,elem.name);if(literalSearch){if(lev!==0){if(elem.generics.length===0){const checkGeneric=row.generics.length>0;if(checkGeneric&&row.generics.findIndex(tmp_elem=>tmp_elem.name===elem.name)!==-1){return 0}}return MAX_LEV_DISTANCE+1}else if(elem.generics.length>0){return checkGenerics(row,elem,MAX_LEV_DISTANCE+1)}return 0}else if(row.generics.length>0){if(elem.generics.length===0){if(lev===0){return 0}lev=checkIfInGenerics(row,elem);return lev+0.5}else if(lev>MAX_LEV_DISTANCE){return checkIfInGenerics(row,elem)}else{const tmp_lev=checkGenerics(row,elem,lev);if(tmp_lev>MAX_LEV_DISTANCE){return MAX_LEV_DISTANCE+1}return(tmp_lev+lev)/2}}else if(elem.generics.length>0){return MAX_LEV_DISTANCE+1}return lev}function findArg(row,elem,typeFilter){let lev=MAX_LEV_DISTANCE+1;if(row&&row.type&&row.type.inputs&&row.type.inputs.length>0){for(const input of row.type.inputs){if(!typePassesFilter(typeFilter,input.ty)){continue}lev=Math.min(lev,checkType(input,elem,parsedQuery.literalSearch));if(lev===0){return 0}}}return parsedQuery.literalSearch?MAX_LEV_DISTANCE+1:lev}function checkReturned(row,elem,typeFilter){let lev=MAX_LEV_DISTANCE+1;if(row&&row.type&&row.type.output.length>0){const ret=row.type.output;for(const ret_ty of ret){if(!typePassesFilter(typeFilter,ret_ty.ty)){continue}lev=Math.min(lev,checkType(ret_ty,elem,parsedQuery.literalSearch));if(lev===0){return 0}}}return parsedQuery.literalSearch?MAX_LEV_DISTANCE+1:lev}function checkPath(contains,ty){if(contains.length===0){return 0}let ret_lev=MAX_LEV_DISTANCE+1;const path=ty.path.split("::");if(ty.parent&&ty.parent.name){path.push(ty.parent.name.toLowerCase())}const length=path.length;const clength=contains.length;if(clength>length){return MAX_LEV_DISTANCE+1}for(let i=0;ilength){break}let lev_total=0;let aborted=false;for(let x=0;xMAX_LEV_DISTANCE){aborted=true;break}lev_total+=lev}if(!aborted){ret_lev=Math.min(ret_lev,Math.round(lev_total/clength))}}return ret_lev}function typePassesFilter(filter,type){if(filter<=NO_TYPE_FILTER||filter===type)return true;const name=itemTypes[type];switch(itemTypes[filter]){case"constant":return name==="associatedconstant";case"fn":return name==="method"||name==="tymethod";case"type":return name==="primitive"||name==="associatedtype";case"trait":return name==="traitalias"}return false}function createAliasFromItem(item){return{crate:item.crate,name:item.name,path:item.path,desc:item.desc,ty:item.ty,parent:item.parent,type:item.type,is_alias:true,}}function handleAliases(ret,query,filterCrates,currentCrate){const lowerQuery=query.toLowerCase();const aliases=[];const crateAliases=[];if(filterCrates!==null){if(ALIASES[filterCrates]&&ALIASES[filterCrates][lowerQuery]){const query_aliases=ALIASES[filterCrates][lowerQuery];for(const alias of query_aliases){aliases.push(createAliasFromItem(searchIndex[alias]))}}}else{Object.keys(ALIASES).forEach(crate=>{if(ALIASES[crate][lowerQuery]){const pushTo=crate===currentCrate?crateAliases:aliases;const query_aliases=ALIASES[crate][lowerQuery];for(const alias of query_aliases){pushTo.push(createAliasFromItem(searchIndex[alias]))}}})}const sortFunc=(aaa,bbb)=>{if(aaa.path{alias.alias=query;const res=buildHrefAndPath(alias);alias.displayPath=pathSplitter(res[0]);alias.fullPath=alias.displayPath+alias.name;alias.href=res[1];ret.others.unshift(alias);if(ret.others.length>MAX_RESULTS){ret.others.pop()}};aliases.forEach(pushFunc);crateAliases.forEach(pushFunc)}function addIntoResults(results,fullId,id,index,lev,path_lev){const inBounds=lev<=MAX_LEV_DISTANCE||index!==-1;if(lev===0||(!parsedQuery.literalSearch&&inBounds)){if(results[fullId]!==undefined){const result=results[fullId];if(result.dontValidate||result.lev<=lev){return}}results[fullId]={id:id,index:index,dontValidate:parsedQuery.literalSearch,lev:lev,path_lev:path_lev,}}}function handleSingleArg(row,pos,elem,results_others,results_in_args,results_returned){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let lev,index=-1,path_lev=0;const fullId=row.id;const searchWord=searchWords[pos];const in_args=findArg(row,elem,parsedQuery.typeFilter);const returned=checkReturned(row,elem,parsedQuery.typeFilter);addIntoResults(results_in_args,fullId,pos,-1,in_args,0);addIntoResults(results_returned,fullId,pos,-1,returned,0);if(!typePassesFilter(parsedQuery.typeFilter,row.ty)){return}const row_index=row.normalizedName.indexOf(elem.pathLast);const word_index=searchWord.indexOf(elem.pathLast);if(row_index===-1){index=word_index}else if(word_index===-1){index=row_index}else if(word_index1){path_lev=checkPath(elem.pathWithoutLast,row);if(path_lev>MAX_LEV_DISTANCE){return}}if(parsedQuery.literalSearch){if(searchWord===elem.name){addIntoResults(results_others,fullId,pos,index,0,path_lev)}return}lev=levenshtein(searchWord,elem.pathLast);if(index===-1&&lev+path_lev>MAX_LEV_DISTANCE){return}addIntoResults(results_others,fullId,pos,index,lev,path_lev)}function handleArgs(row,pos,results){if(!row||(filterCrates!==null&&row.crate!==filterCrates)){return}let totalLev=0;let nbLev=0;function checkArgs(elems,callback){for(const elem of elems){const lev=callback(row,elem,NO_TYPE_FILTER);if(lev<=1){nbLev+=1;totalLev+=lev}else{return false}}return true}if(!checkArgs(parsedQuery.elems,findArg)){return}if(!checkArgs(parsedQuery.returned,checkReturned)){return}if(nbLev===0){return}const lev=Math.round(totalLev/nbLev);addIntoResults(results,row.id,pos,0,lev,0)}function innerRunQuery(){let elem,i,nSearchWords,in_returned,row;if(parsedQuery.foundElems===1){if(parsedQuery.elems.length===1){elem=parsedQuery.elems[0];for(i=0,nSearchWords=searchWords.length;i0){for(i=0,nSearchWords=searchWords.length;i-1||path.indexOf(key)>-1||(parent!==undefined&&parent.name!==undefined&&parent.name.toLowerCase().indexOf(key)>-1)||levenshtein(name,key)<=MAX_LEV_DISTANCE)){return false}}return true}function nextTab(direction){const next=(searchState.currentTab+direction+3)%searchState.focusedByTab.length;searchState.focusedByTab[searchState.currentTab]=document.activeElement;printTab(next);focusSearchResult()}function focusSearchResult(){const target=searchState.focusedByTab[searchState.currentTab]||document.querySelectorAll(".search-results.active a").item(0)||document.querySelectorAll("#search-tabs button").item(searchState.currentTab);searchState.focusedByTab[searchState.currentTab]=null;if(target){target.focus()}}function buildHrefAndPath(item){let displayPath;let href;const type=itemTypes[item.ty];const name=item.name;let path=item.path;if(type==="mod"){displayPath=path+"::";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+name+"/index.html"}else if(type==="import"){displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/index.html#reexport."+name}else if(type==="primitive"||type==="keyword"){displayPath="";href=ROOT_PATH+path.replace(/::/g,"/")+"/"+type+"."+name+".html"}else if(type==="externcrate"){displayPath="";href=ROOT_PATH+name+"/index.html"}else if(item.parent!==undefined){const myparent=item.parent;let anchor="#"+type+"."+name;const parentType=itemTypes[myparent.ty];let pageType=parentType;let pageName=myparent.name;if(parentType==="primitive"){displayPath=myparent.name+"::"}else if(type==="structfield"&&parentType==="variant"){const enumNameIdx=item.path.lastIndexOf("::");const enumName=item.path.substr(enumNameIdx+2);path=item.path.substr(0,enumNameIdx);displayPath=path+"::"+enumName+"::"+myparent.name+"::";anchor="#variant."+myparent.name+".field."+name;pageType="enum";pageName=enumName}else{displayPath=path+"::"+myparent.name+"::"}href=ROOT_PATH+path.replace(/::/g,"/")+"/"+pageType+"."+pageName+".html"+anchor}else{displayPath=item.path+"::";href=ROOT_PATH+item.path.replace(/::/g,"/")+"/"+type+"."+name+".html"}return[displayPath,href]}function pathSplitter(path){const tmp=""+path.replace(/::/g,"::");if(tmp.endsWith("")){return tmp.slice(0,tmp.length-6)}return tmp}function addTab(array,query,display){let extraClass="";if(display===true){extraClass=" active"}const output=document.createElement("div");let length=0;if(array.length>0){output.className="search-results "+extraClass;array.forEach(item=>{const name=item.name;const type=itemTypes[item.ty];length+=1;let extra="";if(type==="primitive"){extra=" (primitive type)"}else if(type==="keyword"){extra=" (keyword)"}const link=document.createElement("a");link.className="result-"+type;link.href=item.href;const resultName=document.createElement("div");resultName.className="result-name";if(item.is_alias){const alias=document.createElement("span");alias.className="alias";const bold=document.createElement("b");bold.innerText=item.alias;alias.appendChild(bold);alias.insertAdjacentHTML("beforeend"," - see ");resultName.appendChild(alias)}resultName.insertAdjacentHTML("beforeend",item.displayPath+""+name+extra+"");link.appendChild(resultName);const description=document.createElement("div");description.className="desc";description.insertAdjacentHTML("beforeend",item.desc);link.appendChild(description);output.appendChild(link)})}else if(query.error===null){output.className="search-failed"+extraClass;output.innerHTML="No results :(
    "+"Try on DuckDuckGo?

    "+"Or try looking in one of these:"}return[output,length]}function makeTabHeader(tabNb,text,nbElems){if(searchState.currentTab===tabNb){return""}return""}function showResults(results,go_to_first,filterCrates){const search=searchState.outputElement();if(go_to_first||(results.others.length===1&&getSettingValue("go-to-only-result")==="true"&&(!search.firstChild||search.firstChild.innerText!==searchState.loadingText))){const elem=document.createElement("a");elem.href=results.others[0].href;removeClass(elem,"active");document.body.appendChild(elem);elem.click();return}if(results.query===undefined){results.query=parseQuery(searchState.input.value)}currentResults=results.query.userQuery;const ret_others=addTab(results.others,results.query,true);const ret_in_args=addTab(results.in_args,results.query,false);const ret_returned=addTab(results.returned,results.query,false);let currentTab=searchState.currentTab;if((currentTab===0&&ret_others[1]===0)||(currentTab===1&&ret_in_args[1]===0)||(currentTab===2&&ret_returned[1]===0)){if(ret_others[1]!==0){currentTab=0}else if(ret_in_args[1]!==0){currentTab=1}else if(ret_returned[1]!==0){currentTab=2}}let crates="";const crates_list=Object.keys(rawSearchIndex);if(crates_list.length>1){crates=" in 
    "}let output=`

    Results${crates}

    `;if(results.query.error!==null){output+=`

    Query parser error: "${results.query.error}".

    `;output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+"
    ";currentTab=0}else if(results.query.foundElems<=1&&results.query.returned.length===0){output+="
    "+makeTabHeader(0,"In Names",ret_others[1])+makeTabHeader(1,"In Parameters",ret_in_args[1])+makeTabHeader(2,"In Return Types",ret_returned[1])+"
    "}else{const signatureTabTitle=results.query.elems.length===0?"In Function Return Types":results.query.returned.length===0?"In Function Parameters":"In Function Signatures";output+="
    "+makeTabHeader(0,signatureTabTitle,ret_others[1])+"
    ";currentTab=0}const resultsElem=document.createElement("div");resultsElem.id="results";resultsElem.appendChild(ret_others[0]);resultsElem.appendChild(ret_in_args[0]);resultsElem.appendChild(ret_returned[0]);search.innerHTML=output;const crateSearch=document.getElementById("crate-search");if(crateSearch){crateSearch.addEventListener("input",updateCrate)}search.appendChild(resultsElem);searchState.showResults(search);const elems=document.getElementById("search-tabs").childNodes;searchState.focusedByTab=[];let i=0;for(const elem of elems){const j=i;elem.onclick=()=>printTab(j);searchState.focusedByTab.push(null);i+=1}printTab(currentTab)}function search(e,forced){if(e){e.preventDefault()}const query=parseQuery(searchState.input.value.trim());let filterCrates=getFilterCrates();if(!forced&&query.userQuery===currentResults){if(query.userQuery.length>0){putBackSearch()}return}searchState.setLoadingSearch();const params=searchState.getQueryStringParams();if(filterCrates===null&¶ms["filter-crate"]!==undefined){filterCrates=params["filter-crate"]}searchState.title="Results for "+query.original+" - Rust";if(browserSupportsHistoryApi()){const newURL=buildUrl(query.original,filterCrates);if(!history.state&&!params.search){history.pushState(null,"",newURL)}else{history.replaceState(null,"",newURL)}}showResults(execQuery(query,searchWords,filterCrates,window.currentCrate),params.go_to_first,filterCrates)}function buildItemSearchTypeAll(types,lowercasePaths){const PATH_INDEX_DATA=0;const GENERICS_DATA=1;return types.map(type=>{let pathIndex,generics;if(typeof type==="number"){pathIndex=type;generics=[]}else{pathIndex=type[PATH_INDEX_DATA];generics=buildItemSearchTypeAll(type[GENERICS_DATA],lowercasePaths)}return{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:generics,}})}function buildFunctionSearchType(functionSearchType,lowercasePaths){const INPUTS_DATA=0;const OUTPUT_DATA=1;if(functionSearchType===0){return null}let inputs,output;if(typeof functionSearchType[INPUTS_DATA]==="number"){const pathIndex=functionSearchType[INPUTS_DATA];inputs=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{inputs=buildItemSearchTypeAll(functionSearchType[INPUTS_DATA],lowercasePaths)}if(functionSearchType.length>1){if(typeof functionSearchType[OUTPUT_DATA]==="number"){const pathIndex=functionSearchType[OUTPUT_DATA];output=[{name:pathIndex===0?null:lowercasePaths[pathIndex-1].name,ty:pathIndex===0?null:lowercasePaths[pathIndex-1].ty,generics:[],}]}else{output=buildItemSearchTypeAll(functionSearchType[OUTPUT_DATA],lowercasePaths)}}else{output=[]}return{inputs,output,}}function buildIndex(rawSearchIndex){searchIndex=[];const searchWords=[];let i,word;let currentIndex=0;let id=0;for(const crate in rawSearchIndex){if(!hasOwnPropertyRustdoc(rawSearchIndex,crate)){continue}let crateSize=0;const crateCorpus=rawSearchIndex[crate];searchWords.push(crate);const crateRow={crate:crate,ty:1,name:crate,path:"",desc:crateCorpus.doc,parent:undefined,type:null,id:id,normalizedName:crate.indexOf("_")===-1?crate:crate.replace(/_/g,""),};id+=1;searchIndex.push(crateRow);currentIndex+=1;const itemTypes=crateCorpus.t;const itemNames=crateCorpus.n;const itemPaths=crateCorpus.q;const itemDescs=crateCorpus.d;const itemParentIdxs=crateCorpus.i;const itemFunctionSearchTypes=crateCorpus.f;const paths=crateCorpus.p;const aliases=crateCorpus.a;const lowercasePaths=[];let len=paths.length;for(i=0;i0?paths[itemParentIdxs[i]-1]:undefined,type:buildFunctionSearchType(itemFunctionSearchTypes[i],lowercasePaths),id:id,normalizedName:word.indexOf("_")===-1?word:word.replace(/_/g,""),};id+=1;searchIndex.push(row);lastPath=row.path;crateSize+=1}if(aliases){ALIASES[crate]=Object.create(null);for(const alias_name in aliases){if(!hasOwnPropertyRustdoc(aliases,alias_name)){continue}if(!hasOwnPropertyRustdoc(ALIASES[crate],alias_name)){ALIASES[crate][alias_name]=[]}for(const local_alias of aliases[alias_name]){ALIASES[crate][alias_name].push(local_alias+currentIndex)}}}currentIndex+=crateSize}return searchWords}function onSearchSubmit(e){e.preventDefault();searchState.clearInputTimeout();search()}function putBackSearch(){const search_input=searchState.input;if(!searchState.input){return}if(search_input.value!==""&&!searchState.isDisplayed()){searchState.showResults();if(browserSupportsHistoryApi()){history.replaceState(null,"",buildUrl(search_input.value,getFilterCrates()))}document.title=searchState.title}}function registerSearchEvents(){const params=searchState.getQueryStringParams();if(searchState.input.value===""){searchState.input.value=params.search||""}const searchAfter500ms=()=>{searchState.clearInputTimeout();if(searchState.input.value.length===0){if(browserSupportsHistoryApi()){history.replaceState(null,window.currentCrate+" - Rust",getNakedUrl()+window.location.hash)}searchState.hideResults()}else{searchState.timeout=setTimeout(search,500)}};searchState.input.onkeyup=searchAfter500ms;searchState.input.oninput=searchAfter500ms;document.getElementsByClassName("search-form")[0].onsubmit=onSearchSubmit;searchState.input.onchange=e=>{if(e.target!==document.activeElement){return}searchState.clearInputTimeout();setTimeout(search,0)};searchState.input.onpaste=searchState.input.onchange;searchState.outputElement().addEventListener("keydown",e=>{if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey){return}if(e.which===38){const previous=document.activeElement.previousElementSibling;if(previous){previous.focus()}else{searchState.focus()}e.preventDefault()}else if(e.which===40){const next=document.activeElement.nextElementSibling;if(next){next.focus()}const rect=document.activeElement.getBoundingClientRect();if(window.innerHeight-rect.bottom{if(e.which===40){focusSearchResult();e.preventDefault()}});searchState.input.addEventListener("focus",()=>{putBackSearch()});searchState.input.addEventListener("blur",()=>{searchState.input.placeholder=searchState.input.origPlaceholder});if(browserSupportsHistoryApi()){const previousTitle=document.title;window.addEventListener("popstate",e=>{const params=searchState.getQueryStringParams();document.title=previousTitle;currentResults=null;if(params.search&¶ms.search.length>0){searchState.input.value=params.search;search(e)}else{searchState.input.value="";searchState.hideResults()}})}window.onpageshow=()=>{const qSearch=searchState.getQueryStringParams().search;if(searchState.input.value===""&&qSearch){searchState.input.value=qSearch}search()}}function updateCrate(ev){if(ev.target.value==="all crates"){const params=searchState.getQueryStringParams();const query=searchState.input.value.trim();if(!history.state&&!params.search){history.pushState(null,"",buildUrl(query,null))}else{history.replaceState(null,"",buildUrl(query,null))}}currentResults=null;search(undefined,true)}const searchWords=buildIndex(rawSearchIndex);if(typeof window!=="undefined"){registerSearchEvents();if(window.searchState.getQueryStringParams().search){search()}}if(typeof exports!=="undefined"){exports.initSearch=initSearch;exports.execQuery=execQuery;exports.parseQuery=parseQuery}return searchWords}if(typeof window!=="undefined"){window.initSearch=initSearch;if(window.searchIndex!==undefined){initSearch(window.searchIndex)}}else{initSearch({})}})() \ No newline at end of file diff --git a/static.files/settings-08ddfdda51b8ee2e.css b/static.files/settings-08ddfdda51b8ee2e.css deleted file mode 100644 index 4460ca09..00000000 --- a/static.files/settings-08ddfdda51b8ee2e.css +++ /dev/null @@ -1,3 +0,0 @@ -.setting-line{margin:1.2em 0.6em;position:relative;}.setting-line .radio-line input,.setting-line .settings-toggle input{margin-right:0.3em;height:1.2rem;width:1.2rem;color:inherit;border:1px solid currentColor;outline:none;-webkit-appearance:none;cursor:pointer;}.setting-line .radio-line input{border-radius:50%;}.setting-line .settings-toggle input:checked{content:url('data:image/svg+xml,\ - \ - ');}.setting-line .radio-line input+span,.setting-line .settings-toggle span{padding-bottom:1px;}.radio-line .choice{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.radio-line .choice+.choice{margin-left:0.5em;}.settings-toggle{position:relative;width:100%;margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-line .radio-line input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-line .settings-toggle input:checked{background-color:var(--settings-input-color);}.setting-line .radio-line input:focus,.setting-line .settings-toggle input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-line .radio-line input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-line .radio-line input:hover,.setting-line .settings-toggle input:hover{border-color:var(--settings-input-color) !important;} \ No newline at end of file diff --git a/static.files/settings-0bcba95ff279c1db.css b/static.files/settings-0bcba95ff279c1db.css new file mode 100644 index 00000000..907d4206 --- /dev/null +++ b/static.files/settings-0bcba95ff279c1db.css @@ -0,0 +1,3 @@ +.setting-line{margin:1.2em 0.6em;position:relative;}.setting-radio input,.setting-check input{margin-right:0.3em;height:1.2rem;width:1.2rem;color:inherit;border:1px solid currentColor;outline:none;-webkit-appearance:none;cursor:pointer;}.setting-radio input{border-radius:50%;}.setting-check input:checked{content:url('data:image/svg+xml,\ + \ + ');}.setting-radio span,.setting-check span{padding-bottom:1px;}.setting-radio{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:inline-flex;align-items:center;cursor:pointer;}.setting-radio+.setting-radio{margin-left:0.5em;}.setting-check{margin-right:20px;display:flex;align-items:center;cursor:pointer;}.setting-radio input:checked{box-shadow:inset 0 0 0 3px var(--main-background-color);background-color:var(--settings-input-color);}.setting-check input:checked{background-color:var(--settings-input-color);}.setting-radio input:focus,.setting-check input:focus{box-shadow:0 0 1px 1px var(--settings-input-color);}.setting-radio input:checked:focus{box-shadow:inset 0 0 0 3px var(--main-background-color),0 0 2px 2px var(--settings-input-color);}.setting-radio input:hover,.setting-check input:hover{border-color:var(--settings-input-color) !important;} \ No newline at end of file diff --git a/static.files/settings-c3c521c753752a1a.js b/static.files/settings-c3c521c753752a1a.js deleted file mode 100644 index 0c225db4..00000000 --- a/static.files/settings-c3c521c753752a1a.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateSystemTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break}}function handleKey(ev){if(ev.ctrlKey||ev.altKey||ev.metaKey){return}switch(getVirtualKey(ev)){case"Enter":case"Return":case"Space":ev.target.checked=!ev.target.checked;ev.preventDefault();break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme").parentElement,"hidden");removeClass(document.getElementById("preferred-dark-theme").parentElement,"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme").parentElement,"hidden");addClass(document.getElementById("preferred-dark-theme").parentElement,"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=function(){changeSetting(this.id,this.checked)};toggle.onkeyup=handleKey;toggle.onkeyrelease=handleKey});onEachLazy(settingsElement.getElementsByClassName("select-wrapper"),elem=>{const select=elem.getElementsByTagName("select")[0];const settingId=select.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){select.value=settingValue}select.onchange=function(){changeSetting(this.id,this.value)}});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){if(useSystem!=="false"){settingValue="system preference"}else{settingValue="light"}}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){output+="
    ";const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\ -
    -
    ${setting_name}
    -
    `;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\ -`});output+="
    "}else{const checked=setting["default"]===true?" checked":"";output+=`\ -`}output+="
    "}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`
    ${buildSettingsPageSections(settings)}
    `;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display=""}function settingsBlurHandler(event){blurHandler(event,getSettingsButton(),window.hidePopoverMenus)}if(isSettingsPage){getSettingsButton().onclick=function(event){event.preventDefault()}}else{const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=function(event){if(elemIsInParent(event.target,settingsMenu)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})() \ No newline at end of file diff --git a/static.files/settings-f0c5c39777a9a2f6.js b/static.files/settings-f0c5c39777a9a2f6.js new file mode 100644 index 00000000..9f78bb91 --- /dev/null +++ b/static.files/settings-f0c5c39777a9a2f6.js @@ -0,0 +1,17 @@ +"use strict";(function(){const isSettingsPage=window.location.pathname.endsWith("/settings.html");function changeSetting(settingName,value){if(settingName==="theme"){const useSystem=value==="system preference"?"true":"false";updateLocalStorage("use-system-theme",useSystem)}updateLocalStorage(settingName,value);switch(settingName){case"theme":case"preferred-dark-theme":case"preferred-light-theme":updateTheme();updateLightAndDark();break;case"line-numbers":if(value===true){window.rustdoc_add_line_numbers_to_examples()}else{window.rustdoc_remove_line_numbers_from_examples()}break}}function handleKey(ev){if(ev.ctrlKey||ev.altKey||ev.metaKey){return}switch(getVirtualKey(ev)){case"Enter":case"Return":case"Space":ev.target.checked=!ev.target.checked;ev.preventDefault();break}}function showLightAndDark(){removeClass(document.getElementById("preferred-light-theme"),"hidden");removeClass(document.getElementById("preferred-dark-theme"),"hidden")}function hideLightAndDark(){addClass(document.getElementById("preferred-light-theme"),"hidden");addClass(document.getElementById("preferred-dark-theme"),"hidden")}function updateLightAndDark(){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||(useSystem===null&&getSettingValue("theme")===null)){showLightAndDark()}else{hideLightAndDark()}}function setEvents(settingsElement){updateLightAndDark();onEachLazy(settingsElement.querySelectorAll("input[type=\"checkbox\"]"),toggle=>{const settingId=toggle.id;const settingValue=getSettingValue(settingId);if(settingValue!==null){toggle.checked=settingValue==="true"}toggle.onchange=function(){changeSetting(this.id,this.checked)};toggle.onkeyup=handleKey;toggle.onkeyrelease=handleKey});onEachLazy(settingsElement.querySelectorAll("input[type=\"radio\"]"),elem=>{const settingId=elem.name;let settingValue=getSettingValue(settingId);if(settingId==="theme"){const useSystem=getSettingValue("use-system-theme");if(useSystem==="true"||settingValue===null){if(useSystem!=="false"){settingValue="system preference"}else{settingValue="light"}}}if(settingValue!==null&&settingValue!=="null"){elem.checked=settingValue===elem.value}elem.addEventListener("change",ev=>{changeSetting(ev.target.name,ev.target.value)})})}function buildSettingsPageSections(settings){let output="";for(const setting of settings){const js_data_name=setting["js_name"];const setting_name=setting["name"];if(setting["options"]!==undefined){output+=`\ +
    +
    ${setting_name}
    +
    `;onEach(setting["options"],option=>{const checked=option===setting["default"]?" checked":"";const full=`${js_data_name}-${option.replace(/ /g,"-")}`;output+=`\ + `});output+=`\ +
    +
    `}else{const checked=setting["default"]===true?" checked":"";output+=`\ +
    \ + \ +
    `}}return output}function buildSettingsPage(){const theme_names=getVar("themes").split(",").filter(t=>t);theme_names.push("light","dark","ayu");const settings=[{"name":"Theme","js_name":"theme","default":"system preference","options":theme_names.concat("system preference"),},{"name":"Preferred light theme","js_name":"preferred-light-theme","default":"light","options":theme_names,},{"name":"Preferred dark theme","js_name":"preferred-dark-theme","default":"dark","options":theme_names,},{"name":"Auto-hide item contents for large items","js_name":"auto-hide-large-items","default":true,},{"name":"Auto-hide item methods' documentation","js_name":"auto-hide-method-docs","default":false,},{"name":"Auto-hide trait implementation documentation","js_name":"auto-hide-trait-implementations","default":false,},{"name":"Directly go to item in search if there is only one result","js_name":"go-to-only-result","default":false,},{"name":"Show line numbers on code examples","js_name":"line-numbers","default":false,},{"name":"Disable keyboard shortcuts","js_name":"disable-shortcuts","default":false,},];const elementKind=isSettingsPage?"section":"div";const innerHTML=`
    ${buildSettingsPageSections(settings)}
    `;const el=document.createElement(elementKind);el.id="settings";if(!isSettingsPage){el.className="popover"}el.innerHTML=innerHTML;if(isSettingsPage){document.getElementById(MAIN_ID).appendChild(el)}else{el.setAttribute("tabindex","-1");getSettingsButton().appendChild(el)}return el}const settingsMenu=buildSettingsPage();function displaySettings(){settingsMenu.style.display=""}function settingsBlurHandler(event){blurHandler(event,getSettingsButton(),window.hidePopoverMenus)}if(isSettingsPage){getSettingsButton().onclick=function(event){event.preventDefault()}}else{const settingsButton=getSettingsButton();const settingsMenu=document.getElementById("settings");settingsButton.onclick=function(event){if(elemIsInParent(event.target,settingsMenu)){return}event.preventDefault();const shouldDisplaySettings=settingsMenu.style.display==="none";window.hideAllModals();if(shouldDisplaySettings){displaySettings()}};settingsButton.onblur=settingsBlurHandler;settingsButton.querySelector("a").onblur=settingsBlurHandler;onEachLazy(settingsMenu.querySelectorAll("input"),el=>{el.onblur=settingsBlurHandler});settingsMenu.onblur=settingsBlurHandler}setTimeout(()=>{setEvents(settingsMenu);if(!isSettingsPage){displaySettings()}removeClass(getSettingsButton(),"rotate")},0)})() \ No newline at end of file diff --git a/static.files/source-script-ea63cb6500f71309.js b/static.files/source-script-1b95b7cca98b26e5.js similarity index 100% rename from static.files/source-script-ea63cb6500f71309.js rename to static.files/source-script-1b95b7cca98b26e5.js diff --git a/static.files/storage-d43fa987303ecbbb.js b/static.files/storage-3891ce972e3a2bf8.js similarity index 56% rename from static.files/storage-d43fa987303ecbbb.js rename to static.files/storage-3891ce972e3a2bf8.js index 017aff70..d64fa5ef 100644 --- a/static.files/storage-d43fa987303ecbbb.js +++ b/static.files/storage-3891ce972e3a2bf8.js @@ -1 +1 @@ -"use strict";const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");window.mainTheme=document.getElementById("mainThemeStyle");window.RUSTDOC_MOBILE_BREAKPOINT=700;const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");if(settingsElement===null){return null}const dataset=settingsElement.dataset;if(dataset===undefined){return null}return dataset})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current!==null){return current}if(settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return null}const localStoredTheme=getSettingValue("theme");const savedHref=[];function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(!elem||!elem.classList){return}elem.classList.add(className)}function removeClass(elem,className){if(!elem||!elem.classList){return}elem.classList.remove(className)}function onEach(arr,func,reversed){if(arr&&arr.length>0&&func){if(reversed){const length=arr.length;for(let i=length-1;i>=0;--i){if(func(arr[i])){return true}}}else{for(const elem of arr){if(func(elem)){return true}}}}return false}function onEachLazy(lazyArray,func,reversed){return onEach(Array.prototype.slice.call(lazyArray),func,reversed)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}function switchTheme(styleElem,mainStyleElem,newThemeName,saveTheme){if(saveTheme){updateLocalStorage("theme",newThemeName)}if(savedHref.length===0){onEachLazy(document.getElementsByTagName("link"),el=>{savedHref.push(el.href)})}const newHref=savedHref.find(url=>{const m=url.match(/static\.files\/(.*)-[a-f0-9]{16}\.css$/);if(m&&m[1]===newThemeName){return true}const m2=url.match(/\/([^/]*)\.css$/);if(m2&&m2[1].startsWith(newThemeName)){return true}});if(newHref&&newHref!==styleElem.href){styleElem.href=newHref}}function useSystemTheme(value){if(value===undefined){value=true}updateLocalStorage("use-system-theme",value);const toggle=document.getElementById("use-system-theme");if(toggle&&toggle instanceof HTMLInputElement){toggle.checked=value}}const updateSystemTheme=(function(){if(!window.matchMedia){return()=>{const cssTheme=getComputedStyle(document.documentElement).getPropertyValue("content");switchTheme(window.currentTheme,window.mainTheme,JSON.parse(cssTheme)||"light",true)}}const mql=window.matchMedia("(prefers-color-scheme: dark)");function handlePreferenceChange(mql){const use=theme=>{switchTheme(window.currentTheme,window.mainTheme,theme,true)};if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";if(mql.matches){use(darkTheme)}else{use(lightTheme)}}else{use(getSettingValue("theme"))}}mql.addListener(handlePreferenceChange);return()=>{handlePreferenceChange(mql)}})();function switchToSavedTheme(){switchTheme(window.currentTheme,window.mainTheme,getSettingValue("theme")||"light",false)}if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}updateSystemTheme()}else{switchToSavedTheme()}if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"source-sidebar-expanded")}window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(switchToSavedTheme,0)}}) \ No newline at end of file +"use strict";const darkThemes=["dark","ayu"];window.currentTheme=document.getElementById("themeStyle");window.mainTheme=document.getElementById("mainThemeStyle");window.RUSTDOC_MOBILE_BREAKPOINT=700;const settingsDataset=(function(){const settingsElement=document.getElementById("default-settings");if(settingsElement===null){return null}const dataset=settingsElement.dataset;if(dataset===undefined){return null}return dataset})();function getSettingValue(settingName){const current=getCurrentValue(settingName);if(current!==null){return current}if(settingsDataset!==null){const def=settingsDataset[settingName.replace(/-/g,"_")];if(def!==undefined){return def}}return null}const localStoredTheme=getSettingValue("theme");const savedHref=[];function hasClass(elem,className){return elem&&elem.classList&&elem.classList.contains(className)}function addClass(elem,className){if(!elem||!elem.classList){return}elem.classList.add(className)}function removeClass(elem,className){if(!elem||!elem.classList){return}elem.classList.remove(className)}function onEach(arr,func,reversed){if(arr&&arr.length>0&&func){if(reversed){const length=arr.length;for(let i=length-1;i>=0;--i){if(func(arr[i])){return true}}}else{for(const elem of arr){if(func(elem)){return true}}}}return false}function onEachLazy(lazyArray,func,reversed){return onEach(Array.prototype.slice.call(lazyArray),func,reversed)}function updateLocalStorage(name,value){try{window.localStorage.setItem("rustdoc-"+name,value)}catch(e){}}function getCurrentValue(name){try{return window.localStorage.getItem("rustdoc-"+name)}catch(e){return null}}function switchTheme(styleElem,mainStyleElem,newThemeName,saveTheme){if(saveTheme){updateLocalStorage("theme",newThemeName)}if(savedHref.length===0){onEachLazy(document.getElementsByTagName("link"),el=>{savedHref.push(el.href)})}const newHref=savedHref.find(url=>{const m=url.match(/static\.files\/(.*)-[a-f0-9]{16}\.css$/);if(m&&m[1]===newThemeName){return true}const m2=url.match(/\/([^/]*)\.css$/);if(m2&&m2[1].startsWith(newThemeName)){return true}});if(newHref&&newHref!==styleElem.href){styleElem.href=newHref}}const updateTheme=(function(){function updateTheme(){const use=(theme,saveTheme)=>{switchTheme(window.currentTheme,window.mainTheme,theme,saveTheme)};if(getSettingValue("use-system-theme")!=="false"){const lightTheme=getSettingValue("preferred-light-theme")||"light";const darkTheme=getSettingValue("preferred-dark-theme")||"dark";if(isDarkMode()){use(darkTheme,true)}else{use(lightTheme,true)}}else{use(getSettingValue("theme"),false)}}let isDarkMode;if(window.matchMedia){const mql=window.matchMedia("(prefers-color-scheme: dark)");isDarkMode=()=>mql.matches;if(mql.addEventListener){mql.addEventListener("change",updateTheme)}else{mql.addListener(updateTheme)}}else{const cssContent=getComputedStyle(document.documentElement).getPropertyValue("content");const cssColorScheme=cssContent||"\"light\"";isDarkMode=()=>(cssColorScheme==="\"dark\"")}return updateTheme})();if(getSettingValue("use-system-theme")!=="false"&&window.matchMedia){if(getSettingValue("use-system-theme")===null&&getSettingValue("preferred-dark-theme")===null&&darkThemes.indexOf(localStoredTheme)>=0){updateLocalStorage("preferred-dark-theme",localStoredTheme)}}updateTheme();if(getSettingValue("source-sidebar-show")==="true"){addClass(document.documentElement,"source-sidebar-expanded")}window.addEventListener("pageshow",ev=>{if(ev.persisted){setTimeout(updateTheme,0)}}) \ No newline at end of file diff --git a/static.files/toggle-minus-31bbd6e4c77f5c96.svg b/static.files/toggle-minus-31bbd6e4c77f5c96.svg deleted file mode 100644 index 73154788..00000000 --- a/static.files/toggle-minus-31bbd6e4c77f5c96.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static.files/toggle-plus-1092eb4930d581b0.svg b/static.files/toggle-plus-1092eb4930d581b0.svg deleted file mode 100644 index 08b17033..00000000 --- a/static.files/toggle-plus-1092eb4930d581b0.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static.files/wheel-5ec35bf9ca753509.svg b/static.files/wheel-5ec35bf9ca753509.svg deleted file mode 100644 index 01da3b24..00000000 --- a/static.files/wheel-5ec35bf9ca753509.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static.files/wheel-7b819b6101059cd0.svg b/static.files/wheel-7b819b6101059cd0.svg new file mode 100644 index 00000000..83c07f63 --- /dev/null +++ b/static.files/wheel-7b819b6101059cd0.svg @@ -0,0 +1 @@ + \ No newline at end of file