mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
Deploying to gh-pages from @ ac502b7c08 🚀
This commit is contained in:
@@ -2,43 +2,43 @@
|
||||
pub pool: MySqlPool,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.pool" class="structfield small-section-header"><a href="#structfield.pool" class="anchor field"></a><code>pool: MySqlPool</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-Database" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#30">source</a></span><a href="#impl-Clone-for-Database" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#30">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/clone.rs.html#132-134">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-MCDatabase-for-Database" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase-for-Database" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ping" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#108-116">source</a></span><a href="#method.ping" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.ping" class="fnname">ping</a><'life0, 'async_trait>(<br> &'life0 self<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>ping DB</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.register" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#119-144">source</a></span><a href="#method.register" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.register" class="fnname">register</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> p: &'life1 <a class="struct" href="prelude/struct.Register.html" title="struct db_sqlx_maria::prelude::Register">Register</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>register a new user</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_user" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#147-153">source</a></span><a href="#method.delete_user" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.delete_user" class="fnname">delete_user</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>delete a user</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.username_exists" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#156-165">source</a></span><a href="#method.username_exists" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.username_exists" class="fnname">username_exists</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>check if username exists</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_email" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#168-182">source</a></span><a href="#method.get_email" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_email" class="fnname">get_email</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get user email</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.email_exists" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#185-194">source</a></span><a href="#method.email_exists" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.email_exists" class="fnname">email_exists</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> email: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>check if email exists</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_email" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#197-209">source</a></span><a href="#method.update_email" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_email" class="fnname">update_email</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> p: &'life1 <a class="struct" href="prelude/struct.UpdateEmail.html" title="struct db_sqlx_maria::prelude::UpdateEmail">UpdateEmail</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update a user’s email</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_password" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#212-244">source</a></span><a href="#method.get_password" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_password" class="fnname">get_password</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> l: &'life1 <a class="enum" href="prelude/enum.Login.html" title="enum db_sqlx_maria::prelude::Login">Login</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.NameHash.html" title="struct db_sqlx_maria::prelude::NameHash">NameHash</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get a user’s password</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_password" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#247-259">source</a></span><a href="#method.update_password" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_password" class="fnname">update_password</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> p: &'life1 <a class="struct" href="prelude/struct.NameHash.html" title="struct db_sqlx_maria::prelude::NameHash">NameHash</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update user’s password</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_username" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#262-274">source</a></span><a href="#method.update_username" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_username" class="fnname">update_username</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> current: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> new: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update username</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_secret" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#277-288">source</a></span><a href="#method.get_secret" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_secret" class="fnname">get_secret</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Secret.html" title="struct db_sqlx_maria::prelude::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get a user’s secret</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_secret_from_captcha" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#291-304">source</a></span><a href="#method.get_secret_from_captcha" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_secret_from_captcha" class="fnname">get_secret_from_captcha</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Secret.html" title="struct db_sqlx_maria::prelude::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get a user’s secret from a captcha key</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_secret" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#307-319">source</a></span><a href="#method.update_secret" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_secret" class="fnname">update_secret</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> secret: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update a user’s secret</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.create_captcha" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#322-337">source</a></span><a href="#method.create_captcha" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.create_captcha" class="fnname">create_captcha</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> p: &'life2 <a class="struct" href="prelude/struct.CreateCaptcha.html" title="struct db_sqlx_maria::prelude::CreateCaptcha">CreateCaptcha</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>create new captcha</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_captcha_config" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#340-354">source</a></span><a href="#method.get_captcha_config" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_captcha_config" class="fnname">get_captcha_config</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Captcha.html" title="struct db_sqlx_maria::prelude::Captcha">Captcha</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get captcha config</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_all_user_captchas" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#357-373">source</a></span><a href="#method.get_all_user_captchas" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_all_user_captchas" class="fnname">get_all_user_captchas</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="prelude/struct.Captcha.html" title="struct db_sqlx_maria::prelude::Captcha">Captcha</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get all captchas belonging to user</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_captcha_metadata" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#376-395">source</a></span><a href="#method.update_captcha_metadata" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_captcha_metadata" class="fnname">update_captcha_metadata</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> p: &'life2 <a class="struct" href="prelude/struct.CreateCaptcha.html" title="struct db_sqlx_maria::prelude::CreateCaptcha">CreateCaptcha</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update captcha metadata; doesn’t change captcha key</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_captcha_key" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#398-416">source</a></span><a href="#method.update_captcha_key" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_captcha_key" class="fnname">update_captcha_key</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> old_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> new_key: &'life3 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> 'life3: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update captcha key; doesn’t change metadata</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_captcha_levels" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#419-455">source</a></span><a href="#method.add_captcha_levels" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.add_captcha_levels" class="fnname">add_captcha_levels</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> levels: &'life3 [<a class="struct" href="prelude/dev/prelude/struct.Level.html" title="struct db_sqlx_maria::prelude::dev::prelude::Level">Level</a>]<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> 'life3: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Add levels to captcha</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.captcha_exists" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#458-504">source</a></span><a href="#method.captcha_exists" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.captcha_exists" class="fnname">captcha_exists</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>check if captcha exists</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_captcha_levels" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#507-528">source</a></span><a href="#method.delete_captcha_levels" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.delete_captcha_levels" class="fnname">delete_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Delete all levels of a captcha</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_captcha" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#531-544">source</a></span><a href="#method.delete_captcha" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.delete_captcha" class="fnname">delete_captcha</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Delete captcha</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_captcha_levels" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#547-593">source</a></span><a href="#method.get_captcha_levels" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_captcha_levels" class="fnname">get_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="prelude/dev/prelude/struct.Level.html" title="struct db_sqlx_maria::prelude::dev::prelude::Level">Level</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get captcha levels</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_captcha_cooldown" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#596-612">source</a></span><a href="#method.get_captcha_cooldown" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_captcha_cooldown" class="fnname">get_captcha_cooldown</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> captcha_key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i32.html">i32</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get captcha’s cooldown period</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_traffic_pattern" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#614-641">source</a></span><a href="#method.add_traffic_pattern" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.add_traffic_pattern" class="fnname">add_traffic_pattern</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> pattern: &'life3 <a class="struct" href="prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> 'life3: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Add traffic configuration</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_traffic_pattern" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#644-691">source</a></span><a href="#method.get_traffic_pattern" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_traffic_pattern" class="fnname">get_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get traffic configuration</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_traffic_pattern" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#694-717">source</a></span><a href="#method.delete_traffic_pattern" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.delete_traffic_pattern" class="fnname">delete_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Delete traffic configuration</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.create_notification" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#720-742">source</a></span><a href="#method.create_notification" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.create_notification" class="fnname">create_notification</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> p: &'life1 <a class="struct" href="prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>create new notification</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_all_unread_notifications" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#745-765">source</a></span><a href="#method.get_all_unread_notifications" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_all_unread_notifications" class="fnname">get_all_unread_notifications</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="prelude/struct.Notification.html" title="struct db_sqlx_maria::prelude::Notification">Notification</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get all unread notifications</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mark_notification_read" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#768-780">source</a></span><a href="#method.mark_notification_read" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.mark_notification_read" class="fnname">mark_notification_read</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> id: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i32.html">i32</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>mark a notification read</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_fetch" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#783-795">source</a></span><a href="#method.record_fetch" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_fetch" class="fnname">record_fetch</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>record PoWConfig fetches</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_solve" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#798-810">source</a></span><a href="#method.record_solve" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_solve" class="fnname">record_solve</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>record PoWConfig solves</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_confirm" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#813-825">source</a></span><a href="#method.record_confirm" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_confirm" class="fnname">record_confirm</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>record PoWConfig confirms</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_config_fetched" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#828-851">source</a></span><a href="#method.fetch_config_fetched" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_solve" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#854-875">source</a></span><a href="#method.fetch_solve" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_solve" class="fnname">fetch_solve</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>fetch PoWConfig solves</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_confirm" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#878-900">source</a></span><a href="#method.fetch_confirm" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_confirm" class="fnname">fetch_confirm</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Migrate-for-Database" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#95-103">source</a></span><a href="#impl-Migrate-for-Database" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="prelude/trait.Migrate.html" title="trait db_sqlx_maria::prelude::Migrate">Migrate</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.migrate" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#96-102">source</a></span><a href="#method.migrate" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.Migrate.html#tymethod.migrate" class="fnname">migrate</a><'life0, 'async_trait>(<br> &'life0 self<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class='docblock'><p>database specific error-type
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-MCDatabase-for-Database" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#103-898">source</a></span><a href="#impl-MCDatabase-for-Database" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ping" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#105-113">source</a></span><a href="#method.ping" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.ping" class="fnname">ping</a><'life0, 'async_trait>(<br> &'life0 self<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>ping DB</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.register" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#116-141">source</a></span><a href="#method.register" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.register" class="fnname">register</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> p: &'life1 <a class="struct" href="prelude/struct.Register.html" title="struct db_sqlx_maria::prelude::Register">Register</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>register a new user</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_user" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#144-150">source</a></span><a href="#method.delete_user" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.delete_user" class="fnname">delete_user</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>delete a user</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.username_exists" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#153-162">source</a></span><a href="#method.username_exists" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.username_exists" class="fnname">username_exists</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>check if username exists</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_email" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#165-179">source</a></span><a href="#method.get_email" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_email" class="fnname">get_email</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get user email</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.email_exists" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#182-191">source</a></span><a href="#method.email_exists" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.email_exists" class="fnname">email_exists</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> email: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>check if email exists</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_email" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#194-206">source</a></span><a href="#method.update_email" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_email" class="fnname">update_email</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> p: &'life1 <a class="struct" href="prelude/struct.UpdateEmail.html" title="struct db_sqlx_maria::prelude::UpdateEmail">UpdateEmail</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update a user’s email</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_password" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#209-241">source</a></span><a href="#method.get_password" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_password" class="fnname">get_password</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> l: &'life1 <a class="enum" href="prelude/enum.Login.html" title="enum db_sqlx_maria::prelude::Login">Login</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.NameHash.html" title="struct db_sqlx_maria::prelude::NameHash">NameHash</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get a user’s password</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_password" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#244-256">source</a></span><a href="#method.update_password" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_password" class="fnname">update_password</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> p: &'life1 <a class="struct" href="prelude/struct.NameHash.html" title="struct db_sqlx_maria::prelude::NameHash">NameHash</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update user’s password</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_username" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#259-271">source</a></span><a href="#method.update_username" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_username" class="fnname">update_username</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> current: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> new: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update username</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_secret" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#274-285">source</a></span><a href="#method.get_secret" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_secret" class="fnname">get_secret</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Secret.html" title="struct db_sqlx_maria::prelude::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get a user’s secret</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_secret_from_captcha" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#288-301">source</a></span><a href="#method.get_secret_from_captcha" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_secret_from_captcha" class="fnname">get_secret_from_captcha</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Secret.html" title="struct db_sqlx_maria::prelude::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get a user’s secret from a captcha key</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_secret" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#304-316">source</a></span><a href="#method.update_secret" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_secret" class="fnname">update_secret</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> secret: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update a user’s secret</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.create_captcha" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#319-334">source</a></span><a href="#method.create_captcha" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.create_captcha" class="fnname">create_captcha</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> p: &'life2 <a class="struct" href="prelude/struct.CreateCaptcha.html" title="struct db_sqlx_maria::prelude::CreateCaptcha">CreateCaptcha</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>create new captcha</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_captcha_config" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#337-351">source</a></span><a href="#method.get_captcha_config" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_captcha_config" class="fnname">get_captcha_config</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Captcha.html" title="struct db_sqlx_maria::prelude::Captcha">Captcha</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get captcha config</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_all_user_captchas" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#354-370">source</a></span><a href="#method.get_all_user_captchas" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_all_user_captchas" class="fnname">get_all_user_captchas</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="prelude/struct.Captcha.html" title="struct db_sqlx_maria::prelude::Captcha">Captcha</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get all captchas belonging to user</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_captcha_metadata" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#373-392">source</a></span><a href="#method.update_captcha_metadata" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_captcha_metadata" class="fnname">update_captcha_metadata</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> p: &'life2 <a class="struct" href="prelude/struct.CreateCaptcha.html" title="struct db_sqlx_maria::prelude::CreateCaptcha">CreateCaptcha</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update captcha metadata; doesn’t change captcha key</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.update_captcha_key" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#395-413">source</a></span><a href="#method.update_captcha_key" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_captcha_key" class="fnname">update_captcha_key</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> old_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> new_key: &'life3 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> 'life3: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>update captcha key; doesn’t change metadata</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_captcha_levels" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#416-452">source</a></span><a href="#method.add_captcha_levels" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.add_captcha_levels" class="fnname">add_captcha_levels</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> levels: &'life3 [<a class="struct" href="prelude/dev/prelude/struct.Level.html" title="struct db_sqlx_maria::prelude::dev::prelude::Level">Level</a>]<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> 'life3: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Add levels to captcha</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.captcha_exists" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#455-501">source</a></span><a href="#method.captcha_exists" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.captcha_exists" class="fnname">captcha_exists</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>check if captcha exists</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_captcha_levels" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#504-525">source</a></span><a href="#method.delete_captcha_levels" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.delete_captcha_levels" class="fnname">delete_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Delete all levels of a captcha</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_captcha" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#528-541">source</a></span><a href="#method.delete_captcha" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.delete_captcha" class="fnname">delete_captcha</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Delete captcha</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_captcha_levels" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#544-590">source</a></span><a href="#method.get_captcha_levels" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_captcha_levels" class="fnname">get_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="prelude/dev/prelude/struct.Level.html" title="struct db_sqlx_maria::prelude::dev::prelude::Level">Level</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get captcha levels</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_captcha_cooldown" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#593-609">source</a></span><a href="#method.get_captcha_cooldown" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_captcha_cooldown" class="fnname">get_captcha_cooldown</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> captcha_key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i32.html">i32</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get captcha’s cooldown period</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.add_traffic_pattern" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#611-638">source</a></span><a href="#method.add_traffic_pattern" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.add_traffic_pattern" class="fnname">add_traffic_pattern</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> pattern: &'life3 <a class="struct" href="prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> 'life3: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Add traffic configuration</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_traffic_pattern" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#641-688">source</a></span><a href="#method.get_traffic_pattern" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_traffic_pattern" class="fnname">get_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Get traffic configuration</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_traffic_pattern" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#691-714">source</a></span><a href="#method.delete_traffic_pattern" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.delete_traffic_pattern" class="fnname">delete_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>Delete traffic configuration</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.create_notification" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#717-739">source</a></span><a href="#method.create_notification" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.create_notification" class="fnname">create_notification</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> p: &'life1 <a class="struct" href="prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>create new notification</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_all_unread_notifications" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#742-762">source</a></span><a href="#method.get_all_unread_notifications" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_all_unread_notifications" class="fnname">get_all_unread_notifications</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="prelude/struct.Notification.html" title="struct db_sqlx_maria::prelude::Notification">Notification</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>get all unread notifications</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mark_notification_read" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#765-777">source</a></span><a href="#method.mark_notification_read" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.mark_notification_read" class="fnname">mark_notification_read</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> id: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i32.html">i32</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>mark a notification read</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_fetch" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#780-792">source</a></span><a href="#method.record_fetch" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_fetch" class="fnname">record_fetch</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>record PoWConfig fetches</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_solve" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#795-807">source</a></span><a href="#method.record_solve" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_solve" class="fnname">record_solve</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>record PoWConfig solves</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_confirm" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#810-822">source</a></span><a href="#method.record_confirm" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_confirm" class="fnname">record_confirm</a><'life0, 'life1, 'async_trait>(<br> &'life0 self,<br> key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>record PoWConfig confirms</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_config_fetched" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#825-848">source</a></span><a href="#method.fetch_config_fetched" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_solve" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#851-872">source</a></span><a href="#method.fetch_solve" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_solve" class="fnname">fetch_solve</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>fetch PoWConfig solves</p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_confirm" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#875-897">source</a></span><a href="#method.fetch_confirm" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_confirm" class="fnname">fetch_confirm</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self,<br> user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> 'life1: 'async_trait,<br> 'life2: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Migrate-for-Database" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#92-100">source</a></span><a href="#impl-Migrate-for-Database" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="prelude/trait.Migrate.html" title="trait db_sqlx_maria::prelude::Migrate">Migrate</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.migrate" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#93-99">source</a></span><a href="#method.migrate" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.Migrate.html#tymethod.migrate" class="fnname">migrate</a><'life0, 'async_trait>(<br> &'life0 self<br>) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>> <span class="where fmt-newline">where<br> 'life0: 'async_trait,<br> Self: 'async_trait, </span></h4></section></summary><div class='docblock'><p>database specific error-type
|
||||
run migrations <a href="prelude/trait.Migrate.html#tymethod.migrate">Read more</a></p>
|
||||
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Database" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Database" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section><section id="impl-Send-for-Database" class="impl has-srclink"><a href="#impl-Send-for-Database" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section><section id="impl-Sync-for-Database" class="impl has-srclink"><a href="#impl-Sync-for-Database" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section><section id="impl-Unpin-for-Database" class="impl has-srclink"><a href="#impl-Unpin-for-Database" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section><section id="impl-UnwindSafe-for-Database" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Database" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Database" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#203">source</a></span><a href="#impl-Any-for-Database" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Database" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#209">source</a></span><a href="#impl-Borrow%3CT%3E-for-Database" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
||||
Reference in New Issue
Block a user