Deploying to gh-pages from @ 3d9056e968 🚀

This commit is contained in:
realaravinth 2022-08-05 09:28:47 +00:00
parent e5d3b937e7
commit 7fb06637a0
174 changed files with 298 additions and 298 deletions

View file

@ -9,7 +9,7 @@
<p>To use an unsupported database with mCaptcha, traits present within this crate should be
implemented.</p>
<h3 id="organisation"><a href="#organisation">Organisation</a></h3>
<p>Database functionallity is divided accross various modules:</p>
<p>Database functionality is divided across various modules:</p>
<ul>
<li><a href="crate::auth">errors</a>: error data structures used in this crate</li>
<li><a href="ops/index.html">ops</a>: meta operations like connection pool creation, migrations and getting
@ -25,7 +25,7 @@ connection from pool</li>
</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_core::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_core::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_core::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_core::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_core::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_core::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_core::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>

View file

@ -6,7 +6,7 @@
</a><h2 class="location"><a href="#">Module ops</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#traits">Traits</a></li></ul></div></section><div id="sidebar-vars" data-name="ops" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../db_core/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Module <a href="../index.html">db_core</a>::<wbr><a class="mod" href="#">ops</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/db_core/ops.rs.html#17-49">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>meta operations like migration and connecting to a database</p>
</div></details><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_core::ops::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_core::ops::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_core::ops::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_core::ops::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Migrate.html" title="db_core::ops::Migrate trait">Migrate</a></div><div class="item-right docblock-short"><p>database migrations</p>

View file

