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: PgPool,
|
||||
}</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: PgPool</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_postgres/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_postgres::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_postgres/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_postgres::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_postgres/lib.rs.html#106-907">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_postgres::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::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_postgres/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_postgres/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_postgres::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_postgres::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_postgres/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_postgres::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_postgres/lib.rs.html#156-171">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_postgres::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_postgres/lib.rs.html#174-188">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_postgres::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_postgres/lib.rs.html#191-206">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_postgres::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_postgres/lib.rs.html#209-221">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_postgres::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_postgres::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_postgres/lib.rs.html#224-256">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_postgres::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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.NameHash.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#259-271">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_postgres::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_postgres::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_postgres/lib.rs.html#274-286">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_postgres::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_postgres/lib.rs.html#289-300">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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Secret.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#303-316">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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Secret.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#319-331">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_postgres::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_postgres/lib.rs.html#334-349">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_postgres::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_postgres::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_postgres/lib.rs.html#352-366">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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Captcha.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#369-385">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_postgres::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_postgres::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_postgres/lib.rs.html#388-407">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_postgres::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_postgres::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_postgres/lib.rs.html#410-428">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_postgres::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_postgres/lib.rs.html#431-467">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_postgres::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_postgres::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_postgres/lib.rs.html#470-510">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_postgres::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_postgres/lib.rs.html#513-534">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_postgres::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_postgres/lib.rs.html#537-550">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_postgres::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_postgres/lib.rs.html#553-599">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_postgres::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_postgres::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_postgres/lib.rs.html#602-618">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_postgres::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_postgres/lib.rs.html#620-647">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_postgres::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_postgres::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_postgres/lib.rs.html#650-697">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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#700-723">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_postgres::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_postgres/lib.rs.html#726-748">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_postgres::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_postgres::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_postgres/lib.rs.html#751-771">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_postgres::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_postgres::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_postgres/lib.rs.html#774-786">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_postgres::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_postgres/lib.rs.html#789-801">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_postgres::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_postgres/lib.rs.html#804-816">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_postgres::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_postgres/lib.rs.html#819-831">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_postgres::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_postgres/lib.rs.html#834-857">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_postgres::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_postgres/lib.rs.html#860-881">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_postgres::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_postgres/lib.rs.html#884-906">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_postgres::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_postgres/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_postgres::prelude::Migrate">Migrate</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::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_postgres/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_postgres::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_postgres/lib.rs.html#103-904">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_postgres::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::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_postgres/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_postgres/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_postgres::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_postgres::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_postgres/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_postgres::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_postgres/lib.rs.html#153-168">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_postgres::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_postgres/lib.rs.html#171-185">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_postgres::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_postgres/lib.rs.html#188-203">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_postgres::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_postgres/lib.rs.html#206-218">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_postgres::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_postgres::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_postgres/lib.rs.html#221-253">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_postgres::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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.NameHash.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#256-268">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_postgres::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_postgres::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_postgres/lib.rs.html#271-283">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_postgres::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_postgres/lib.rs.html#286-297">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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Secret.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#300-313">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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Secret.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#316-328">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_postgres::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_postgres/lib.rs.html#331-346">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_postgres::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_postgres::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_postgres/lib.rs.html#349-363">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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.Captcha.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#366-382">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_postgres::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_postgres::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_postgres/lib.rs.html#385-404">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_postgres::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_postgres::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_postgres/lib.rs.html#407-425">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_postgres::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_postgres/lib.rs.html#428-464">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_postgres::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_postgres::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_postgres/lib.rs.html#467-507">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_postgres::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_postgres/lib.rs.html#510-531">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_postgres::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_postgres/lib.rs.html#534-547">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_postgres::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_postgres/lib.rs.html#550-596">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_postgres::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_postgres::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_postgres/lib.rs.html#599-615">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_postgres::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_postgres/lib.rs.html#617-644">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_postgres::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_postgres::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_postgres/lib.rs.html#647-694">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_postgres::prelude::dev::prelude::DBResult">DBResult</a><<a class="struct" href="prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::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_postgres/lib.rs.html#697-720">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_postgres::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_postgres/lib.rs.html#723-745">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_postgres::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_postgres::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_postgres/lib.rs.html#748-768">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_postgres::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_postgres::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_postgres/lib.rs.html#771-783">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_postgres::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_postgres/lib.rs.html#786-798">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_postgres::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_postgres/lib.rs.html#801-813">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_postgres::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_postgres/lib.rs.html#816-828">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_postgres::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_postgres/lib.rs.html#831-854">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_postgres::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_postgres/lib.rs.html#857-878">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_postgres::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_postgres/lib.rs.html#881-903">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_postgres::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_postgres/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_postgres::prelude::Migrate">Migrate</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::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_postgres/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_postgres::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_postgres::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_postgres::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_postgres::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_postgres::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_postgres::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