Browse Source

Deploying to docs from @ Dusk-Labs/dim@ed5e1b8c4c406940563dc8e4deec4a545583c7ac 🚀

vgarleanu 2 years ago
parent
commit
28408d9ff1

+ 1 - 1
483/merge/dim/routes/library/fn.get_all_library.html

@@ -6,7 +6,7 @@
         </a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In dim::routes::library</a></h2><div id="sidebar-vars" data-name="get_all_library" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../dim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
                                 <a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div>
                         </div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
-    <h1 class="fqn"><span class="in-band">Function <a href="../../index.html">dim</a>::<wbr><a href="../index.html">routes</a>::<wbr><a href="index.html">library</a>::<wbr><a class="fn" href="#">get_all_library</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/dim/routes/library.rs.html#327-359">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub async fn get_all_library(<br>&nbsp;&nbsp;&nbsp;&nbsp;conn: <a class="type" href="../../core/type.DbConnection.html" title="type dim::core::DbConnection">DbConnection</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;_user: <a class="struct" href="../../../database/user/struct.User.html" title="struct database::user::User">User</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;impl <a class="trait" href="https://docs.rs/warp/0.3.2/warp/reply/trait.Reply.html" title="trait warp::reply::Reply">Reply</a>, <a class="enum" href="../../errors/enum.DimError.html" title="enum dim::errors::DimError">DimError</a>&gt;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Method mapped to <code>GET /api/v1/library/&lt;id&gt;/media</code> returns all the movies/tv shows that belong
+    <h1 class="fqn"><span class="in-band">Function <a href="../../index.html">dim</a>::<wbr><a href="../index.html">routes</a>::<wbr><a href="index.html">library</a>::<wbr><a class="fn" href="#">get_all_library</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/dim/routes/library.rs.html#322-354">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub async fn get_all_library(<br>&nbsp;&nbsp;&nbsp;&nbsp;conn: <a class="type" href="../../core/type.DbConnection.html" title="type dim::core::DbConnection">DbConnection</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;_user: <a class="struct" href="../../../database/user/struct.User.html" title="struct database::user::User">User</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;impl <a class="trait" href="https://docs.rs/warp/0.3.2/warp/reply/trait.Reply.html" title="trait warp::reply::Reply">Reply</a>, <a class="enum" href="../../errors/enum.DimError.html" title="enum dim::errors::DimError">DimError</a>&gt;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Method mapped to <code>GET /api/v1/library/&lt;id&gt;/media</code> returns all the movies/tv shows that belong
 to the library with the id supplied. Method can only be accessed by authenticated users.</p>
 <h2 id="arguments"><a href="#arguments">Arguments</a></h2>
 <ul>

File diff suppressed because it is too large
+ 0 - 0
483/merge/dim/routes/library/fn.get_all_unmatched_media.html


+ 1 - 1
483/merge/dim/routes/library/fn.get_self.html

@@ -6,7 +6,7 @@
         </a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In dim::routes::library</a></h2><div id="sidebar-vars" data-name="get_self" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../dim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
                                 <a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div>
                         </div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
-    <h1 class="fqn"><span class="in-band">Function <a href="../../index.html">dim</a>::<wbr><a href="../index.html">routes</a>::<wbr><a href="index.html">library</a>::<wbr><a class="fn" href="#">get_self</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/dim/routes/library.rs.html#311-318">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub async fn get_self(<br>&nbsp;&nbsp;&nbsp;&nbsp;conn: <a class="type" href="../../core/type.DbConnection.html" title="type dim::core::DbConnection">DbConnection</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;_user: <a class="struct" href="../../../database/user/struct.User.html" title="struct database::user::User">User</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;impl <a class="trait" href="https://docs.rs/warp/0.3.2/warp/reply/trait.Reply.html" title="trait warp::reply::Reply">Reply</a>, <a class="enum" href="../../errors/enum.DimError.html" title="enum dim::errors::DimError">DimError</a>&gt;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Method mapped to <code>GET /api/v1/library/&lt;id&gt;</code> returns info about the library with the supplied
+    <h1 class="fqn"><span class="in-band">Function <a href="../../index.html">dim</a>::<wbr><a href="../index.html">routes</a>::<wbr><a href="index.html">library</a>::<wbr><a class="fn" href="#">get_self</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/dim/routes/library.rs.html#306-313">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub async fn get_self(<br>&nbsp;&nbsp;&nbsp;&nbsp;conn: <a class="type" href="../../core/type.DbConnection.html" title="type dim::core::DbConnection">DbConnection</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;_user: <a class="struct" href="../../../database/user/struct.User.html" title="struct database::user::User">User</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;impl <a class="trait" href="https://docs.rs/warp/0.3.2/warp/reply/trait.Reply.html" title="trait warp::reply::Reply">Reply</a>, <a class="enum" href="../../errors/enum.DimError.html" title="enum dim::errors::DimError">DimError</a>&gt;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Method mapped to <code>GET /api/v1/library/&lt;id&gt;</code> returns info about the library with the supplied
 id. Method can only be accessed by authenticated users.</p>
 <h2 id="arguments"><a href="#arguments">Arguments</a></h2>
 <ul>

