Deploying to gh-libmedium from @ 14c7225f82
🚀
This commit is contained in:
parent
244e3a7380
commit
ce33ef9b0b
23 changed files with 128 additions and 31 deletions
|
@ -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.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"]}];
|
||||
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.assets.html\" title=\"struct libmedium::proxy::assets\">assets</a>","synthetic":false,"types":["libmedium::proxy::assets"]},{"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
|
@ -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">☰</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">−</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="data/struct.GetPost.html">data::GetPost</a></li><li><a href="data/get_post/struct.GetPostPost.html">data::get_post::GetPostPost</a></li><li><a href="data/get_post/struct.GetPostPostContent.html">data::get_post::GetPostPostContent</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModel.html">data::get_post::GetPostPostContentBodyModel</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphs.html">data::get_post::GetPostPostContentBodyModelParagraphs</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphsIframe.html">data::get_post::GetPostPostContentBodyModelParagraphsIframe</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphsIframeMediaResource.html">data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphsMarkups.html">data::get_post::GetPostPostContentBodyModelParagraphsMarkups</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphsMetadata.html">data::get_post::GetPostPostContentBodyModelParagraphsMetadata</a></li><li><a href="data/get_post/struct.GetPostPostCreator.html">data::get_post::GetPostPostCreator</a></li><li><a href="data/get_post/struct.ResponseData.html">data::get_post::ResponseData</a></li><li><a href="data/get_post/struct.Variables.html">data::get_post::Variables</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.Post.html">proxy::Post</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="data/type.PostResp.html">data::PostResp</a></li><li><a href="data/get_post/type.Boolean.html">data::get_post::Boolean</a></li><li><a href="data/get_post/type.Float.html">data::get_post::Float</a></li><li><a href="data/get_post/type.ID.html">data::get_post::ID</a></li><li><a href="data/get_post/type.Int.html">data::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="data/get_post/constant.OPERATION_NAME.html">data::get_post::OPERATION_NAME</a></li><li><a href="data/get_post/constant.QUERY.html">data::get_post::QUERY</a></li><li><a href="data/get_post/constant.__QUERY_WORKAROUND.html">data::get_post::__QUERY_WORKAROUND</a></li><li><a href="proxy/constant.INDEX.html">proxy::INDEX</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="data/struct.GetPost.html">data::GetPost</a></li><li><a href="data/get_post/struct.GetPostPost.html">data::get_post::GetPostPost</a></li><li><a href="data/get_post/struct.GetPostPostContent.html">data::get_post::GetPostPostContent</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModel.html">data::get_post::GetPostPostContentBodyModel</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphs.html">data::get_post::GetPostPostContentBodyModelParagraphs</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphsIframe.html">data::get_post::GetPostPostContentBodyModelParagraphsIframe</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphsIframeMediaResource.html">data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphsMarkups.html">data::get_post::GetPostPostContentBodyModelParagraphsMarkups</a></li><li><a href="data/get_post/struct.GetPostPostContentBodyModelParagraphsMetadata.html">data::get_post::GetPostPostContentBodyModelParagraphsMetadata</a></li><li><a href="data/get_post/struct.GetPostPostCreator.html">data::get_post::GetPostPostCreator</a></li><li><a href="data/get_post/struct.ResponseData.html">data::get_post::ResponseData</a></li><li><a href="data/get_post/struct.Variables.html">data::get_post::Variables</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.Post.html">proxy::Post</a></li><li><a href="proxy/struct.assets.html">proxy::assets</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="data/type.PostResp.html">data::PostResp</a></li><li><a href="data/get_post/type.Boolean.html">data::get_post::Boolean</a></li><li><a href="data/get_post/type.Float.html">data::get_post::Float</a></li><li><a href="data/get_post/type.ID.html">data::get_post::ID</a></li><li><a href="data/get_post/type.Int.html">data::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="data/get_post/constant.OPERATION_NAME.html">data::get_post::OPERATION_NAME</a></li><li><a href="data/get_post/constant.QUERY.html">data::get_post::QUERY</a></li><li><a href="data/get_post/constant.__QUERY_WORKAROUND.html">data::get_post::__QUERY_WORKAROUND</a></li><li><a href="proxy/constant.CACHE_AGE.html">proxy::CACHE_AGE</a></li><li><a href="proxy/constant.INDEX.html">proxy::INDEX</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>
|
|
@ -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">☰</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">−</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: &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a> = "b7e3f7348cccaa63ac1989fe167070fac60c9225";</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">☰</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">−</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: &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a> = "14c7225f82bcc6031a2d5760a4ac1e8575f3ba27";</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>
|
3
libmedium/proxy/constant.CACHE_AGE.html
Normal file
3
libmedium/proxy/constant.CACHE_AGE.html
Normal file
|
@ -0,0 +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 `CACHE_AGE` constant in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, CACHE_AGE"><title>CACHE_AGE 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 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">☰</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="CACHE_AGE" 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 href="index.html">proxy</a>::<wbr><a class="constant" href="#">CACHE_AGE</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#26" title="goto source code">[src]</a></span></h1><pre class="rust const"><code>const CACHE_AGE: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.u32.html">u32</a> = 60 * 60 * 24; // 0x0001_5180u32</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
|
@ -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">☰</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#134-137" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub fn services(cfg: &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">☰</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#165-169" title="goto source code">[src]</a></span></h1><pre class="rust fn"><code>pub fn services(cfg: &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>
|
|
@ -1,7 +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">☰</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#17-162" 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">☰</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#17-195" 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="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.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="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.assets.html" title="libmedium::proxy::assets struct">assets</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.CACHE_AGE.html" title="libmedium::proxy::CACHE_AGE constant">CACHE_AGE</a></div><div class="item-right docblock-short"></div><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>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `routes` mod in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, routes"><title>libmedium::proxy::routes - 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">☰</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 routes</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="routes" 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 href="../index.html">proxy</a>::<wbr><a class="mod" href="#">routes</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">−</span>]</a></span><a class="srclink" href="../../../src/libmedium/proxy.rs.html#25-44" title="goto source code">[src]</a></span></h1><h2 id="structs" class="section-header"><a href="#structs">Structs</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 `routes` mod in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, routes"><title>libmedium::proxy::routes - 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">☰</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 routes</h2><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li></ul></div><div id="sidebar-vars" data-name="routes" 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 href="../index.html">proxy</a>::<wbr><a class="mod" href="#">routes</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">−</span>]</a></span><a class="srclink" href="../../../src/libmedium/proxy.rs.html#28-53" title="goto source code">[src]</a></span></h1><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.Proxy.html" title="libmedium::proxy::routes::Proxy struct">Proxy</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>
|
||||
</body></html>
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
initSidebarItems({"constant":[["INDEX",""]],"fn":[["services",""]],"mod":[["routes",""]],"struct":[["Post",""],["index",""],["page",""]],"trait":[["StringUtils",""]]});
|
||||
initSidebarItems({"constant":[["CACHE_AGE",""],["INDEX",""]],"fn":[["services",""]],"mod":[["routes",""]],"struct":[["Post",""],["assets",""],["index",""],["page",""]],"trait":[["StringUtils",""]]});
|
|
@ -1,9 +1,9 @@
|
|||
<!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 `Post` struct in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, Post"><title>Post 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 struct"><!--[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">☰</div><a href='../../libmedium/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Struct Post</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><div class="sidebar-links"><a href="#structfield.data">data</a><a href="#structfield.id">id</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-Sealed">Sealed</a><a href="#impl-TemplateOnce">TemplateOnce</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Pointable">Pointable</a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a><a href="#impl-WithSubscriber">WithSubscriber</a></div></div><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="Post" data-ty="struct" 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">Struct <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="struct" href="#">Post</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#101-104" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct"><code>pub struct Post {
|
||||
<!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 `Post` struct in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, Post"><title>Post 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 struct"><!--[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">☰</div><a href='../../libmedium/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Struct Post</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#fields">Fields</a></h3><div class="sidebar-links"><a href="#structfield.data">data</a><a href="#structfield.id">id</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-Sealed">Sealed</a><a href="#impl-TemplateOnce">TemplateOnce</a></div><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Instrument">Instrument</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-Pointable">Pointable</a><a href="#impl-Same%3CT%3E">Same<T></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a><a href="#impl-VZip%3CV%3E">VZip<V></a><a href="#impl-WithSubscriber">WithSubscriber</a></div></div><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="Post" data-ty="struct" 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">Struct <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="struct" href="#">Post</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#110-113" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust struct"><code>pub struct Post {
|
||||
pub data: <a class="struct" href="../data/get_post/struct.GetPostPost.html" title="struct libmedium::data::get_post::GetPostPost">GetPostPost</a>,
|
||||
pub id: <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.data" class="structfield small-section-header"><a href="#structfield.data" class="anchor field"></a><code>data: <a class="struct" href="../data/get_post/struct.GetPostPost.html" title="struct libmedium::data::get_post::GetPostPost">GetPostPost</a></code></span><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TemplateOnce" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#98" title="goto source code">[src]</a></div><a href="#impl-TemplateOnce" class="anchor"></a><h3 class="code-header in-band">impl TemplateOnce for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.render_once" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#98" title="goto source code">[src]</a></div><a href="#method.render_once" class="anchor"></a><h4 class="code-header">fn <a class="fnname">render_once</a>(self) -> RenderResult</h4></div></summary><div class='docblock'><p>Render the template and return the rendering result as <code>RenderResult</code> <a href="#tymethod.render_once">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.render_once_to" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#98" title="goto source code">[src]</a></div><a href="#method.render_once_to" class="anchor"></a><h4 class="code-header">fn <a class="fnname">render_once_to</a>(self, __sf_buf: &mut Buffer) -> <a class="enum" href="https://doc.rust-lang.org/1.56.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.unit.html">()</a>, RenderError></h4></div></summary><div class='docblock'><p>Render the template and append the result to <code>buf</code>. <a href="#tymethod.render_once_to">Read more</a></p>
|
||||
</div></details></div></details><div id="impl-Sealed" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#98" title="goto source code">[src]</a></div><a href="#impl-Sealed" class="anchor"></a><h3 class="code-header in-band">impl Sealed for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.1/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.56.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.56.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
}</code></pre></div><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.data" class="structfield small-section-header"><a href="#structfield.data" class="anchor field"></a><code>data: <a class="struct" href="../data/get_post/struct.GetPostPost.html" title="struct libmedium::data::get_post::GetPostPost">GetPostPost</a></code></span><span id="structfield.id" class="structfield small-section-header"><a href="#structfield.id" class="anchor field"></a><code>id: <a class="struct" href="https://doc.rust-lang.org/1.56.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-TemplateOnce" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#107" title="goto source code">[src]</a></div><a href="#impl-TemplateOnce" class="anchor"></a><h3 class="code-header in-band">impl TemplateOnce for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.render_once" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#107" title="goto source code">[src]</a></div><a href="#method.render_once" class="anchor"></a><h4 class="code-header">fn <a class="fnname">render_once</a>(self) -> RenderResult</h4></div></summary><div class='docblock'><p>Render the template and return the rendering result as <code>RenderResult</code> <a href="#tymethod.render_once">Read more</a></p>
|
||||
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.render_once_to" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#107" title="goto source code">[src]</a></div><a href="#method.render_once_to" class="anchor"></a><h4 class="code-header">fn <a class="fnname">render_once_to</a>(self, __sf_buf: &mut Buffer) -> <a class="enum" href="https://doc.rust-lang.org/1.56.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.unit.html">()</a>, RenderError></h4></div></summary><div class='docblock'><p>Render the template and append the result to <code>buf</code>. <a href="#tymethod.render_once_to">Read more</a></p>
|
||||
</div></details></div></details><div id="impl-Sealed" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#107" title="goto source code">[src]</a></div><a href="#impl-Sealed" class="anchor"></a><h3 class="code-header in-band">impl Sealed for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><div id="impl-RefUnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div><div id="impl-Send" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div><div id="impl-Sync" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div><div id="impl-Unpin" class="impl has-srclink"><div class="rightside"></div><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div><div id="impl-UnwindSafe" class="impl has-srclink"><div class="rightside"></div><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Post.html" title="struct libmedium::proxy::Post">Post</a></h3></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Any" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/any.rs.html#132-136" title="goto source code">[src]</a></div><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.type_id" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/any.rs.html#133" title="goto source code">[src]</a></div><a href="#method.type_id" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.1/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.56.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></div></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.56.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-Borrow%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/borrow.rs.html#208-213" title="goto source code">[src]</a></div><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/borrow.rs.html#210" title="goto source code">[src]</a></div><a href="#method.borrow" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.reference.html">&</a>T</h4></div></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.56.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/borrow.rs.html#216-220" title="goto source code">[src]</a></div><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.56.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.borrow_mut" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/borrow.rs.html#217" title="goto source code">[src]</a></div><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.reference.html">&mut </a>T</h4></div></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.56.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||||
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl-From%3CT%3E" class="impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/convert/mod.rs.html#546-550" title="goto source code">[src]</a></div><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.56.1/src/core/convert/mod.rs.html#547" title="goto source code">[src]</a></div><a href="#method.from" class="anchor"></a><h4 class="code-header">pub fn <a href="https://doc.rust-lang.org/1.56.1/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></div></summary><div class='docblock'><p>Performs the conversion.</p>
|
||||
|
|
27
libmedium/proxy/struct.assets.html
Normal file
27
libmedium/proxy/struct.assets.html
Normal file
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
|
@ -1,6 +1,6 @@
|
|||
<!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 `StringUtils` trait in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, StringUtils"><title>StringUtils 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 trait"><!--[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">☰</div><a href='../../libmedium/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Trait StringUtils</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><div class="sidebar-links"><a href="#tymethod.slice">slice</a><a href="#tymethod.substring">substring</a></div><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><div class="sidebar-links"><a href="#impl-StringUtils-for-str">str</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><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="StringUtils" data-ty="trait" 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">Trait <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="trait" href="#">StringUtils</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#48-51" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust trait"><code>trait StringUtils {
|
||||
<!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 `StringUtils` trait in crate `libmedium`."><meta name="keywords" content="rust, rustlang, rust-lang, StringUtils"><title>StringUtils 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 trait"><!--[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">☰</div><a href='../../libmedium/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><h2 class="location">Trait StringUtils</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><div class="sidebar-links"><a href="#tymethod.slice">slice</a><a href="#tymethod.substring">substring</a></div><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><div class="sidebar-links"><a href="#impl-StringUtils-for-str">str</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><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="StringUtils" data-ty="trait" 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">Trait <a href="../index.html">libmedium</a>::<wbr><a href="index.html">proxy</a>::<wbr><a class="trait" href="#">StringUtils</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">−</span>]</a></span><a class="srclink" href="../../src/libmedium/proxy.rs.html#57-60" title="goto source code">[src]</a></span></h1><div class="docblock type-decl"><pre class="rust trait"><code>trait StringUtils {
|
||||
fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a>;
|
||||
<div class="item-spacer"></div> fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a>;
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.substring" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#49" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h4></div><div id="tymethod.slice" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#50" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h4></div></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-StringUtils-for-str" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#53-96" title="goto source code">[src]</a></div><a href="#impl-StringUtils-for-str" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.StringUtils.html" title="trait libmedium::proxy::StringUtils">StringUtils</a> for <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h3></div></summary><div class="impl-items"><div id="method.substring" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#54-83" title="goto source code">[src]</a></div><a href="#method.substring" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h4></div><div id="method.slice" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#84-95" title="goto source code">[src]</a></div><a href="#method.slice" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h4></div></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../../implementors/libmedium/proxy/trait.StringUtils.js" async></script></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>
|
||||
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><div id="tymethod.substring" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#58" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h4></div><div id="tymethod.slice" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#59" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h4></div></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-StringUtils-for-str" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#62-105" title="goto source code">[src]</a></div><a href="#impl-StringUtils-for-str" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.StringUtils.html" title="trait libmedium::proxy::StringUtils">StringUtils</a> for <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h3></div></summary><div class="impl-items"><div id="method.substring" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#63-92" title="goto source code">[src]</a></div><a href="#method.substring" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.substring" class="fnname">substring</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h4></div><div id="method.slice" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../src/libmedium/proxy.rs.html#93-104" title="goto source code">[src]</a></div><a href="#method.slice" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.slice" class="fnname">slice</a>(&self, range: impl <a class="trait" href="https://doc.rust-lang.org/1.56.1/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a><<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.usize.html">usize</a>>) -> &<a class="primitive" href="https://doc.rust-lang.org/1.56.1/std/primitive.str.html">str</a></h4></div></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../../implementors/libmedium/proxy/trait.StringUtils.js" async></script></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
|
@ -160,6 +160,39 @@
|
|||
<span id="160">160</span>
|
||||
<span id="161">161</span>
|
||||
<span id="162">162</span>
|
||||
<span id="163">163</span>
|
||||
<span id="164">164</span>
|
||||
<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>
|
||||
<span id="179">179</span>
|
||||
<span id="180">180</span>
|
||||
<span id="181">181</span>
|
||||
<span id="182">182</span>
|
||||
<span id="183">183</span>
|
||||
<span id="184">184</span>
|
||||
<span id="185">185</span>
|
||||
<span id="186">186</span>
|
||||
<span id="187">187</span>
|
||||
<span id="188">188</span>
|
||||
<span id="189">189</span>
|
||||
<span id="190">190</span>
|
||||
<span id="191">191</span>
|
||||
<span id="192">192</span>
|
||||
<span id="193">193</span>
|
||||
<span id="194">194</span>
|
||||
<span id="195">195</span>
|
||||
</pre><pre class="rust"><code><span class="comment">/*
|
||||
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
*
|
||||
|
@ -178,16 +211,20 @@
|
|||
*/</span>
|
||||
<span class="kw">use</span> <span class="ident">std::ops</span>::{<span class="ident">Bound</span>, <span class="ident">RangeBounds</span>};
|
||||
|
||||
<span class="kw">use</span> <span class="ident">actix_web</span>::{<span class="ident">web</span>, <span class="ident">HttpResponse</span>, <span class="ident">Responder</span>};
|
||||
<span class="kw">use</span> <span class="ident">actix_web</span>::{<span class="ident">http::header</span>, <span class="ident">web</span>, <span class="ident">HttpResponse</span>, <span class="ident">Responder</span>};
|
||||
<span class="kw">use</span> <span class="ident">reqwest::header::CONTENT_TYPE</span>;
|
||||
<span class="kw">use</span> <span class="ident">sailfish::TemplateOnce</span>;
|
||||
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::data::PostResp</span>;
|
||||
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::AppData</span>;
|
||||
|
||||
<span class="kw">const</span> <span class="ident">CACHE_AGE</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="number">60</span> <span class="op">*</span> <span class="number">60</span> <span class="op">*</span> <span class="number">24</span>;
|
||||
|
||||
<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">index</span>: <span class="kw-2">&</span><span class="lifetime">'static</span> <span class="ident">str</span>,
|
||||
<span class="kw">pub</span> <span class="ident">page</span>: <span class="kw-2">&</span><span class="lifetime">'static</span> <span class="ident">str</span>,
|
||||
<span class="kw">pub</span> <span class="ident">asset</span>: <span class="kw-2">&</span><span class="lifetime">'static</span> <span class="ident">str</span>,
|
||||
}
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">Proxy</span> {
|
||||
|
@ -195,6 +232,7 @@
|
|||
<span class="self">Self</span> {
|
||||
<span class="ident">index</span>: <span class="string">"/"</span>,
|
||||
<span class="ident">page</span>: <span class="string">"/{username}/{post}"</span>,
|
||||
<span class="ident">asset</span>: <span class="string">"/asset/medium/{name}"</span>,
|
||||
}
|
||||
}
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">get_page</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">username</span>: <span class="kw-2">&</span><span class="ident">str</span>, <span class="ident">post</span>: <span class="kw-2">&</span><span class="ident">str</span>) <span class="op">-</span><span class="op">></span> <span class="ident">String</span> {
|
||||
|
@ -202,6 +240,10 @@
|
|||
.<span class="ident">replace</span>(<span class="string">"{username}"</span>, <span class="ident">username</span>)
|
||||
.<span class="ident">replace</span>(<span class="string">"{post}"</span>, <span class="ident">post</span>)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">get_medium_asset</span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">asset_name</span>: <span class="kw-2">&</span><span class="ident">str</span>) <span class="op">-</span><span class="op">></span> <span class="ident">String</span> {
|
||||
<span class="self">self</span>.<span class="ident">asset</span>.<span class="ident">replace</span>(<span class="string">"{name}"</span>, <span class="ident">asset_name</span>)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -274,9 +316,26 @@
|
|||
.<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">"crate::V1_API_ROUTES.proxy.asset"</span>)]</span>
|
||||
<span class="kw">async</span> <span class="kw">fn</span> <span class="ident">assets</span>(<span class="ident">path</span>: <span class="ident">web::Path</span><span class="op"><</span><span class="ident">String</span><span class="op">></span>, <span class="ident">data</span>: <span class="ident">AppData</span>) <span class="op">-</span><span class="op">></span> <span class="kw">impl</span> <span class="ident">Responder</span> {
|
||||
<span class="macro">println!</span>(<span class="string">"asset name: {}"</span>, <span class="ident">path</span>);
|
||||
<span class="kw">let</span> <span class="ident">res</span> <span class="op">=</span> <span class="ident">data</span>
|
||||
.<span class="ident">client</span>
|
||||
.<span class="ident">get</span>(<span class="macro">format!</span>(<span class="string">"https://miro.medium.com/{}"</span>, <span class="ident">path</span>))
|
||||
.<span class="ident">send</span>()
|
||||
.<span class="kw">await</span>
|
||||
.<span class="ident">unwrap</span>();
|
||||
<span class="macro">print!</span>(<span class="string">"got res"</span>);
|
||||
<span class="kw">let</span> <span class="ident">headers</span> <span class="op">=</span> <span class="ident">res</span>.<span class="ident">headers</span>();
|
||||
<span class="kw">let</span> <span class="ident">content_type</span> <span class="op">=</span> <span class="ident">headers</span>.<span class="ident">get</span>(<span class="ident">CONTENT_TYPE</span>).<span class="ident">unwrap</span>();
|
||||
<span class="ident">HttpResponse::Ok</span>()
|
||||
.<span class="ident">content_type</span>(<span class="ident">content_type</span>)
|
||||
.<span class="ident">body</span>(<span class="ident">res</span>.<span class="ident">bytes</span>().<span class="kw">await</span>.<span class="ident">unwrap</span>())
|
||||
}
|
||||
|
||||
<span class="attribute">#[<span class="ident">my_codegen::get</span>(<span class="ident">path</span> <span class="op">=</span> <span class="string">"crate::V1_API_ROUTES.proxy.page"</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"><</span>(<span class="ident">String</span>, <span class="ident">String</span>)<span class="op">></span>, <span class="ident">data</span>: <span class="ident">AppData</span>) <span class="op">-</span><span class="op">></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">"-"</span>).<span class="ident">last</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">'-'</span>).<span class="ident">last</span>();
|
||||
<span class="kw">if</span> <span class="ident">post_id</span>.<span class="ident">is_none</span>() {
|
||||
<span class="kw">return</span> <span class="ident">HttpResponse::BadRequest</span>().<span class="ident">finish</span>();
|
||||
}
|
||||
|
@ -284,16 +343,22 @@
|
|||
|
||||
<span class="kw">let</span> <span class="ident">page</span> <span class="op">=</span> <span class="ident">Post</span> {
|
||||
<span class="ident">id</span>: <span class="ident">id</span>.<span class="ident">to_owned</span>(),
|
||||
<span class="ident">data</span>: <span class="ident">data</span>.<span class="ident">get_post</span>(<span class="kw-2">&</span><span class="ident">id</span>).<span class="kw">await</span>,
|
||||
<span class="ident">data</span>: <span class="ident">data</span>.<span class="ident">get_post</span>(<span class="ident">id</span>).<span class="kw">await</span>,
|
||||
}
|
||||
.<span class="ident">render_once</span>()
|
||||
.<span class="ident">unwrap</span>();
|
||||
<span class="ident">HttpResponse::Ok</span>()
|
||||
.<span class="ident">insert_header</span>(<span class="ident">header::CacheControl</span>(<span class="macro">vec!</span>[
|
||||
<span class="ident">header::CacheDirective::Public</span>,
|
||||
<span class="ident">header::CacheDirective::Extension</span>(<span class="string">"immutable"</span>.<span class="ident">into</span>(), <span class="prelude-val">None</span>),
|
||||
<span class="ident">header::CacheDirective::MaxAge</span>(<span class="ident">CACHE_AGE</span>),
|
||||
]))
|
||||
.<span class="ident">content_type</span>(<span class="string">"text/html; charset=utf-8"</span>)
|
||||
.<span class="ident">body</span>(<span class="ident">page</span>)
|
||||
}
|
||||
|
||||
<span class="kw">pub</span> <span class="kw">fn</span> <span class="ident">services</span>(<span class="ident">cfg</span>: <span class="kw-2">&</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">assets</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>);
|
||||
}
|
||||
|
@ -312,7 +377,8 @@
|
|||
<span class="string">"/@ftrain/big-data-small-effort-b62607a43a8c"</span>,
|
||||
<span class="string">"/geekculture/rest-api-best-practices-decouple-long-running-tasks-from-http-request-processing-9fab2921ace8"</span>,
|
||||
<span class="string">"/illumination/5-bugs-that-turned-into-features-e9a0e972a4e7"</span>,
|
||||
<span class="string">"/"</span>
|
||||
<span class="string">"/"</span>,
|
||||
<span class="string">"/asset/medium/1*LY2ohYsNa9nOV1Clko3zJA.png"</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>() {
|
||||
|
|
Loading…
Reference in a new issue