Deploying to gh-pages from @ 6b8ee754dd836dae3da3e3b5ead926f4854da629 🚀

This commit is contained in:
realaravinth
2024-01-04 19:50:02 +00:00
parent 64216a97bb
commit fcbc0b4910
275 changed files with 2494 additions and 1137 deletions

View File

@@ -444,6 +444,26 @@
<a href="#444" id="444">444</a>
<a href="#445" id="445">445</a>
<a href="#446" id="446">446</a>
<a href="#447" id="447">447</a>
<a href="#448" id="448">448</a>
<a href="#449" id="449">449</a>
<a href="#450" id="450">450</a>
<a href="#451" id="451">451</a>
<a href="#452" id="452">452</a>
<a href="#453" id="453">453</a>
<a href="#454" id="454">454</a>
<a href="#455" id="455">455</a>
<a href="#456" id="456">456</a>
<a href="#457" id="457">457</a>
<a href="#458" id="458">458</a>
<a href="#459" id="459">459</a>
<a href="#460" id="460">460</a>
<a href="#461" id="461">461</a>
<a href="#462" id="462">462</a>
<a href="#463" id="463">463</a>
<a href="#464" id="464">464</a>
<a href="#465" id="465">465</a>
<a href="#466" id="466">466</a>
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
@@ -648,6 +668,13 @@
captcha_key: <span class="kw-2">&amp;</span>str,
) -&gt; DBResult&lt;TrafficPattern&gt;;
<span class="doccomment">/// Get all easy captcha configurations on instance
</span><span class="kw">async fn </span>get_all_easy_captchas(
<span class="kw-2">&amp;</span><span class="self">self</span>,
limit: usize,
offset: usize,
) -&gt; DBResult&lt;Vec&lt;EasyCaptcha&gt;&gt;;
<span class="doccomment">/// Delete traffic configuration
</span><span class="kw">async fn </span>delete_traffic_pattern(
<span class="kw-2">&amp;</span><span class="self">self</span>,
@@ -829,6 +856,19 @@
</span><span class="kw">pub </span>message: <span class="kw-2">&amp;</span><span class="lifetime">&#39;a </span>str,
}
<span class="attr">#[derive(Default, PartialEq, Serialize, Deserialize, Clone, Debug)]
</span><span class="doccomment">/// Represents Easy captcha configuration
</span><span class="kw">pub struct </span>EasyCaptcha {
<span class="doccomment">/// traffic pattern of easy captcha
</span><span class="kw">pub </span>traffic_pattern: TrafficPattern,
<span class="doccomment">/// captcha key/sitekey
</span><span class="kw">pub </span>key: String,
<span class="doccomment">/// captcha description
</span><span class="kw">pub </span>description: String,
<span class="doccomment">/// Owner of the captcha configuration
</span><span class="kw">pub </span>username: String,
}
<span class="attr">#[derive(Default, PartialEq, Serialize, Deserialize, Clone, Debug)]
</span><span class="doccomment">/// User&#39;s traffic pattern; used in generating a captcha configuration
</span><span class="kw">pub struct </span>TrafficPattern {