+ 1 - 1
483/merge/dim/routes/library/index.html

@@ -6,7 +6,7 @@
         </a><h2 class="location"><a href="#">Module library</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#modules">Modules</a></li><li><a href="#functions">Functions</a></li></ul></div></section><div id="sidebar-vars" data-name="library" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../dim/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><div id="settings-menu" tabindex="-1">
                                 <a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div>
                         </div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
-    <h1 class="fqn"><span class="in-band">Module <a href="../../index.html">dim</a>::<wbr><a href="../index.html">routes</a>::<wbr><a class="mod" href="#">library</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/dim/routes/library.rs.html#1-445">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
+    <h1 class="fqn"><span class="in-band">Module <a href="../../index.html">dim</a>::<wbr><a href="../index.html">routes</a>::<wbr><a class="mod" href="#">library</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../../src/dim/routes/library.rs.html#1-440">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2>
 <div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="filters/index.html" title="dim::routes::library::filters mod">filters</a></div><div class="item-right docblock-short"></div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
 <div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.get_all_library.html" title="dim::routes::library::get_all_library fn">get_all_library</a></div><div class="item-right docblock-short"><p>Method mapped to <code>GET /api/v1/library/&lt;id&gt;/media</code> returns all the movies/tv shows that belong
 to the library with the id supplied. Method can only be accessed by authenticated users.</p>

+ 0 - 10
483/merge/src/dim/routes/library.rs.html

@@ -445,11 +445,6 @@
 <span id="438">438</span>
 <span id="439">439</span>
 <span id="440">440</span>
-<span id="441">441</span>
-<span id="442">442</span>
-<span id="443">443</span>
-<span id="444">444</span>
-<span id="445">445</span>
 </pre><pre class="rust"><code><span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::core::DbConnection</span>;
 <span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::core::EventTx</span>;
 <span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::errors</span>;
@@ -728,11 +723,6 @@
             <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tx</span> <span class="op">=</span> <span class="ident">database::write_tx</span>(<span class="kw-2">&amp;mut</span> <span class="ident">lock</span>).<span class="kw">await</span><span class="question-mark">?</span>;
 
             <span class="ident">Library::delete</span>(<span class="kw-2">&amp;mut</span> <span class="ident">tx</span>, <span class="ident">id</span>).<span class="kw">await</span><span class="question-mark">?</span>;
-
-            <span class="ident">tx</span>.<span class="ident">commit</span>().<span class="kw">await</span><span class="question-mark">?</span>;
-
-            <span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tx</span> <span class="op">=</span> <span class="ident">database::write_tx</span>(<span class="kw-2">&amp;mut</span> <span class="ident">lock</span>).<span class="kw">await</span><span class="question-mark">?</span>;
-
             <span class="ident">Media::delete_by_lib_id</span>(<span class="kw-2">&amp;mut</span> <span class="ident">tx</span>, <span class="ident">id</span>).<span class="kw">await</span><span class="question-mark">?</span>;
             <span class="ident">MediaFile::delete_by_lib_id</span>(<span class="kw-2">&amp;mut</span> <span class="ident">tx</span>, <span class="ident">id</span>).<span class="kw">await</span><span class="question-mark">?</span>;
 

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