mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-11-24 22:45:45 +00:00
421 lines
119 KiB
HTML
421 lines
119 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Database` struct in crate `db_sqlx_postgres`."><title>Database in db_sqlx_postgres - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="db_sqlx_postgres" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0 (1159e78c4 2025-09-14)" data-channel="1.90.0" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../db_sqlx_postgres/index.html">db_<wbr>sqlx_<wbr>postgres</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Database</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.pool" title="pool">pool</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Database" title="Clone">Clone</a></li><li><a href="#impl-MCDatabase-for-Database" title="MCDatabase">MCDatabase</a></li><li><a href="#impl-Migrate-for-Database" title="Migrate">Migrate</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-Database" title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-UnwindSafe-for-Database" title="!UnwindSafe">!UnwindSafe</a></li><li><a href="#impl-Freeze-for-Database" title="Freeze">Freeze</a></li><li><a href="#impl-Send-for-Database" title="Send">Send</a></li><li><a href="#impl-Sync-for-Database" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Database" title="Unpin">Unpin</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-CloneSPDatabase-for-T" title="CloneSPDatabase">CloneSPDatabase</a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-ErasedDestructor-for-T" title="ErasedDestructor">ErasedDestructor</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-MaybeSendSync-for-T" title="MaybeSendSync">MaybeSendSync</a></li><li><a href="#impl-Same-for-T" title="Same">Same</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip<V>">VZip<V></a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate db_<wbr>sqlx_<wbr>postgres</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">db_sqlx_postgres</a></div><h1>Struct <span class="struct">Database</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/db_sqlx_postgres/lib.rs.html#21-23">Source</a> </span></div><pre class="rust item-decl"><code>pub struct Database {
|
||
pub pool: PgPool,
|
||
}</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.pool" class="structfield section-header"><a href="#structfield.pool" class="anchor field">§</a><code>pool: PgPool</code></span><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Database" class="impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#20">Source</a><a href="#impl-Clone-for-Database" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.90.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="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#20">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/1.90.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.90.0/src/core/clone.rs.html#213-215">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.90.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-MCDatabase-for-Database" class="impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#91-1330">Source</a><a href="#impl-MCDatabase-for-Database" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="dev/trait.MCDatabase.html" title="trait db_sqlx_postgres::dev::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="toggle method-toggle" open><summary><section id="method.ping" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#93-101">Source</a><a href="#method.ping" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.ping" class="fn">ping</a><'life0, 'async_trait>(
|
||
&'life0 self,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.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.90.0/std/primitive.bool.html">bool</a>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>ping DB</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.register" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#104-129">Source</a><a href="#method.register" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.register" class="fn">register</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="dev/struct.Register.html" title="struct db_sqlx_postgres::dev::Register">Register</a><'_>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>register a new user</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_user" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#132-138">Source</a><a href="#method.delete_user" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.delete_user" class="fn">delete_user</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>delete a user</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.username_exists" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#141-156">Source</a><a href="#method.username_exists" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.username_exists" class="fn">username_exists</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>check if username exists</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_email" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#159-173">Source</a><a href="#method.get_email" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_email" class="fn">get_email</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="enum" href="https://doc.rust-lang.org/1.90.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>get user email</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.email_exists" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#176-191">Source</a><a href="#method.email_exists" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.email_exists" class="fn">email_exists</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
email: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>check if email exists</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_email" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#194-206">Source</a><a href="#method.update_email" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.update_email" class="fn">update_email</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="dev/struct.UpdateEmail.html" title="struct db_sqlx_postgres::dev::UpdateEmail">UpdateEmail</a><'_>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>update a user’s email</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_password" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#209-241">Source</a><a href="#method.get_password" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_password" class="fn">get_password</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
l: &'life1 <a class="enum" href="dev/enum.Login.html" title="enum db_sqlx_postgres::dev::Login">Login</a><'_>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="dev/struct.NameHash.html" title="struct db_sqlx_postgres::dev::NameHash">NameHash</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>get a user’s password</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_password" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#244-256">Source</a><a href="#method.update_password" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.update_password" class="fn">update_password</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="dev/struct.NameHash.html" title="struct db_sqlx_postgres::dev::NameHash">NameHash</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>update user’s password</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_username" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#259-271">Source</a><a href="#method.update_username" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.update_username" class="fn">update_username</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
current: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
new: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>update username</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_secret" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#274-285">Source</a><a href="#method.get_secret" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_secret" class="fn">get_secret</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="dev/struct.Secret.html" title="struct db_sqlx_postgres::dev::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>get a user’s secret</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_secret_from_captcha" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#288-301">Source</a><a href="#method.get_secret_from_captcha" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_secret_from_captcha" class="fn">get_secret_from_captcha</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="dev/struct.Secret.html" title="struct db_sqlx_postgres::dev::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>get a user’s secret from a captcha key</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_secret" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#304-316">Source</a><a href="#method.update_secret" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.update_secret" class="fn">update_secret</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
secret: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>update a user’s secret</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.create_captcha" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#319-334">Source</a><a href="#method.create_captcha" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.create_captcha" class="fn">create_captcha</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
p: &'life2 <a class="struct" href="dev/struct.CreateCaptcha.html" title="struct db_sqlx_postgres::dev::CreateCaptcha">CreateCaptcha</a><'_>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>create new captcha</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_captcha_config" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#337-351">Source</a><a href="#method.get_captcha_config" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_captcha_config" class="fn">get_captcha_config</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="dev/struct.Captcha.html" title="struct db_sqlx_postgres::dev::Captcha">Captcha</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get captcha config</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_all_user_captchas" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#354-370">Source</a><a href="#method.get_all_user_captchas" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_all_user_captchas" class="fn">get_all_user_captchas</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="dev/struct.Captcha.html" title="struct db_sqlx_postgres::dev::Captcha">Captcha</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get all captchas belonging to user</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_captcha_metadata" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#373-392">Source</a><a href="#method.update_captcha_metadata" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.update_captcha_metadata" class="fn">update_captcha_metadata</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
p: &'life2 <a class="struct" href="dev/struct.CreateCaptcha.html" title="struct db_sqlx_postgres::dev::CreateCaptcha">CreateCaptcha</a><'_>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>update captcha metadata; doesn’t change captcha key</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_captcha_key" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#395-413">Source</a><a href="#method.update_captcha_key" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.update_captcha_key" class="fn">update_captcha_key</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
old_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
new_key: &'life3 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait,</div></h4></section></summary><div class="docblock"><p>update captcha key; doesn’t change metadata</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_captcha_levels" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#416-484">Source</a><a href="#method.add_captcha_levels" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.add_captcha_levels" class="fn">add_captcha_levels</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
levels: &'life3 [<a class="struct" href="dev/struct.Level.html" title="struct db_sqlx_postgres::dev::Level">Level</a>],
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Add levels to captcha</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.captcha_exists" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#487-527">Source</a><a href="#method.captcha_exists" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.captcha_exists" class="fn">captcha_exists</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: <a class="enum" href="https://doc.rust-lang.org/1.90.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>check if captcha exists</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_captcha_levels" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#530-551">Source</a><a href="#method.delete_captcha_levels" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.delete_captcha_levels" class="fn">delete_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Delete all levels of a captcha</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_captcha" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#554-567">Source</a><a href="#method.delete_captcha" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.delete_captcha" class="fn">delete_captcha</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Delete captcha</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_captcha_levels" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#570-616">Source</a><a href="#method.get_captcha_levels" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_captcha_levels" class="fn">get_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: <a class="enum" href="https://doc.rust-lang.org/1.90.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="dev/struct.Level.html" title="struct db_sqlx_postgres::dev::Level">Level</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get captcha levels</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_captcha_cooldown" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#619-635">Source</a><a href="#method.get_captcha_cooldown" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_captcha_cooldown" class="fn">get_captcha_cooldown</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.i32.html">i32</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get captcha’s cooldown period</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_traffic_pattern" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#637-664">Source</a><a href="#method.add_traffic_pattern" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.add_traffic_pattern" class="fn">add_traffic_pattern</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
pattern: &'life3 <a class="struct" href="dev/struct.TrafficPattern.html" title="struct db_sqlx_postgres::dev::TrafficPattern">TrafficPattern</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Add traffic configuration</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_traffic_pattern" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#667-705">Source</a><a href="#method.get_traffic_pattern" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_traffic_pattern" class="fn">get_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="dev/struct.TrafficPattern.html" title="struct db_sqlx_postgres::dev::TrafficPattern">TrafficPattern</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get traffic configuration</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_all_easy_captchas" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#708-765">Source</a><a href="#method.get_all_easy_captchas" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_all_easy_captchas" class="fn">get_all_easy_captchas</a><'life0, 'async_trait>(
|
||
&'life0 self,
|
||
limit: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.usize.html">usize</a>,
|
||
offset: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.usize.html">usize</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="dev/struct.EasyCaptcha.html" title="struct db_sqlx_postgres::dev::EasyCaptcha">EasyCaptcha</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get all easy captcha configurations on instance</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_traffic_pattern" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#768-791">Source</a><a href="#method.delete_traffic_pattern" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.delete_traffic_pattern" class="fn">delete_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Delete traffic configuration</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.create_notification" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#794-816">Source</a><a href="#method.create_notification" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.create_notification" class="fn">create_notification</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="dev/struct.AddNotification.html" title="struct db_sqlx_postgres::dev::AddNotification">AddNotification</a><'_>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>create new notification</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_all_unread_notifications" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#819-839">Source</a><a href="#method.get_all_unread_notifications" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_all_unread_notifications" class="fn">get_all_unread_notifications</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="dev/struct.Notification.html" title="struct db_sqlx_postgres::dev::Notification">Notification</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>get all unread notifications</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.mark_notification_read" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#842-854">Source</a><a href="#method.mark_notification_read" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.mark_notification_read" class="fn">mark_notification_read</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
id: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.i32.html">i32</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>mark a notification read</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.record_fetch" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#857-869">Source</a><a href="#method.record_fetch" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.record_fetch" class="fn">record_fetch</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>record PoWConfig fetches</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.record_solve" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#872-884">Source</a><a href="#method.record_solve" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.record_solve" class="fn">record_solve</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>record PoWConfig solves</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.record_confirm" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#887-899">Source</a><a href="#method.record_confirm" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.record_confirm" class="fn">record_confirm</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>record PoWConfig confirms</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_config_fetched" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#902-925">Source</a><a href="#method.fetch_config_fetched" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.fetch_config_fetched" class="fn">fetch_config_fetched</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_solve" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#928-949">Source</a><a href="#method.fetch_solve" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.fetch_solve" class="fn">fetch_solve</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>fetch PoWConfig solves</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.fetch_confirm" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#952-974">Source</a><a href="#method.fetch_confirm" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.fetch_confirm" class="fn">fetch_confirm</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.analysis_save" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#977-995">Source</a><a href="#method.analysis_save" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.analysis_save" class="fn">analysis_save</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_id: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
d: &'life2 <a class="struct" href="dev/struct.CreatePerformanceAnalytics.html" title="struct db_sqlx_postgres::dev::CreatePerformanceAnalytics">CreatePerformanceAnalytics</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</div></h4></section></summary><div class="docblock"><p>record PoW timing</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.analytics_fetch" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#998-1048">Source</a><a href="#method.analytics_fetch" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.analytics_fetch" class="fn">analytics_fetch</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_id: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
limit: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.usize.html">usize</a>,
|
||
offset: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.usize.html">usize</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="dev/struct.PerformanceAnalytics.html" title="struct db_sqlx_postgres::dev::PerformanceAnalytics">PerformanceAnalytics</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>fetch PoW analytics</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.analytics_create_psuedo_id_if_not_exists" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1051-1072">Source</a><a href="#method.analytics_create_psuedo_id_if_not_exists" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.analytics_create_psuedo_id_if_not_exists" class="fn">analytics_create_psuedo_id_if_not_exists</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_id: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Create psuedo ID against campaign ID to publish analytics</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.analytics_get_psuedo_id_from_capmaign_id" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1075-1093">Source</a><a href="#method.analytics_get_psuedo_id_from_capmaign_id" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.analytics_get_psuedo_id_from_capmaign_id" class="fn">analytics_get_psuedo_id_from_capmaign_id</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_id: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get psuedo ID from campaign ID</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.analytics_get_capmaign_id_from_psuedo_id" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1096-1125">Source</a><a href="#method.analytics_get_capmaign_id_from_psuedo_id" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.analytics_get_capmaign_id_from_psuedo_id" class="fn">analytics_get_capmaign_id_from_psuedo_id</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
psuedo_id: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get campaign ID from psuedo ID</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.analytics_get_all_psuedo_ids" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1161-1181">Source</a><a href="#method.analytics_get_all_psuedo_ids" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.analytics_get_all_psuedo_ids" class="fn">analytics_get_all_psuedo_ids</a><'life0, 'async_trait>(
|
||
&'life0 self,
|
||
page: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.usize.html">usize</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get all psuedo IDs</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.update_max_nonce_for_level" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1184-1211">Source</a><a href="#method.update_max_nonce_for_level" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.update_max_nonce_for_level" class="fn">update_max_nonce_for_level</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
difficulty_factor: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.u32.html">u32</a>,
|
||
latest_nonce: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Track maximum nonce received against captcha levels</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_max_nonce_for_level" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1214-1279">Source</a><a href="#method.get_max_nonce_for_level" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.get_max_nonce_for_level" class="fn">get_max_nonce_for_level</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
difficulty_factor: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.u32.html">u32</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get maximum nonce tracked so far for captcha levels</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.stats_get_num_logs_under_time" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1282-1297">Source</a><a href="#method.stats_get_num_logs_under_time" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.stats_get_num_logs_under_time" class="fn">stats_get_num_logs_under_time</a><'life0, 'async_trait>(
|
||
&'life0 self,
|
||
duration: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.usize.html">usize</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get number of analytics entries that are under a certain duration</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.stats_get_entry_at_location_for_time_limit_asc" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1301-1329">Source</a><a href="#method.stats_get_entry_at_location_for_time_limit_asc" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.stats_get_entry_at_location_for_time_limit_asc" class="fn">stats_get_entry_at_location_for_time_limit_asc</a><'life0, 'async_trait>(
|
||
&'life0 self,
|
||
duration: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.u32.html">u32</a>,
|
||
location: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="enum" href="https://doc.rust-lang.org/1.90.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.usize.html">usize</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,</div></h4></section></summary><div class="docblock"><p>Get the entry at a location in the list of analytics entires under a certain time limit
|
||
and sorted in ascending order</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.analytics_delete_all_records_for_campaign" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#1127-1158">Source</a><a href="#method.analytics_delete_all_records_for_campaign" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#tymethod.analytics_delete_all_records_for_campaign" class="fn">analytics_delete_all_records_for_campaign</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
campaign_id: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</div></h4></section></summary><div class='docblock'>Delete all records for campaign</div></details><details class="toggle method-toggle" open><summary><section id="method.analytics_captcha_is_published" class="method trait-impl"><a href="#method.analytics_captcha_is_published" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.MCDatabase.html#method.analytics_captcha_is_published" class="fn">analytics_captcha_is_published</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
campaign_id: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.str.html">str</a>,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/1.90.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.bool.html">bool</a>, <a class="enum" href="dev/enum.DBError.html" title="enum db_sqlx_postgres::dev::DBError">DBError</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
Self: 'async_trait,</div></h4></section></summary><div class='docblock'>Get publishing status of pow analytics for captcha ID/ campaign ID</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Migrate-for-Database" class="impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#80-88">Source</a><a href="#impl-Migrate-for-Database" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="dev/trait.Migrate.html" title="trait db_sqlx_postgres::dev::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="toggle method-toggle" open><summary><section id="method.migrate" class="method trait-impl"><a class="src rightside" href="../src/db_sqlx_postgres/lib.rs.html#81-87">Source</a><a href="#method.migrate" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.Migrate.html#tymethod.migrate" class="fn">migrate</a><'life0, 'async_trait>(
|
||
&'life0 self,
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="dev/type.DBResult.html" title="type db_sqlx_postgres::dev::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><div class="where">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,</div></h4></section></summary><div class='docblock'>database specific error-type
|
||
run migrations</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Database" class="impl"><a href="#impl-Freeze-for-Database" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h3></section><section id="impl-RefUnwindSafe-for-Database" class="impl"><a href="#impl-RefUnwindSafe-for-Database" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.90.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h3></section><section id="impl-Send-for-Database" class="impl"><a href="#impl-Send-for-Database" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h3></section><section id="impl-Sync-for-Database" class="impl"><a href="#impl-Sync-for-Database" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h3></section><section id="impl-Unpin-for-Database" class="impl"><a href="#impl-Unpin-for-Database" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h3></section><section id="impl-UnwindSafe-for-Database" class="impl"><a href="#impl-UnwindSafe-for-Database" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.90.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="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.90.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.90.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.90.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.90.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneSPDatabase-for-T" class="impl"><a href="#impl-CloneSPDatabase-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="dev/trait.CloneSPDatabase.html" title="trait db_sqlx_postgres::dev::CloneSPDatabase">CloneSPDatabase</a> for T<div class="where">where
|
||
T: <a class="trait" href="dev/trait.MCDatabase.html" title="trait db_sqlx_postgres::dev::MCDatabase">MCDatabase</a> + <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_db" class="method trait-impl"><a href="#method.clone_db" class="anchor">§</a><h4 class="code-header">fn <a href="dev/trait.CloneSPDatabase.html#tymethod.clone_db" class="fn">clone_db</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.90.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="dev/trait.MCDatabase.html" title="trait db_sqlx_postgres::dev::MCDatabase">MCDatabase</a>></h4></section></summary><div class='docblock'>clone DB</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/clone.rs.html#483">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/clone.rs.html#485">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.90.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dest: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="https://doc.rust-lang.org/1.90.0/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#791">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#794">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
|
||
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
|
||
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#773-775">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#783">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.90.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoEither-for-T" class="impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Self, Self></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
if <code>into_left</code> is <code>true</code>.
|
||
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a><F>(self, into_left: F) -> <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Self, Self><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self) -> <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
if <code>into_left(&self)</code> returns <code>true</code>.
|
||
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.17.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/typenum/1.17.0/src/typenum/type_operators.rs.html#35">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.90.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.90.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.90.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.90.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.90.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#833-835">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#837">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.90.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#840">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.90.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#817-819">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#821">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.90.0/src/core/convert/mod.rs.html#824">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.90.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<V, T> VZip<V> for T<div class="where">where
|
||
V: MultiLane<T>,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -> V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl<T> WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/1.90.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details><section id="impl-ErasedDestructor-for-T" class="impl"><a href="#impl-ErasedDestructor-for-T" class="anchor">§</a><h3 class="code-header">impl<T> ErasedDestructor for T<div class="where">where
|
||
T: 'static,</div></h3></section><section id="impl-MaybeSendSync-for-T" class="impl"><a href="#impl-MaybeSendSync-for-T" class="anchor">§</a><h3 class="code-header">impl<T> MaybeSendSync for T</h3></section></div></section></div></main></body></html> |