mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
Deploying to gh-pages from @ b30bc67bd4 🚀
This commit is contained in:
@@ -4,46 +4,46 @@
|
||||
</nav>
|
||||
<nav class="sidebar"><a class="sidebar-logo" href="../db_sqlx_postgres/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
|
||||
</a><h2 class="location"><a href="#">Database</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><ul><li><a href="#structfield.pool">pool</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-MCDatabase">MCDatabase</a></li><li><a href="#impl-Migrate">Migrate</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">!UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-CloneSPDatabase">CloneSPDatabase</a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-Same%3CT%3E">Same<T></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li><li><a href="#impl-WithSubscriber">WithSubscriber</a></li></ul></div></section><h2 class="location"><a href="index.html">In db_sqlx_postgres</a></h2><div id="sidebar-vars" data-name="Database" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../db_sqlx_postgres/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">db_sqlx_postgres</a>::<wbr><a class="struct" href="#">Database</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#28-30">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct Database {
|
||||
<h1 class="fqn"><span class="in-band">Struct <a href="index.html">db_sqlx_postgres</a>::<wbr><a class="struct" href="#">Database</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#31-33">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct Database {
|
||||
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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#27">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.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#27">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.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.61.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
}</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" 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" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.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.61.0/src/core/clone.rs.html#134-136">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.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.61.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.61.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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#91-876">source</a></span><a href="#impl-MCDatabase" 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#93-101">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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.bool.html">bool</a>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#104-129">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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#132-138">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#141-156">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#159-173">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#176-191">source</a></span><a href="#method.email_exists" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.email_exists" class="fnname">email_exists</a><'life0, 'life1, 'async_trait>(<br> &'life0 self, <br> email: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#194-206">source</a></span><a href="#method.update_email" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_email" class="fnname">update_email</a><'life0, 'life1, 'async_trait>(<br> &'life0 self, <br> p: &'life1 <a class="struct" href="prelude/struct.UpdateEmail.html" title="struct db_sqlx_postgres::prelude::UpdateEmail">UpdateEmail</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#209-241">source</a></span><a href="#method.get_password" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_password" class="fnname">get_password</a><'life0, 'life1, 'async_trait>(<br> &'life0 self, <br> l: &'life1 <a class="enum" href="prelude/enum.Login.html" title="enum db_sqlx_postgres::prelude::Login">Login</a><'_><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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#244-256">source</a></span><a href="#method.update_password" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_password" class="fnname">update_password</a><'life0, 'life1, 'async_trait>(<br> &'life0 self, <br> p: &'life1 <a class="struct" href="prelude/struct.NameHash.html" title="struct db_sqlx_postgres::prelude::NameHash">NameHash</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#259-271">source</a></span><a href="#method.update_username" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.update_username" class="fnname">update_username</a><'life0, 'life1, 'life2, 'async_trait>(<br> &'life0 self, <br> current: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> new: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#274-285">source</a></span><a href="#method.get_secret" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.get_secret" class="fnname">get_secret</a><'life0, 'life1, 'async_trait>(<br> &'life0 self, <br> username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.update_secret" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#288-300">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.61.0/std/primitive.str.html">str</a>, <br> secret: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#303-318">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.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#321-335">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.61.0/std/primitive.str.html">str</a>, <br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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#338-354">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.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#357-376">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.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#379-397">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.61.0/std/primitive.str.html">str</a>, <br> old_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> new_key: &'life3 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#400-436">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> levels: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&'life3 [</a><a class="struct" href="prelude/dev/prelude/struct.Level.html" title="struct db_sqlx_postgres::prelude::dev::prelude::Level">Level</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#439-479">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.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#482-503">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#506-519">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#522-568">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.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.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#571-587">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.i32.html">i32</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#589-616">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#619-666">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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#669-692">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#695-717">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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#720-740">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.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#743-755">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.61.0/std/primitive.str.html">str</a>, <br> id: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.i32.html">i32</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#758-770">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#773-785">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#788-800">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#803-826">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.61.0/std/primitive.str.html">str</a>, <br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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>featch 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#829-850">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.61.0/std/primitive.str.html">str</a>, <br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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>featch 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#853-875">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.61.0/std/primitive.str.html">str</a>, <br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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>featch PoWConfig confirms</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Migrate" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#80-88">source</a></span><a href="#impl-Migrate" 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#81-87">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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#106-891">source</a></span><a href="#impl-MCDatabase" 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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.bool.html">bool</a>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.str.html">str</a>, <br> new: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.update_secret" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#303-315">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.61.0/std/primitive.str.html">str</a>, <br> secret: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#318-333">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.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#336-350">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.61.0/std/primitive.str.html">str</a>, <br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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#353-369">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.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#372-391">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.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#394-412">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.61.0/std/primitive.str.html">str</a>, <br> old_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> new_key: &'life3 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#415-451">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br> levels: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">&'life3 [</a><a class="struct" href="prelude/dev/prelude/struct.Level.html" title="struct db_sqlx_postgres::prelude::dev::prelude::Level">Level</a><a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.slice.html">]</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#454-494">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.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#497-518">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#521-534">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#537-583">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.61.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.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#586-602">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.i32.html">i32</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#604-631">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#634-681">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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#684-707">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.61.0/std/primitive.str.html">str</a>, <br> captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#710-732">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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#735-755">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.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#758-770">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.61.0/std/primitive.str.html">str</a>, <br> id: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.i32.html">i32</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#773-785">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#788-800">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#803-815">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.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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#818-841">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.61.0/std/primitive.str.html">str</a>, <br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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>featch 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#844-865">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.61.0/std/primitive.str.html">str</a>, <br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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>featch 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#868-890">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.61.0/std/primitive.str.html">str</a>, <br> key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -> <a class="struct" href="https://doc.rust-lang.org/1.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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>featch PoWConfig confirms</p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Migrate" 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" 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.61.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.61.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.61.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" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.61.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" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.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" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.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" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.61.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" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.61.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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.0/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.61.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.61.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.61.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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.61.0/src/core/borrow.rs.html#209-214">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.61.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.61.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.61.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.61.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.61.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.61.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
|
||||
Reference in New Issue
Block a user