mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-06-06 06:06:43 +00:00
587 lines
112 KiB
HTML
587 lines
112 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="mCaptcha’s database requirements. To implement support for $Database, kindly implement this trait."><title>MCDatabase in db_core - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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">☰</button><a class="logo-container" href="../db_core/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../db_core/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">MCDatabase</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.add_captcha_levels">add_captcha_levels</a></li><li><a href="#tymethod.add_traffic_pattern">add_traffic_pattern</a></li><li><a href="#tymethod.captcha_exists">captcha_exists</a></li><li><a href="#tymethod.create_captcha">create_captcha</a></li><li><a href="#tymethod.create_notification">create_notification</a></li><li><a href="#tymethod.delete_captcha">delete_captcha</a></li><li><a href="#tymethod.delete_captcha_levels">delete_captcha_levels</a></li><li><a href="#tymethod.delete_traffic_pattern">delete_traffic_pattern</a></li><li><a href="#tymethod.delete_user">delete_user</a></li><li><a href="#tymethod.email_exists">email_exists</a></li><li><a href="#tymethod.fetch_config_fetched">fetch_config_fetched</a></li><li><a href="#tymethod.fetch_confirm">fetch_confirm</a></li><li><a href="#tymethod.fetch_solve">fetch_solve</a></li><li><a href="#tymethod.get_all_unread_notifications">get_all_unread_notifications</a></li><li><a href="#tymethod.get_all_user_captchas">get_all_user_captchas</a></li><li><a href="#tymethod.get_captcha_config">get_captcha_config</a></li><li><a href="#tymethod.get_captcha_cooldown">get_captcha_cooldown</a></li><li><a href="#tymethod.get_captcha_levels">get_captcha_levels</a></li><li><a href="#tymethod.get_email">get_email</a></li><li><a href="#tymethod.get_password">get_password</a></li><li><a href="#tymethod.get_secret">get_secret</a></li><li><a href="#tymethod.get_secret_from_captcha">get_secret_from_captcha</a></li><li><a href="#tymethod.get_traffic_pattern">get_traffic_pattern</a></li><li><a href="#tymethod.mark_notification_read">mark_notification_read</a></li><li><a href="#tymethod.ping">ping</a></li><li><a href="#tymethod.record_confirm">record_confirm</a></li><li><a href="#tymethod.record_fetch">record_fetch</a></li><li><a href="#tymethod.record_solve">record_solve</a></li><li><a href="#tymethod.register">register</a></li><li><a href="#tymethod.update_captcha_key">update_captcha_key</a></li><li><a href="#tymethod.update_captcha_metadata">update_captcha_metadata</a></li><li><a href="#tymethod.update_email">update_email</a></li><li><a href="#tymethod.update_password">update_password</a></li><li><a href="#tymethod.update_secret">update_secret</a></li><li><a href="#tymethod.update_username">update_username</a></li><li><a href="#tymethod.username_exists">username_exists</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-Box%3Cdyn+MCDatabase%3E">Clone</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In db_core</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="index.html">db_core</a>::<wbr><a class="trait" href="#">MCDatabase</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/db_core/lib.rs.html#103-253">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait MCDatabase: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="trait.CloneSPDatabase.html" title="trait db_core::CloneSPDatabase">CloneSPDatabase</a> {
|
||
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 36 methods</span></summary> // Required methods
|
||
fn <a href="#tymethod.ping" class="fn">ping</a><'life0, 'async_trait>(
|
||
&'life0 self
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.register" class="fn">register</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="struct.Register.html" title="struct db_core::Register">Register</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.delete_user" class="fn">delete_user</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.username_exists" class="fn">username_exists</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_email" class="fn">get_email</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.email_exists" class="fn">email_exists</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
email: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.update_email" class="fn">update_email</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="struct.UpdateEmail.html" title="struct db_core::UpdateEmail">UpdateEmail</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_password" class="fn">get_password</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
l: &'life1 <a class="enum" href="enum.Login.html" title="enum db_core::Login">Login</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.NameHash.html" title="struct db_core::NameHash">NameHash</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.update_password" class="fn">update_password</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="struct.NameHash.html" title="struct db_core::NameHash">NameHash</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.update_username" class="fn">update_username</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
current: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
new: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_secret" class="fn">get_secret</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.Secret.html" title="struct db_core::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_secret_from_captcha" class="fn">get_secret_from_captcha</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.Secret.html" title="struct db_core::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.update_secret" class="fn">update_secret</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
secret: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.create_captcha" class="fn">create_captcha</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
p: &'life2 <a class="struct" href="struct.CreateCaptcha.html" title="struct db_core::CreateCaptcha">CreateCaptcha</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_captcha_config" class="fn">get_captcha_config</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.Captcha.html" title="struct db_core::Captcha">Captcha</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_all_user_captchas" class="fn">get_all_user_captchas</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Captcha.html" title="struct db_core::Captcha">Captcha</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.update_captcha_metadata" class="fn">update_captcha_metadata</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
p: &'life2 <a class="struct" href="struct.CreateCaptcha.html" title="struct db_core::CreateCaptcha">CreateCaptcha</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.update_captcha_key" class="fn">update_captcha_key</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
old_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
new_key: &'life3 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.add_captcha_levels" class="fn">add_captcha_levels</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
levels: &'life3 [<a class="struct" href="struct.Level.html" title="struct db_core::Level">Level</a>]
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.captcha_exists" class="fn">captcha_exists</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.delete_captcha_levels" class="fn">delete_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.delete_captcha" class="fn">delete_captcha</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_captcha_levels" class="fn">get_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Level.html" title="struct db_core::Level">Level</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_captcha_cooldown" class="fn">get_captcha_cooldown</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i32.html">i32</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.add_traffic_pattern" class="fn">add_traffic_pattern</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
pattern: &'life3 <a class="struct" href="struct.TrafficPattern.html" title="struct db_core::TrafficPattern">TrafficPattern</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_traffic_pattern" class="fn">get_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.TrafficPattern.html" title="struct db_core::TrafficPattern">TrafficPattern</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.delete_traffic_pattern" class="fn">delete_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.create_notification" class="fn">create_notification</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="struct.AddNotification.html" title="struct db_core::AddNotification">AddNotification</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_all_unread_notifications" class="fn">get_all_unread_notifications</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Notification.html" title="struct db_core::Notification">Notification</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.mark_notification_read" class="fn">mark_notification_read</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
id: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.record_fetch" class="fn">record_fetch</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.record_solve" class="fn">record_solve</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.record_confirm" class="fn">record_confirm</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.fetch_config_fetched" class="fn">fetch_config_fetched</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.fetch_solve" class="fn">fetch_solve</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.fetch_confirm" class="fn">fetch_confirm</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>>
|
||
<span class="where">where Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait</span>;
|
||
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>mCaptcha’s database requirements. To implement support for $Database, kindly implement this
|
||
trait.</p>
|
||
</div></details><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.ping" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#105">source</a><h4 class="code-header">fn <a href="#tymethod.ping" class="fn">ping</a><'life0, 'async_trait>(
|
||
&'life0 self
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,</span></h4></section></summary><div class="docblock"><p>ping DB</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.register" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#108">source</a><h4 class="code-header">fn <a href="#tymethod.register" class="fn">register</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="struct.Register.html" title="struct db_core::Register">Register</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>register a new user</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete_user" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#111">source</a><h4 class="code-header">fn <a href="#tymethod.delete_user" class="fn">delete_user</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>delete a user</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.username_exists" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#114">source</a><h4 class="code-header">fn <a href="#tymethod.username_exists" class="fn">username_exists</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>check if username exists</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_email" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#117">source</a><h4 class="code-header">fn <a href="#tymethod.get_email" class="fn">get_email</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>get user email</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.email_exists" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#120">source</a><h4 class="code-header">fn <a href="#tymethod.email_exists" class="fn">email_exists</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
email: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>check if email exists</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update_email" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#123">source</a><h4 class="code-header">fn <a href="#tymethod.update_email" class="fn">update_email</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="struct.UpdateEmail.html" title="struct db_core::UpdateEmail">UpdateEmail</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>update a user’s email</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_password" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#126">source</a><h4 class="code-header">fn <a href="#tymethod.get_password" class="fn">get_password</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
l: &'life1 <a class="enum" href="enum.Login.html" title="enum db_core::Login">Login</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.NameHash.html" title="struct db_core::NameHash">NameHash</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>get a user’s password</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update_password" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#129">source</a><h4 class="code-header">fn <a href="#tymethod.update_password" class="fn">update_password</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="struct.NameHash.html" title="struct db_core::NameHash">NameHash</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>update user’s password</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update_username" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#132">source</a><h4 class="code-header">fn <a href="#tymethod.update_username" class="fn">update_username</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
current: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
new: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>update username</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_secret" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#135">source</a><h4 class="code-header">fn <a href="#tymethod.get_secret" class="fn">get_secret</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.Secret.html" title="struct db_core::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>get a user’s secret</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_secret_from_captcha" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#138">source</a><h4 class="code-header">fn <a href="#tymethod.get_secret_from_captcha" class="fn">get_secret_from_captcha</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.Secret.html" title="struct db_core::Secret">Secret</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>get a user’s secret from a captcha key</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update_secret" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#141">source</a><h4 class="code-header">fn <a href="#tymethod.update_secret" class="fn">update_secret</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
secret: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>update a user’s secret</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.create_captcha" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#144">source</a><h4 class="code-header">fn <a href="#tymethod.create_captcha" class="fn">create_captcha</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
p: &'life2 <a class="struct" href="struct.CreateCaptcha.html" title="struct db_core::CreateCaptcha">CreateCaptcha</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>create new captcha</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_captcha_config" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#147">source</a><h4 class="code-header">fn <a href="#tymethod.get_captcha_config" class="fn">get_captcha_config</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.Captcha.html" title="struct db_core::Captcha">Captcha</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Get captcha config</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_all_user_captchas" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#150">source</a><h4 class="code-header">fn <a href="#tymethod.get_all_user_captchas" class="fn">get_all_user_captchas</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Captcha.html" title="struct db_core::Captcha">Captcha</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Get all captchas belonging to user</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update_captcha_metadata" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#153-157">source</a><h4 class="code-header">fn <a href="#tymethod.update_captcha_metadata" class="fn">update_captcha_metadata</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
p: &'life2 <a class="struct" href="struct.CreateCaptcha.html" title="struct db_core::CreateCaptcha">CreateCaptcha</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>update captcha metadata; doesn’t change captcha key</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update_captcha_key" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#160-165">source</a><h4 class="code-header">fn <a href="#tymethod.update_captcha_key" class="fn">update_captcha_key</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
old_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
new_key: &'life3 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait,</span></h4></section></summary><div class="docblock"><p>update captcha key; doesn’t change metadata</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.add_captcha_levels" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#168-173">source</a><h4 class="code-header">fn <a href="#tymethod.add_captcha_levels" class="fn">add_captcha_levels</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
levels: &'life3 [<a class="struct" href="struct.Level.html" title="struct db_core::Level">Level</a>]
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Add levels to captcha</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.captcha_exists" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#176-180">source</a><h4 class="code-header">fn <a href="#tymethod.captcha_exists" class="fn">captcha_exists</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>check if captcha exists</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete_captcha_levels" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#183-187">source</a><h4 class="code-header">fn <a href="#tymethod.delete_captcha_levels" class="fn">delete_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Delete all levels of a captcha</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete_captcha" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#190">source</a><h4 class="code-header">fn <a href="#tymethod.delete_captcha" class="fn">delete_captcha</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Delete captcha</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_captcha_levels" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#193-197">source</a><h4 class="code-header">fn <a href="#tymethod.get_captcha_levels" class="fn">get_captcha_levels</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Level.html" title="struct db_core::Level">Level</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Get captcha levels</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_captcha_cooldown" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#200">source</a><h4 class="code-header">fn <a href="#tymethod.get_captcha_cooldown" class="fn">get_captcha_cooldown</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
captcha_key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i32.html">i32</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Get captcha’s cooldown period</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.add_traffic_pattern" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#203-208">source</a><h4 class="code-header">fn <a href="#tymethod.add_traffic_pattern" class="fn">add_traffic_pattern</a><'life0, 'life1, 'life2, 'life3, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
pattern: &'life3 <a class="struct" href="struct.TrafficPattern.html" title="struct db_core::TrafficPattern">TrafficPattern</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,
|
||
'life3: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Add traffic configuration</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_traffic_pattern" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#211-215">source</a><h4 class="code-header">fn <a href="#tymethod.get_traffic_pattern" class="fn">get_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="struct.TrafficPattern.html" title="struct db_core::TrafficPattern">TrafficPattern</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Get traffic configuration</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.delete_traffic_pattern" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#218-222">source</a><h4 class="code-header">fn <a href="#tymethod.delete_traffic_pattern" class="fn">delete_traffic_pattern</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
captcha_key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>Delete traffic configuration</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.create_notification" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#225">source</a><h4 class="code-header">fn <a href="#tymethod.create_notification" class="fn">create_notification</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
p: &'life1 <a class="struct" href="struct.AddNotification.html" title="struct db_core::AddNotification">AddNotification</a><'_>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>create new notification</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_all_unread_notifications" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#228-231">source</a><h4 class="code-header">fn <a href="#tymethod.get_all_unread_notifications" class="fn">get_all_unread_notifications</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="struct.Notification.html" title="struct db_core::Notification">Notification</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>get all unread notifications</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.mark_notification_read" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#234">source</a><h4 class="code-header">fn <a href="#tymethod.mark_notification_read" class="fn">mark_notification_read</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
username: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
id: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i32.html">i32</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>mark a notification read</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.record_fetch" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#237">source</a><h4 class="code-header">fn <a href="#tymethod.record_fetch" class="fn">record_fetch</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>record PoWConfig fetches</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.record_solve" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#240">source</a><h4 class="code-header">fn <a href="#tymethod.record_solve" class="fn">record_solve</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>record PoWConfig solves</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.record_confirm" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#243">source</a><h4 class="code-header">fn <a href="#tymethod.record_confirm" class="fn">record_confirm</a><'life0, 'life1, 'async_trait>(
|
||
&'life0 self,
|
||
key: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.unit.html">()</a>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,</span></h4></section></summary><div class="docblock"><p>record PoWConfig confirms</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.fetch_config_fetched" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#246">source</a><h4 class="code-header">fn <a href="#tymethod.fetch_config_fetched" class="fn">fetch_config_fetched</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>fetch PoWConfig fetches</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.fetch_solve" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#249">source</a><h4 class="code-header">fn <a href="#tymethod.fetch_solve" class="fn">fetch_solve</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>fetch PoWConfig solves</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.fetch_confirm" class="method"><a class="srclink rightside" href="../src/db_core/lib.rs.html#252">source</a><h4 class="code-header">fn <a href="#tymethod.fetch_confirm" class="fn">fetch_confirm</a><'life0, 'life1, 'life2, 'async_trait>(
|
||
&'life0 self,
|
||
user: &'life1 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>,
|
||
key: &'life2 <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.str.html">str</a>
|
||
) -> <a class="struct" href="https://doc.rust-lang.org/1.69.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="type" href="errors/type.DBResult.html" title="type db_core::errors::DBResult">DBResult</a><<a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.i64.html">i64</a>>>> + <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait>><span class="where fmt-newline">where
|
||
Self: 'async_trait,
|
||
'life0: 'async_trait,
|
||
'life1: 'async_trait,
|
||
'life2: 'async_trait,</span></h4></section></summary><div class="docblock"><p>fetch PoWConfig confirms</p>
|
||
</div></details></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="toggle implementors-toggle" open><summary><section id="impl-Clone-for-Box%3Cdyn+MCDatabase%3E" class="impl"><a class="srclink rightside" href="../src/db_core/lib.rs.html#351-355">source</a><a href="#impl-Clone-for-Box%3Cdyn+MCDatabase%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.MCDatabase.html" title="trait db_core::MCDatabase">MCDatabase</a>></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="srclink rightside" href="../src/db_core/lib.rs.html#352-354">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.69.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> Self</h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.69.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.69.0/src/core/clone.rs.html#132-134">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.69.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.reference.html">&Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.69.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../implementors/db_core/trait.MCDatabase.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="db_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html> |