Deploying to gh-libmedium from @ c23943a796 🚀

This commit is contained in:
Aravinth Manivannan 2021-10-31 18:11:51 +00:00
parent 74199299ba
commit f9603b4eaa
18 changed files with 68 additions and 21 deletions

View file

@ -1,3 +1,3 @@
(function() {var implementors = {};
implementors["libmedium"] = [{"text":"impl HttpServiceFactory for <a class=\"struct\" href=\"libmedium/meta/struct.build_details.html\" title=\"struct libmedium::meta::build_details\">build_details</a>","synthetic":false,"types":["libmedium::meta::build_details"]},{"text":"impl HttpServiceFactory for <a class=\"struct\" href=\"libmedium/proxy/struct.page.html\" title=\"struct libmedium::proxy::page\">page</a>","synthetic":false,"types":["libmedium::proxy::page"]}];
implementors["libmedium"] = [{"text":"impl HttpServiceFactory for <a class=\"struct\" href=\"libmedium/meta/struct.build_details.html\" title=\"struct libmedium::meta::build_details\">build_details</a>","synthetic":false,"types":["libmedium::meta::build_details"]},{"text":"impl HttpServiceFactory for <a class=\"struct\" href=\"libmedium/proxy/struct.index.html\" title=\"struct libmedium::proxy::index\">index</a>","synthetic":false,"types":["libmedium::proxy::index"]},{"text":"impl HttpServiceFactory for <a class=\"struct\" href=\"libmedium/proxy/struct.page.html\" title=\"struct libmedium::proxy::page\">page</a>","synthetic":false,"types":["libmedium::proxy::page"]}];
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,5 @@
<!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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../libmedium/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><h2 class="location">Crate libmedium</h2><div class="block version"><p>Version 0.1.0</p></div><a id="all-types" href="index.html"><p>Back to index</p></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">List of all items</span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span>
</span>
</h1><h3 id="Structs">Structs</h3><ul class="structs docblock"><li><a href="struct.Data.html">Data</a></li><li><a href="struct.SETTINGS.html">SETTINGS</a></li><li><a href="struct.Settings.html">Settings</a></li><li><a href="data/struct.Data.html">data::Data</a></li><li><a href="meta/struct.BuildDetails.html">meta::BuildDetails</a></li><li><a href="meta/struct.build_details.html">meta::build_details</a></li><li><a href="meta/routes/struct.Meta.html">meta::routes::Meta</a></li><li><a href="proxy/struct.GetPost.html">proxy::GetPost</a></li><li><a href="proxy/struct.Post.html">proxy::Post</a></li><li><a href="proxy/get_post/struct.GetPostPost.html">proxy::get_post::GetPostPost</a></li><li><a href="proxy/get_post/struct.GetPostPostContent.html">proxy::get_post::GetPostPostContent</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModel.html">proxy::get_post::GetPostPostContentBodyModel</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphs.html">proxy::get_post::GetPostPostContentBodyModelParagraphs</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphsIframe.html">proxy::get_post::GetPostPostContentBodyModelParagraphsIframe</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphsIframeMediaResource.html">proxy::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphsMarkups.html">proxy::get_post::GetPostPostContentBodyModelParagraphsMarkups</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphsMetadata.html">proxy::get_post::GetPostPostContentBodyModelParagraphsMetadata</a></li><li><a href="proxy/get_post/struct.GetPostPostCreator.html">proxy::get_post::GetPostPostCreator</a></li><li><a href="proxy/get_post/struct.ResponseData.html">proxy::get_post::ResponseData</a></li><li><a href="proxy/get_post/struct.Variables.html">proxy::get_post::Variables</a></li><li><a href="proxy/struct.page.html">proxy::page</a></li><li><a href="proxy/routes/struct.Proxy.html">proxy::routes::Proxy</a></li><li><a href="routes/struct.Routes.html">routes::Routes</a></li><li><a href="settings/struct.Server.html">settings::Server</a></li><li><a href="settings/struct.Settings.html">settings::Settings</a></li></ul><h3 id="Traits">Traits</h3><ul class="traits docblock"><li><a href="proxy/trait.StringUtils.html">proxy::StringUtils</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="fn.get_json_err.html">get_json_err</a></li><li><a href="fn.main.html">main</a></li><li><a href="meta/fn.services.html">meta::services</a></li><li><a href="proxy/fn.services.html">proxy::services</a></li><li><a href="routes/fn.services.html">routes::services</a></li><li><a href="fn.services.html">services</a></li><li><a href="settings/fn.check_url.html">settings::check_url</a></li></ul><h3 id="Typedefs">Typedefs</h3><ul class="typedefs docblock"><li><a href="type.AppData.html">AppData</a></li><li><a href="data/type.AppData.html">data::AppData</a></li><li><a href="proxy/get_post/type.Boolean.html">proxy::get_post::Boolean</a></li><li><a href="proxy/get_post/type.Float.html">proxy::get_post::Float</a></li><li><a href="proxy/get_post/type.ID.html">proxy::get_post::ID</a></li><li><a href="proxy/get_post/type.Int.html">proxy::get_post::Int</a></li></ul><h3 id="Constants">Constants</h3><ul class="constants docblock"><li><a href="constant.CACHE_AGE.html">CACHE_AGE</a></li><li><a href="constant.GIT_COMMIT_HASH.html">GIT_COMMIT_HASH</a></li><li><a href="constant.PKG_DESCRIPTION.html">PKG_DESCRIPTION</a></li><li><a href="constant.PKG_HOMEPAGE.html">PKG_HOMEPAGE</a></li><li><a href="constant.PKG_NAME.html">PKG_NAME</a></li><li><a href="constant.V1_API_ROUTES.html">V1_API_ROUTES</a></li><li><a href="constant.VERSION.html">VERSION</a></li><li><a href="proxy/get_post/constant.OPERATION_NAME.html">proxy::get_post::OPERATION_NAME</a></li><li><a href="proxy/get_post/constant.QUERY.html">proxy::get_post::QUERY</a></li><li><a href="proxy/get_post/constant.__QUERY_WORKAROUND.html">proxy::get_post::__QUERY_WORKAROUND</a></li><li><a href="routes/constant.ROUTES.html">routes::ROUTES</a></li></ul></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
</h1><h3 id="Structs">Structs</h3><ul class="structs docblock"><li><a href="struct.Data.html">Data</a></li><li><a href="struct.SETTINGS.html">SETTINGS</a></li><li><a href="struct.Settings.html">Settings</a></li><li><a href="data/struct.Data.html">data::Data</a></li><li><a href="meta/struct.BuildDetails.html">meta::BuildDetails</a></li><li><a href="meta/struct.build_details.html">meta::build_details</a></li><li><a href="meta/routes/struct.Meta.html">meta::routes::Meta</a></li><li><a href="proxy/struct.GetPost.html">proxy::GetPost</a></li><li><a href="proxy/struct.Post.html">proxy::Post</a></li><li><a href="proxy/get_post/struct.GetPostPost.html">proxy::get_post::GetPostPost</a></li><li><a href="proxy/get_post/struct.GetPostPostContent.html">proxy::get_post::GetPostPostContent</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModel.html">proxy::get_post::GetPostPostContentBodyModel</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphs.html">proxy::get_post::GetPostPostContentBodyModelParagraphs</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphsIframe.html">proxy::get_post::GetPostPostContentBodyModelParagraphsIframe</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphsIframeMediaResource.html">proxy::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphsMarkups.html">proxy::get_post::GetPostPostContentBodyModelParagraphsMarkups</a></li><li><a href="proxy/get_post/struct.GetPostPostContentBodyModelParagraphsMetadata.html">proxy::get_post::GetPostPostContentBodyModelParagraphsMetadata</a></li><li><a href="proxy/get_post/struct.GetPostPostCreator.html">proxy::get_post::GetPostPostCreator</a></li><li><a href="proxy/get_post/struct.ResponseData.html">proxy::get_post::ResponseData</a></li><li><a href="proxy/get_post/struct.Variables.html">proxy::get_post::Variables</a></li><li><a href="proxy/struct.index.html">proxy::index</a></li><li><a href="proxy/struct.page.html">proxy::page</a></li><li><a href="proxy/routes/struct.Proxy.html">proxy::routes::Proxy</a></li><li><a href="routes/struct.Routes.html">routes::Routes</a></li><li><a href="settings/struct.Server.html">settings::Server</a></li><li><a href="settings/struct.Settings.html">settings::Settings</a></li></ul><h3 id="Traits">Traits</h3><ul class="traits docblock"><li><a href="proxy/trait.StringUtils.html">proxy::StringUtils</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="fn.get_json_err.html">get_json_err</a></li><li><a href="fn.main.html">main</a></li><li><a href="meta/fn.services.html">meta::services</a></li><li><a href="proxy/fn.services.html">proxy::services</a></li><li><a href="routes/fn.services.html">routes::services</a></li><li><a href="fn.services.html">services</a></li><li><a href="settings/fn.check_url.html">settings::check_url</a></li></ul><h3 id="Typedefs">Typedefs</h3><ul class="typedefs docblock"><li><a href="type.AppData.html">AppData</a></li><li><a href="data/type.AppData.html">data::AppData</a></li><li><a href="proxy/get_post/type.Boolean.html">proxy::get_post::Boolean</a></li><li><a href="proxy/get_post/type.Float.html">proxy::get_post::Float</a></li><li><a href="proxy/get_post/type.ID.html">proxy::get_post::ID</a></li><li><a href="proxy/get_post/type.Int.html">proxy::get_post::Int</a></li></ul><h3 id="Constants">Constants</h3><ul class="constants docblock"><li><a href="constant.CACHE_AGE.html">CACHE_AGE</a></li><li><a href="constant.GIT_COMMIT_HASH.html">GIT_COMMIT_HASH</a></li><li><a href="constant.PKG_DESCRIPTION.html">PKG_DESCRIPTION</a></li><li><a href="constant.PKG_HOMEPAGE.html">PKG_HOMEPAGE</a></li><li><a href="constant.PKG_NAME.html">PKG_NAME</a></li><li><a href="constant.V1_API_ROUTES.html">V1_API_ROUTES</a></li><li><a href="constant.VERSION.html">VERSION</a></li><li><a href="proxy/constant.INDEX.html">proxy::INDEX</a></li><li><a href="proxy/get_post/constant.OPERATION_NAME.html">proxy::get_post::OPERATION_NAME</a></li><li><a href="proxy/get_post/constant.QUERY.html">proxy::get_post::QUERY</a></li><li><a href="proxy/get_post/constant.__QUERY_WORKAROUND.html">proxy::get_post::__QUERY_WORKAROUND</a></li><li><a href="routes/constant.ROUTES.html">routes::ROUTES</a></li></ul></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
<script src="../main.js"></script>
</body></html>

View file

@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `GIT_COMMIT_HASH` constant in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, GIT_COMMIT_HASH"><title>GIT_COMMIT_HASH in libmedium - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../libmedium/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">libmedium</a></h2><div id="sidebar-vars" data-name="GIT_COMMIT_HASH" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">GIT_COMMIT_HASH</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><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/libmedium/main.rs.html#43" title="goto source code">[src]</a></span></h1><pre class="rust const"><code>pub const GIT_COMMIT_HASH: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a> = &quot;6ea970e7a6914cdb2c5ffc8864a3a693c4485010&quot;;</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `GIT_COMMIT_HASH` constant in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, GIT_COMMIT_HASH"><title>GIT_COMMIT_HASH in libmedium - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings" ></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../libmedium/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="index.html">libmedium</a></h2><div id="sidebar-vars" data-name="GIT_COMMIT_HASH" data-ty="constant" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Constant <a href="index.html">libmedium</a>::<wbr><a class="constant" href="#">GIT_COMMIT_HASH</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><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/libmedium/main.rs.html#43" title="goto source code">[src]</a></span></h1><pre class="rust const"><code>pub const GIT_COMMIT_HASH: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.56.0/std/primitive.str.html">str</a> = &quot;c23943a7960ebbba66758572a11616cf464d1742&quot;;</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="libmedium" data-search-index-js="../search-index.js" data-search-js="../search.js"></div>
<script src="../main.js"></script>
</body></html>

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `services` fn in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, services"><title>services in libmedium::proxy - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../libmedium/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a></h2><div id="sidebar-vars" data-name="services" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="fn" href="#">services</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><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#141-143" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub fn services(cfg: &amp;mut ServiceConfig)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `services` fn in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, services"><title>services in libmedium::proxy - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../libmedium/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><h2 class="location">Other items in<br><a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a></h2><div id="sidebar-vars" data-name="services" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="fn" href="#">services</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><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#150-153" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub fn services(cfg: &amp;mut ServiceConfig)</code></pre></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<script src="../../main.js"></script>
</body></html>

View file

@ -1,6 +1,7 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `proxy` mod in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, proxy"><title>libmedium::proxy - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../libmedium/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module proxy</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="proxy" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">libmedium</a>::<wbr><a class="mod" href="#">proxy</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><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#17-167" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `proxy` mod in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, proxy"><title>libmedium::proxy - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../../libmedium/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Module proxy</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><div id="sidebar-vars" data-name="proxy" data-ty="mod" data-relpath="./"></div><script defer src="./sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">libmedium</a>::<wbr><a class="mod" href="#">proxy</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><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#17-178" title="goto source code">[src]</a></span></h1><h2 id="modules" class="section-header"><a href="#modules">Modules</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="mod" href="get_post/index.html" title="libmedium::proxy::get_post mod">get_post</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="mod" href="routes/index.html" title="libmedium::proxy::routes mod">routes</a></div><div class="item-right docblock-short"></div></div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.GetPost.html" title="libmedium::proxy::GetPost struct">GetPost</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.Post.html" title="libmedium::proxy::Post struct">Post</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.page.html" title="libmedium::proxy::page struct">page</a></div><div class="item-right docblock-short"></div></div><h2 id="traits" class="section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="struct" href="struct.GetPost.html" title="libmedium::proxy::GetPost struct">GetPost</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.Post.html" title="libmedium::proxy::Post struct">Post</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.index.html" title="libmedium::proxy::index struct">index</a></div><div class="item-right docblock-short"></div><div class="item-left module-item"><a class="struct" href="struct.page.html" title="libmedium::proxy::page struct">page</a></div><div class="item-right docblock-short"></div></div><h2 id="constants" class="section-header"><a href="#constants">Constants</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="constant" href="constant.INDEX.html" title="libmedium::proxy::INDEX constant">INDEX</a></div><div class="item-right docblock-short"></div></div><h2 id="traits" class="section-header"><a href="#traits">Traits</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="trait" href="trait.StringUtils.html" title="libmedium::proxy::StringUtils trait">StringUtils</a></div><div class="item-right docblock-short"></div></div><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
<div class="item-table"><div class="item-left module-item"><a class="fn" href="fn.services.html" title="libmedium::proxy::services fn">services</a></div><div class="item-right docblock-short"></div></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="libmedium" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div>
<script src="../../main.js"></script>

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
initSidebarItems({"fn":[["services",""]],"mod":[["get_post",""],["routes",""]],"struct":[["GetPost",""],["Post",""],["page",""]],"trait":[["StringUtils",""]]});
initSidebarItems({"constant":[["INDEX",""]],"fn":[["services",""]],"mod":[["get_post",""],["routes",""]],"struct":[["GetPost",""],["Post",""],["index",""],["page",""]],"trait":[["StringUtils",""]]});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -165,6 +165,17 @@
<span id="165">165</span>
<span id="166">166</span>
<span id="167">167</span>
<span id="168">168</span>
<span id="169">169</span>
<span id="170">170</span>
<span id="171">171</span>
<span id="172">172</span>
<span id="173">173</span>
<span id="174">174</span>
<span id="175">175</span>
<span id="176">176</span>
<span id="177">177</span>
<span id="178">178</span>
</pre><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2021 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
@ -191,14 +202,14 @@
<span class="kw">pub</span> <span class="kw">mod</span> <span class="ident">routes</span> {
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Proxy</span> {
<span class="kw">pub</span> <span class="ident">update</span>: <span class="kw-2">&amp;</span><span class="lifetime">&#39;static</span> <span class="ident">str</span>,
<span class="kw">pub</span> <span class="ident">index</span>: <span class="kw-2">&amp;</span><span class="lifetime">&#39;static</span> <span class="ident">str</span>,
<span class="kw">pub</span> <span class="ident">page</span>: <span class="kw-2">&amp;</span><span class="lifetime">&#39;static</span> <span class="ident">str</span>,
}
<span class="kw">impl</span> <span class="ident">Proxy</span> {
<span class="kw">pub</span> <span class="kw">const</span> <span class="kw">fn</span> <span class="ident">new</span>() <span class="op">-</span><span class="op">&gt;</span> <span class="self">Self</span> {
<span class="self">Self</span> {
<span class="ident">update</span>: <span class="string">&quot;/api/v1/update&quot;</span>,
<span class="ident">index</span>: <span class="string">&quot;/&quot;</span>,
<span class="ident">page</span>: <span class="string">&quot;/{username}/{post}&quot;</span>,
}
}
@ -271,12 +282,21 @@
<span class="kw">struct</span> <span class="ident">GetPost</span>;
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">TemplateOnce</span>)]</span>
<span class="attribute">#[<span class="ident">template</span>(<span class="ident">path</span> <span class="op">=</span> <span class="string">&quot;index.html&quot;</span>)]</span>
<span class="attribute">#[<span class="ident">template</span>(<span class="ident">path</span> <span class="op">=</span> <span class="string">&quot;post.html&quot;</span>)]</span>
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Post</span> {
<span class="kw">pub</span> <span class="ident">data</span>: <span class="ident">get_post::GetPostPost</span>,
<span class="kw">pub</span> <span class="ident">id</span>: <span class="ident">String</span>,
}
<span class="kw">const</span> <span class="ident">INDEX</span>: <span class="kw-2">&amp;</span><span class="ident">str</span> <span class="op">=</span> <span class="macro">include_str!</span>(<span class="string">&quot;../templates/index.html&quot;</span>);
<span class="attribute">#[<span class="ident">my_codegen::get</span>(<span class="ident">path</span> <span class="op">=</span> <span class="string">&quot;crate::V1_API_ROUTES.proxy.index&quot;</span>)]</span>
<span class="kw">async</span> <span class="kw">fn</span> <span class="ident">index</span>() <span class="op">-</span><span class="op">&gt;</span> <span class="kw">impl</span> <span class="ident">Responder</span> {
<span class="ident">HttpResponse::Ok</span>()
.<span class="ident">content_type</span>(<span class="string">&quot;text/html; charset=utf-8&quot;</span>)
.<span class="ident">body</span>(<span class="ident">INDEX</span>)
}
<span class="attribute">#[<span class="ident">my_codegen::get</span>(<span class="ident">path</span> <span class="op">=</span> <span class="string">&quot;crate::V1_API_ROUTES.proxy.page&quot;</span>)]</span>
<span class="kw">async</span> <span class="kw">fn</span> <span class="ident">page</span>(<span class="ident">path</span>: <span class="ident">web::Path</span><span class="op">&lt;</span>(<span class="ident">String</span>, <span class="ident">String</span>)<span class="op">&gt;</span>, <span class="ident">data</span>: <span class="ident">AppData</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="kw">impl</span> <span class="ident">Responder</span> {
<span class="kw">let</span> <span class="ident">post_id</span> <span class="op">=</span> <span class="ident">path</span>.<span class="number">1</span>.<span class="ident">split</span>(<span class="string">&quot;-&quot;</span>).<span class="ident">last</span>();
@ -307,6 +327,7 @@
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">services</span>(<span class="ident">cfg</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">web::ServiceConfig</span>) {
<span class="ident">cfg</span>.<span class="ident">service</span>(<span class="ident">page</span>);
<span class="ident">cfg</span>.<span class="ident">service</span>(<span class="ident">index</span>);
}
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">test</span>)]</span>
@ -323,6 +344,7 @@
<span class="string">&quot;/@ftrain/big-data-small-effort-b62607a43a8c&quot;</span>,
<span class="string">&quot;/geekculture/rest-api-best-practices-decouple-long-running-tasks-from-http-request-processing-9fab2921ace8&quot;</span>,
<span class="string">&quot;/illumination/5-bugs-that-turned-into-features-e9a0e972a4e7&quot;</span>,
<span class="string">&quot;/&quot;</span>
];
<span class="kw">for</span> <span class="ident">uri</span> <span class="kw">in</span> <span class="ident">urls</span>.<span class="ident">iter</span>() {