@ -1 +1 @@
initSidebarItems({"trait":[["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]});
initSidebarItems({"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]});

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_core::ops - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_core::ops - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../db_core/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../trait.MCDatabase.html" title="trait db_core::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;Self::<a class="associatedtype" href="trait.Connect.html#associatedtype.Pool" title="type db_core::ops::Connect::Pool">Pool</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../trait.MCDatabase.html" title="trait db_core::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="../errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;Self::<a class="associatedtype" href="trait.Connect.html#associatedtype.Pool" title="type db_core::ops::Connect::Pool">Pool</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -1 +1 @@
initSidebarItems({"enum":[["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."]]});
initSidebarItems({"enum":[["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.AddNotification.html" title="struct db_core::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.AddNotification.html" title="struct db_core::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.AddNotification.html" title="struct db_core::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.62.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_core - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><script defer src="../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_core - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><script defer src="../main.js"></script>
<noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.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">&#9776;</button><a class="sidebar-logo" href="../db_core/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.TrafficPattern.html" title="struct db_core::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.TrafficPattern.html" title="struct db_core::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.TrafficPattern.html" title="struct db_core::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.62.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="db_core" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -10,7 +10,7 @@
</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_maria::dev::dev::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_maria::dev::dev::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_maria::dev::dev::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_maria::dev::dev::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_maria::dev::dev::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -24,7 +24,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_maria::dev::dev::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_maria::dev::dev::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::dev::dev::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::dev::dev::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_maria::dev::dev::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -8,7 +8,7 @@
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_maria::dev::dev::prelude::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_maria::dev::dev::prelude::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::dev::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::dev::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_maria::dev::dev::prelude::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_maria::dev::dev::prelude::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_maria::dev::dev::prelude::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -22,7 +22,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_maria::dev::dev::prelude::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_maria::dev::dev::prelude::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::dev::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::dev::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::dev::dev::prelude::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::dev::dev::prelude::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_maria::dev::dev::prelude::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -1 +1 @@
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../../struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -1 +1 @@
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["prelude","useful imports for users working with a supported database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["prelude","useful imports for users working with a supported database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -14,7 +14,7 @@
</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_maria::dev::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_maria::dev::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_maria::dev::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_maria::dev::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_maria::dev::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -29,7 +29,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_maria::dev::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_maria::dev::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::dev::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::dev::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_maria::dev::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -6,7 +6,7 @@
</a><h2 class="location"><a href="#">Module ops</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#traits">Traits</a></li></ul></div></section><div id="sidebar-vars" data-name="ops" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../db_sqlx_maria/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">db_sqlx_maria</a>::<wbr><a href="../index.html">dev</a>::<wbr><a class="mod" href="#">ops</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/db_core/lib.rs.html#39">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>meta operations like migration and connecting to a database</p>
</div></details><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::ops::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::ops::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::dev::ops::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::dev::ops::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Migrate.html" title="db_sqlx_maria::dev::ops::Migrate trait">Migrate</a></div><div class="item-right docblock-short"><p>database migrations</p>

View file

@ -1 +1 @@
initSidebarItems({"trait":[["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]});
initSidebarItems({"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]});

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::ops - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::ops - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -8,7 +8,7 @@
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_maria::dev::prelude::dev::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_maria::dev::prelude::dev::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::prelude::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::prelude::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_maria::dev::prelude::dev::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_maria::dev::prelude::dev::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_maria::dev::prelude::dev::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -22,7 +22,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_maria::dev::prelude::dev::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_maria::dev::prelude::dev::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::prelude::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::prelude::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::dev::prelude::dev::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::dev::prelude::dev::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_maria::dev::prelude::dev::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -1 +1 @@
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../../struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -10,7 +10,7 @@
</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_maria::dev::prelude::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_maria::dev::prelude::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::dev::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_maria::dev::prelude::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_maria::dev::prelude::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_maria::dev::prelude::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -24,7 +24,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_maria::dev::prelude::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_maria::dev::prelude::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::dev::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::dev::prelude::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::dev::prelude::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_maria::dev::prelude::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -1 +1 @@
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -1 +1 @@
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Error","Represents all the ways a method can fail within SQLx."],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Error","Represents all the ways a method can fail within SQLx."],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["prelude","useful imports for users working with a supported database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../prelude/struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../prelude/struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../prelude/enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../prelude/trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><script type="text/javascript" src="../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -1,4 +1,4 @@
<!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="Connect to databse"><meta name="keywords" content="rust, rustlang, rust-lang, ConnectionOptions"><title>ConnectionOptions in db_sqlx_maria - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><script defer src="../main.js"></script>
<!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="Connect to database"><meta name="keywords" content="rust, rustlang, rust-lang, ConnectionOptions"><title>ConnectionOptions in db_sqlx_maria - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><script defer src="../main.js"></script>
<noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc enum"><!--[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">&#9776;</button><a class="sidebar-logo" href="../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -7,7 +7,7 @@
<h1 class="fqn"><span class="in-band">Enum <a href="index.html">db_sqlx_maria</a>::<wbr><a class="enum" href="#">ConnectionOptions</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#39-44">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust enum"><code>pub enum ConnectionOptions {
Fresh(<a class="struct" href="struct.Fresh.html" title="struct db_sqlx_maria::Fresh">Fresh</a>),
Existing(<a class="struct" href="struct.Conn.html" title="struct db_sqlx_maria::Conn">Conn</a>),
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Connect to databse</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Connect to database</p>
</div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.Fresh" class="variant small-section-header"><a href="#variant.Fresh" class="anchor field"></a><code>Fresh(<a class="struct" href="struct.Fresh.html" title="struct db_sqlx_maria::Fresh">Fresh</a>)</code></h3><div class="docblock"><p>fresh connection</p>
</div><h3 id="variant.Existing" class="variant small-section-header"><a href="#variant.Existing" class="anchor field"></a><code>Existing(<a class="struct" href="struct.Conn.html" title="struct db_sqlx_maria::Conn">Conn</a>)</code></h3><div class="docblock"><p>existing connection</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Connect" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#66-90">source</a></span><a href="#impl-Connect" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="prelude/trait.Connect.html" title="trait db_sqlx_maria::prelude::Connect">Connect</a> for <a class="enum" href="enum.ConnectionOptions.html" title="enum db_sqlx_maria::ConnectionOptions">ConnectionOptions</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Pool" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Pool" class="anchor"></a><h4 class="code-header">type <a href="prelude/trait.Connect.html#associatedtype.Pool" class="associatedtype">Pool</a> = <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h4></section></summary><div class='docblock'><p>database specific pool-type</p>

View file

@ -10,6 +10,6 @@
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Conn.html" title="db_sqlx_maria::Conn struct">Conn</a></div><div class="item-right docblock-short"><p>Use an existing database pool</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Database.html" title="db_sqlx_maria::Database struct">Database</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Fresh.html" title="db_sqlx_maria::Fresh struct">Fresh</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.InnerNotification.html" title="db_sqlx_maria::InnerNotification struct">InnerNotification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
</div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.ConnectionOptions.html" title="db_sqlx_maria::ConnectionOptions enum">ConnectionOptions</a></div><div class="item-right docblock-short"><p>Connect to databse</p>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.ConnectionOptions.html" title="db_sqlx_maria::ConnectionOptions enum">ConnectionOptions</a></div><div class="item-right docblock-short"><p>Connect to database</p>
</div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -10,7 +10,7 @@
</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_maria::prelude::dev::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_maria::prelude::dev::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::prelude::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::prelude::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_maria::prelude::dev::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_maria::prelude::dev::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_maria::prelude::dev::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -24,7 +24,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_maria::prelude::dev::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_maria::prelude::dev::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::prelude::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::prelude::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::prelude::dev::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::prelude::dev::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_maria::prelude::dev::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -8,7 +8,7 @@
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_maria::prelude::dev::prelude::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_maria::prelude::dev::prelude::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::prelude::dev::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::prelude::dev::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_maria::prelude::dev::prelude::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_maria::prelude::dev::prelude::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_maria::prelude::dev::prelude::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -22,7 +22,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_maria::prelude::dev::prelude::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_maria::prelude::dev::prelude::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::prelude::dev::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::prelude::dev::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::prelude::dev::prelude::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::prelude::dev::prelude::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_maria::prelude::dev::prelude::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -1 +1 @@
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::prelude::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::prelude::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::prelude::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::prelude::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../../trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../../struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -1 +1 @@
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["prelude","useful imports for users working with a supported database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["prelude","useful imports for users working with a supported database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -13,7 +13,7 @@
</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_maria::prelude::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_maria::prelude::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_maria::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_maria::prelude::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_maria::prelude::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_maria::prelude::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -27,7 +27,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_maria::prelude::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_maria::prelude::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::prelude::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::prelude::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_maria::prelude::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -6,7 +6,7 @@
</a><h2 class="location"><a href="#">Module ops</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#traits">Traits</a></li></ul></div></section><div id="sidebar-vars" data-name="ops" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../db_sqlx_maria/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">db_sqlx_maria</a>::<wbr><a href="../index.html">prelude</a>::<wbr><a class="mod" href="#">ops</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/db_core/lib.rs.html#39">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>meta operations like migration and connecting to a database</p>
</div></details><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::prelude::ops::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_maria::prelude::ops::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_maria::prelude::ops::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_maria::prelude::ops::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Migrate.html" title="db_sqlx_maria::prelude::ops::Migrate trait">Migrate</a></div><div class="item-right docblock-short"><p>database migrations</p>

View file

@ -1 +1 @@
initSidebarItems({"trait":[["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]});
initSidebarItems({"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]});

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::prelude::ops - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::prelude::ops - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -1 +1 @@
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["dev","useful imports for supporting a new database"],["errors","represents all the ways a trait can fail using this crate"],["ops","meta operations like migration and connecting to a database"],["tests","Test utilities"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.AddNotification.html" title="struct db_sqlx_maria::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_maria::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.TrafficPattern.html" title="struct db_sqlx_maria::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_maria::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../db_sqlx_maria/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Connect.html#associatedtype.Pool" title="type db_sqlx_maria::prelude::Connect::Pool">Pool</a>, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="enum.DBError.html" title="enum db_sqlx_maria::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/db_sqlx_maria/lib.rs.html#106-901">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MCDatabase.html" title="trait db_sqlx_maria::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><script type="text/javascript" src="../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="db_sqlx_maria" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -1 +1 @@
initSidebarItems({"enum":[["ConnectionOptions","Connect to databse"]],"mod":[["dev",""],["errors","Error-handling utilities"],["prelude",""]],"struct":[["Conn","Use an existing database pool"],["Database",""],["Fresh",""],["InnerNotification","Represents notification"]]});
initSidebarItems({"enum":[["ConnectionOptions","Connect to database"]],"mod":[["dev",""],["errors","Error-handling utilities"],["prelude",""]],"struct":[["Conn","Use an existing database pool"],["Database",""],["Fresh",""],["InnerNotification","Represents notification"]]});

View file

@ -41,9 +41,9 @@
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_fetch" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#783-795">source</a></span><a href="#method.record_fetch" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_solve" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#798-810">source</a></span><a href="#method.record_solve" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.record_confirm" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#813-825">source</a></span><a href="#method.record_confirm" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_config_fetched" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#828-851">source</a></span><a href="#method.fetch_config_fetched" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_solve" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#854-875">source</a></span><a href="#method.fetch_solve" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_confirm" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#878-900">source</a></span><a href="#method.fetch_confirm" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_config_fetched" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#828-851">source</a></span><a href="#method.fetch_config_fetched" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_solve" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#854-875">source</a></span><a href="#method.fetch_solve" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fetch_confirm" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#878-900">source</a></span><a href="#method.fetch_confirm" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.MCDatabase.html#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>&gt;&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Migrate" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#95-103">source</a></span><a href="#impl-Migrate" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="prelude/trait.Migrate.html" title="trait db_sqlx_maria::prelude::Migrate">Migrate</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.migrate" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_maria/lib.rs.html#96-102">source</a></span><a href="#method.migrate" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.Migrate.html#tymethod.migrate" class="fnname">migrate</a>&lt;'life0, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_maria::prelude::dev::prelude::DBResult">DBResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class='docblock'><p>database specific error-type
run migrations <a href="prelude/trait.Migrate.html#tymethod.migrate">Read more</a></p>
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.62.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.62.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Database.html" title="struct db_sqlx_maria::Database">Database</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.62.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>

View file

@ -10,7 +10,7 @@
</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_postgres::dev::dev::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_postgres::dev::dev::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_postgres::dev::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_postgres::dev::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_postgres::dev::dev::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_postgres::dev::dev::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_postgres::dev::dev::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -24,7 +24,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_postgres::dev::dev::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_postgres::dev::dev::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_postgres::dev::dev::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_postgres::dev::dev::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_postgres::dev::dev::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -8,7 +8,7 @@
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_postgres::dev::dev::prelude::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_postgres::dev::dev::prelude::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_postgres::dev::dev::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_postgres::dev::dev::prelude::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_postgres::dev::dev::prelude::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_postgres::dev::dev::prelude::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_postgres::dev::dev::prelude::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -22,7 +22,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_postgres::dev::dev::prelude::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_postgres::dev::dev::prelude::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::dev::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::dev::prelude::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_postgres::dev::dev::prelude::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_postgres::dev::dev::prelude::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_postgres::dev::dev::prelude::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -1 +1 @@
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_postgres::dev::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_postgres::dev::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_postgres/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_postgres::dev::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_postgres::dev::dev::prelude - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_postgres/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_sqlx_postgres/lib.rs.html#106-907">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../../struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="db_sqlx_postgres" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -1 +1 @@
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["prelude","useful imports for users working with a supported database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"mod":[["prelude","useful imports for users working with a supported database"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_postgres::dev::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_postgres::dev::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_postgres/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_postgres::dev::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_postgres::dev::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_postgres/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../src/db_sqlx_postgres/lib.rs.html#106-907">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="db_sqlx_postgres" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

View file

@ -14,7 +14,7 @@
</div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_postgres::dev::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_postgres::dev::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_postgres::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_postgres::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_postgres::dev::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_postgres::dev::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_postgres::dev::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -29,7 +29,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_postgres::dev::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_postgres::dev::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_postgres::dev::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_postgres::dev::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_postgres::dev::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -6,7 +6,7 @@
</a><h2 class="location"><a href="#">Module ops</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#traits">Traits</a></li></ul></div></section><div id="sidebar-vars" data-name="ops" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../db_sqlx_postgres/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Module <a href="../../index.html">db_sqlx_postgres</a>::<wbr><a href="../index.html">dev</a>::<wbr><a class="mod" href="#">ops</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/db_core/lib.rs.html#39">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>meta operations like migration and connecting to a database</p>
</div></details><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::ops::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::ops::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_postgres::dev::ops::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_postgres::dev::ops::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Migrate.html" title="db_sqlx_postgres::dev::ops::Migrate trait">Migrate</a></div><div class="item-right docblock-short"><p>database migrations</p>

View file

@ -1 +1 @@
initSidebarItems({"trait":[["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]});
initSidebarItems({"trait":[["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["Migrate","database migrations"]]});

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_postgres::dev::ops - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_postgres::dev::ops - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.js"></script><script defer src="../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../db_sqlx_postgres/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -8,7 +8,7 @@
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AddNotification.html" title="db_sqlx_postgres::dev::prelude::dev::AddNotification struct">AddNotification</a></div><div class="item-right docblock-short"><p>Data required to add notification</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Captcha.html" title="db_sqlx_postgres::dev::prelude::dev::Captcha struct">Captcha</a></div><div class="item-right docblock-short"><p>Data representing a captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_postgres::dev::prelude::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data requried to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.CreateCaptcha.html" title="db_sqlx_postgres::dev::prelude::dev::CreateCaptcha struct">CreateCaptcha</a></div><div class="item-right docblock-short"><p>data required to create new captcha</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Level.html" title="db_sqlx_postgres::dev::prelude::dev::Level struct">Level</a></div><div class="item-right docblock-short"><p>Level struct that describes threshold-difficulty factor mapping</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NameHash.html" title="db_sqlx_postgres::dev::prelude::dev::NameHash struct">NameHash</a></div><div class="item-right docblock-short"><p>type encapsulating username and hashed password of a user</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Notification.html" title="db_sqlx_postgres::dev::prelude::dev::Notification struct">Notification</a></div><div class="item-right docblock-short"><p>Represents notification</p>
@ -22,7 +22,7 @@
</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Login.html" title="db_sqlx_postgres::dev::prelude::dev::Login enum">Login</a></div><div class="item-right docblock-short"><p>types of credentials used as identifiers during login</p>
</div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.CloneSPDatabase.html" title="db_sqlx_postgres::dev::prelude::dev::CloneSPDatabase trait">CloneSPDatabase</a></div><div class="item-right docblock-short"><p>Trait to clone MCDatabase</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::prelude::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create databse connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Connect.html" title="db_sqlx_postgres::dev::prelude::dev::Connect trait">Connect</a></div><div class="item-right docblock-short"><p>Create database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DBOps.html" title="db_sqlx_postgres::dev::prelude::dev::DBOps trait">DBOps</a></div><div class="item-right docblock-short"><p>Database operations trait(migrations, pool creation and fetching connection from pool)</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.GetConnection.html" title="db_sqlx_postgres::dev::prelude::dev::GetConnection trait">GetConnection</a></div><div class="item-right docblock-short"><p>Get database connection</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MCDatabase.html" title="db_sqlx_postgres::dev::prelude::dev::MCDatabase trait">MCDatabase</a></div><div class="item-right docblock-short"><p>mCaptchas database requirements. To implement support for $Database, kindly implement this

View file

@ -1 +1 @@
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data requried to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create databse connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});
initSidebarItems({"attr":[["async_trait",""]],"enum":[["DBError","Error data structure grouping various error subtypes"],["Login","types of credentials used as identifiers during login"]],"struct":[["AddNotification","Data required to add notification"],["Captcha","Data representing a captcha"],["CreateCaptcha","data required to create new captcha"],["Level","Level struct that describes threshold-difficulty factor mapping"],["NameHash","type encapsulating username and hashed password of a user"],["Notification","Represents notification"],["Register","Data required to register a new user"],["Secret","datastructure representing a users secret"],["StatsUnixTimestamp","Captcha statistics with time recorded in UNIX epoch formats"],["TrafficPattern","Users traffic pattern; used in generating a captcha configuration"],["UpdateEmail","data required to update them email of a user"]],"trait":[["CloneSPDatabase","Trait to clone MCDatabase"],["Connect","Create database connection"],["DBOps","Database operations trait(migrations, pool creation and fetching connection from pool)"],["GetConnection","Get database connection"],["MCDatabase","mCaptchas database requirements. To implement support for $Database, kindly implement this trait."],["Migrate","database migrations"]],"type":[["BoxDynError","Convenience type alias for grouping driver-specific errors"],["DBResult","Generic result data structure"]]});

View file

@ -13,7 +13,7 @@
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.to" class="structfield small-section-header"><a href="#structfield.to" class="anchor field"></a><code>to: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>who is the notification addressed to?</p>
</div><span id="structfield.from" class="structfield small-section-header"><a href="#structfield.from" class="anchor field"></a><code>from: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>notification sender</p>
</div><span id="structfield.heading" class="structfield small-section-header"><a href="#structfield.heading" class="anchor field"></a><code>heading: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>heading of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>mesage of the notification</p>
</div><span id="structfield.message" class="structfield small-section-header"><a href="#structfield.message" class="anchor field"></a><code>message: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>message of the notification</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../prelude/struct.AddNotification.html" title="struct db_sqlx_postgres::prelude::AddNotification">AddNotification</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#281">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="data requried to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_postgres::dev::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="data required to create new captcha"><meta name="keywords" content="rust, rustlang, rust-lang, CreateCaptcha"><title>CreateCaptcha in db_sqlx_postgres::dev::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_postgres/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
pub duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a>,
pub description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
pub key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>,
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data requried to create new captcha</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>data required to create new captcha</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.duration" class="structfield small-section-header"><a href="#structfield.duration" class="anchor field"></a><code>duration: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i32.html">i32</a></code></span><div class="docblock"><p>cool down duration</p>
</div><span id="structfield.description" class="structfield small-section-header"><a href="#structfield.description" class="anchor field"></a><code>description: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>description of the captcha</p>
</div><span id="structfield.key" class="structfield small-section-header"><a href="#structfield.key" class="anchor field"></a><code>key: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a></code></span><div class="docblock"><p>secret key of the captcha</p>

View file

@ -11,7 +11,7 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Users traffic pattern; used in generating a captcha configuration</p>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.avg_traffic" class="structfield small-section-header"><a href="#structfield.avg_traffic" class="anchor field"></a><code>avg_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>average traffic of users website</p>
</div><span id="structfield.peak_sustainable_traffic" class="structfield small-section-header"><a href="#structfield.peak_sustainable_traffic" class="anchor field"></a><code>peak_sustainable_traffic: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a></code></span><div class="docblock"><p>the peak traffic that the users website can handle</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>trafic that bought the users website down; optional</p>
</div><span id="structfield.broke_my_site_traffic" class="structfield small-section-header"><a href="#structfield.broke_my_site_traffic" class="anchor field"></a><code>broke_my_site_traffic: <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.u32.html">u32</a>&gt;</code></span><div class="docblock"><p>traffic that bought the users website down; optional</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.62.1/src/core/clone.rs.html#133-135">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.62.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../prelude/struct.TrafficPattern.html" title="struct db_sqlx_postgres::prelude::TrafficPattern">TrafficPattern</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#294">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.62.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>

View file

@ -1,4 +1,4 @@
<!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="Create databse connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_postgres::dev::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<!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="Create database connection"><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>Connect in db_sqlx_postgres::dev::prelude::dev - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../../storage.js"></script><script src="../../../../crates.js"></script><script defer src="../../../../main.js"></script>
<noscript><link rel="stylesheet" href="../../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../../favicon.svg"></head><body class="rustdoc trait"><!--[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">&#9776;</button><a class="sidebar-logo" href="../../../../db_sqlx_postgres/index.html"><div class="logo-container"><img class="rust-logo" src="../../../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
@ -8,7 +8,7 @@
type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a>;
fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait</span>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create databse connection</p>
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create database connection</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Pool" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#37">source</a></div><h4 class="code-header">type <a href="#associatedtype.Pool" class="associatedtype">Pool</a>: <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a></h4></div></summary><div class="docblock"><p>database specific pool-type</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.connect" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/ops.rs.html#40">source</a></div><h4 class="code-header">fn <a href="#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../../../prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>database specific error-type
create connection pool</p>

View file

@ -76,8 +76,8 @@ trait.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_fetch" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#237">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fnname">record_fetch</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#240">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fnname">record_solve</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.record_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#243">source</a></div><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fnname">record_confirm</a>&lt;'life0, 'life1, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.unit.html">()</a>, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>record PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>featch PoWConfig confirms</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_config_fetched" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#246">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fnname">fetch_config_fetched</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_solve" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#249">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fnname">fetch_solve</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig solves</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.fetch_confirm" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../../src/db_core/lib.rs.html#252">source</a></div><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fnname">fetch_confirm</a>&lt;'life0, 'life1, 'life2, 'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'life0 self, <br>&nbsp;&nbsp;&nbsp;&nbsp;user: &amp;'life1 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;'life2 <a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.str.html">str</a><br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.62.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.62.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.62.1/std/primitive.i64.html">i64</a>, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;, <a class="enum" href="../../../prelude/enum.DBError.html" title="enum db_sqlx_postgres::prelude::DBError">DBError</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.62.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait, <a class="struct" href="https://doc.rust-lang.org/1.62.1/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;'life0: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life1: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;'life2: 'async_trait,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></div></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"><section id="impl-MCDatabase" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../../../src/db_sqlx_postgres/lib.rs.html#106-907">source</a></span><a href="#impl-MCDatabase" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="../../../prelude/trait.MCDatabase.html" title="trait db_sqlx_postgres::prelude::MCDatabase">MCDatabase</a> for <a class="struct" href="../../../struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h3></section></div><script type="text/javascript" src="../../../../implementors/db_core/trait.MCDatabase.js" data-ignore-extern-crates="" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../../" data-current-crate="db_sqlx_postgres" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.1 (e092d0b6b 2022-07-16)" ></div>
</body></html>

Some files were not shown because too many files have changed in this diff Show more