From 228f451e157110ceec7df51e89d2243409a11601 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sun, 16 Jan 2022 08:56:33 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-libmedium=20from=20=20@=205?= =?UTF-8?q?74d14714d56d26536929ca73e945fa10352ca14=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- implementors/core/clone/trait.Clone.js | 2 +- libmedium/constant.GIT_COMMIT_HASH.html | 2 +- .../data/get_post/struct.GetPostPost.html | 4 +- .../constant.OPERATION_NAME.html | 2 +- .../data/get_post_light/constant.QUERY.html | 2 +- .../constant.__QUERY_WORKAROUND.html | 2 +- libmedium/data/get_post_light/index.html | 2 +- .../struct.GetPostLightPost.html | 10 +- .../struct.GetPostLightPostCreator.html | 10 +- .../get_post_light/struct.ResponseData.html | 10 +- .../data/get_post_light/struct.Variables.html | 4 +- .../data/get_post_light/type.Boolean.html | 2 +- libmedium/data/get_post_light/type.Float.html | 2 +- libmedium/data/get_post_light/type.ID.html | 2 +- libmedium/data/get_post_light/type.Int.html | 2 +- libmedium/data/index.html | 2 +- libmedium/data/struct.Data.html | 4 +- libmedium/data/struct.GetPostLight.html | 4 +- libmedium/data/struct.GistContent.html | 6 +- libmedium/data/struct.GistFile.html | 11 +- libmedium/data/struct.PostUrl.html | 6 +- libmedium/proxy/fn.services.html | 2 +- libmedium/proxy/index.html | 2 +- libmedium/struct.Data.html | 4 +- search-index.js | 2 +- src/libmedium/data.rs.html | 102 +++++++++++++++--- src/libmedium/proxy.rs.html | 4 +- 27 files changed, 142 insertions(+), 65 deletions(-) diff --git a/implementors/core/clone/trait.Clone.js b/implementors/core/clone/trait.Clone.js index 4cd92af..31e6187 100644 --- a/implementors/core/clone/trait.Clone.js +++ b/implementors/core/clone/trait.Clone.js @@ -1,3 +1,3 @@ (function() {var implementors = {}; -implementors["libmedium"] = [{"text":"impl Clone for Data","synthetic":false,"types":["libmedium::data::Data"]},{"text":"impl Clone for ResponseData","synthetic":false,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Clone for GetPostPost","synthetic":false,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Clone for GetPostPostCreator","synthetic":false,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Clone for GetPostPostPreviewImage","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Clone for GetPostPostPreviewContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Clone for GetPostPostContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Clone for GetPostPostContentBodyModel","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphs","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsMarkups","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsIframe","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsMetadata","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Clone for ResponseData","synthetic":false,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Clone for GetPostLightPost","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Clone for GetPostLightPostCreator","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Clone for PostUrl","synthetic":false,"types":["libmedium::data::PostUrl"]},{"text":"impl Clone for BuildDetails","synthetic":false,"types":["libmedium::meta::BuildDetails"]},{"text":"impl Clone for Server","synthetic":false,"types":["libmedium::settings::Server"]},{"text":"impl Clone for Settings","synthetic":false,"types":["libmedium::settings::Settings"]}]; +implementors["libmedium"] = [{"text":"impl Clone for Data","synthetic":false,"types":["libmedium::data::Data"]},{"text":"impl Clone for ResponseData","synthetic":false,"types":["libmedium::data::get_post::ResponseData"]},{"text":"impl Clone for GetPostPost","synthetic":false,"types":["libmedium::data::get_post::GetPostPost"]},{"text":"impl Clone for GetPostPostCreator","synthetic":false,"types":["libmedium::data::get_post::GetPostPostCreator"]},{"text":"impl Clone for GetPostPostPreviewImage","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewImage"]},{"text":"impl Clone for GetPostPostPreviewContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostPreviewContent"]},{"text":"impl Clone for GetPostPostContent","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContent"]},{"text":"impl Clone for GetPostPostContentBodyModel","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModel"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphs","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphs"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsMarkups","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMarkups"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsIframe","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframe"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsIframeMediaResource","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsIframeMediaResource"]},{"text":"impl Clone for GetPostPostContentBodyModelParagraphsMetadata","synthetic":false,"types":["libmedium::data::get_post::GetPostPostContentBodyModelParagraphsMetadata"]},{"text":"impl Clone for GistFile","synthetic":false,"types":["libmedium::data::GistFile"]},{"text":"impl Clone for ResponseData","synthetic":false,"types":["libmedium::data::get_post_light::ResponseData"]},{"text":"impl Clone for GetPostLightPost","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPost"]},{"text":"impl Clone for GetPostLightPostCreator","synthetic":false,"types":["libmedium::data::get_post_light::GetPostLightPostCreator"]},{"text":"impl Clone for PostUrl","synthetic":false,"types":["libmedium::data::PostUrl"]},{"text":"impl Clone for BuildDetails","synthetic":false,"types":["libmedium::meta::BuildDetails"]},{"text":"impl Clone for Server","synthetic":false,"types":["libmedium::settings::Server"]},{"text":"impl Clone for Settings","synthetic":false,"types":["libmedium::settings::Settings"]}]; if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/libmedium/constant.GIT_COMMIT_HASH.html b/libmedium/constant.GIT_COMMIT_HASH.html index a34980e..d977ad3 100644 --- a/libmedium/constant.GIT_COMMIT_HASH.html +++ b/libmedium/constant.GIT_COMMIT_HASH.html @@ -1,3 +1,3 @@ GIT_COMMIT_HASH in libmedium - Rust -

Constant libmedium::GIT_COMMIT_HASH[][src]

pub const GIT_COMMIT_HASH: &str = "df14f8b0b868e35b491449c1c2a466bd5b002e97";
+

Constant libmedium::GIT_COMMIT_HASH[][src]

pub const GIT_COMMIT_HASH: &str = "574d14714d56d26536929ca73e945fa10352ca14";
\ No newline at end of file diff --git a/libmedium/data/get_post/struct.GetPostPost.html b/libmedium/data/get_post/struct.GetPostPost.html index 112d394..32aeff6 100644 --- a/libmedium/data/get_post/struct.GetPostPost.html +++ b/libmedium/data/get_post/struct.GetPostPost.html @@ -1,5 +1,5 @@ GetPostPost in libmedium::data::get_post - Rust -

Struct libmedium::data::get_post::GetPostPost[][src]

pub struct GetPostPost {
+    

Struct libmedium::data::get_post::GetPostPost[][src]

pub struct GetPostPost {
     pub title: String,
     pub created_at: i64,
     pub reading_time: f64,
@@ -8,7 +8,7 @@
     pub preview_image: Option<GetPostPostPreviewImage>,
     pub preview_content: Option<GetPostPostPreviewContent>,
     pub content: GetPostPostContent,
-}

Fields

title: Stringcreated_at: i64reading_time: f64unique_slug: Stringcreator: GetPostPostCreatorpreview_image: Option<GetPostPostPreviewImage>preview_content: Option<GetPostPostPreviewContent>content: GetPostPostContent

Implementations

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

title: Stringcreated_at: i64reading_time: f64unique_slug: Stringcreator: GetPostPostCreatorpreview_image: Option<GetPostPostPreviewImage>preview_content: Option<GetPostPostPreviewContent>content: GetPostPostContent

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

diff --git a/libmedium/data/get_post_light/constant.OPERATION_NAME.html b/libmedium/data/get_post_light/constant.OPERATION_NAME.html index 6960579..c2e556c 100644 --- a/libmedium/data/get_post_light/constant.OPERATION_NAME.html +++ b/libmedium/data/get_post_light/constant.OPERATION_NAME.html @@ -1,3 +1,3 @@ OPERATION_NAME in libmedium::data::get_post_light - Rust -

Constant libmedium::data::get_post_light::OPERATION_NAME[][src]

pub const OPERATION_NAME: &str = "GetPostLight";
+

Constant libmedium::data::get_post_light::OPERATION_NAME[][src]

pub const OPERATION_NAME: &str = "GetPostLight";
\ No newline at end of file diff --git a/libmedium/data/get_post_light/constant.QUERY.html b/libmedium/data/get_post_light/constant.QUERY.html index cbfc3cd..f5bd154 100644 --- a/libmedium/data/get_post_light/constant.QUERY.html +++ b/libmedium/data/get_post_light/constant.QUERY.html @@ -1,3 +1,3 @@ QUERY in libmedium::data::get_post_light - Rust -

Constant libmedium::data::get_post_light::QUERY[][src]

pub const QUERY: &str = "query GetPost($id: ID!) {\n    post(id: $id) {\n        title\n        createdAt\n        readingTime\n        uniqueSlug\n        creator { \n            name\n            id\n\t\t\timageId\n            username\n        }\n        previewImage {\n            id\n        }\n        previewContent {\n            subtitle\n        }\n        content {\n            bodyModel {\n                paragraphs {\n                    text\n                    type\n                    href\n                    layout\n                    markups {\n                        title\n                        type\n                        href\n                        userId\n                        start\n                        end\n                        anchorType\n                    }\n                    iframe {\n                        mediaResource {\n                            href\n                            iframeSrc\n                            iframeWidth\n                            iframeHeight\n                        }\n                    }\n                    metadata {\n                        id\n                        originalWidth\n                        originalHeight\n                    }\n                }\n            }\n        }\n    }\n}\n\nquery GetPostLight($id: ID!) {\n    post(id: $id) {\n        uniqueSlug\n        creator {\n            username\n        }\n    }\n}\n";
+

Constant libmedium::data::get_post_light::QUERY[][src]

pub const QUERY: &str = "query GetPost($id: ID!) {\n    post(id: $id) {\n        title\n        createdAt\n        readingTime\n        uniqueSlug\n        creator { \n            name\n            id\n\t\t\timageId\n            username\n        }\n        previewImage {\n            id\n        }\n        previewContent {\n            subtitle\n        }\n        content {\n            bodyModel {\n                paragraphs {\n                    text\n                    type\n                    href\n                    layout\n                    markups {\n                        title\n                        type\n                        href\n                        userId\n                        start\n                        end\n                        anchorType\n                    }\n                    iframe {\n                        mediaResource {\n                            href\n                            iframeSrc\n                            iframeWidth\n                            iframeHeight\n                        }\n                    }\n                    metadata {\n                        id\n                        originalWidth\n                        originalHeight\n                    }\n                }\n            }\n        }\n    }\n}\n\nquery GetPostLight($id: ID!) {\n    post(id: $id) {\n        uniqueSlug\n        creator {\n            username\n        }\n    }\n}\n";
\ No newline at end of file diff --git a/libmedium/data/get_post_light/constant.__QUERY_WORKAROUND.html b/libmedium/data/get_post_light/constant.__QUERY_WORKAROUND.html index af4826a..a7a817d 100644 --- a/libmedium/data/get_post_light/constant.__QUERY_WORKAROUND.html +++ b/libmedium/data/get_post_light/constant.__QUERY_WORKAROUND.html @@ -1,3 +1,3 @@ __QUERY_WORKAROUND in libmedium::data::get_post_light - Rust -

Constant libmedium::data::get_post_light::__QUERY_WORKAROUND[][src]

const __QUERY_WORKAROUND: &str = "query GetPost($id: ID!) {\n    post(id: $id) {\n        title\n        createdAt\n        readingTime\n        uniqueSlug\n        creator { \n            name\n            id\n\t\t\timageId\n            username\n        }\n        previewImage {\n            id\n        }\n        previewContent {\n            subtitle\n        }\n        content {\n            bodyModel {\n                paragraphs {\n                    text\n                    type\n                    href\n                    layout\n                    markups {\n                        title\n                        type\n                        href\n                        userId\n                        start\n                        end\n                        anchorType\n                    }\n                    iframe {\n                        mediaResource {\n                            href\n                            iframeSrc\n                            iframeWidth\n                            iframeHeight\n                        }\n                    }\n                    metadata {\n                        id\n                        originalWidth\n                        originalHeight\n                    }\n                }\n            }\n        }\n    }\n}\n\nquery GetPostLight($id: ID!) {\n    post(id: $id) {\n        uniqueSlug\n        creator {\n            username\n        }\n    }\n}\n";
+

Constant libmedium::data::get_post_light::__QUERY_WORKAROUND[][src]

const __QUERY_WORKAROUND: &str = "query GetPost($id: ID!) {\n    post(id: $id) {\n        title\n        createdAt\n        readingTime\n        uniqueSlug\n        creator { \n            name\n            id\n\t\t\timageId\n            username\n        }\n        previewImage {\n            id\n        }\n        previewContent {\n            subtitle\n        }\n        content {\n            bodyModel {\n                paragraphs {\n                    text\n                    type\n                    href\n                    layout\n                    markups {\n                        title\n                        type\n                        href\n                        userId\n                        start\n                        end\n                        anchorType\n                    }\n                    iframe {\n                        mediaResource {\n                            href\n                            iframeSrc\n                            iframeWidth\n                            iframeHeight\n                        }\n                    }\n                    metadata {\n                        id\n                        originalWidth\n                        originalHeight\n                    }\n                }\n            }\n        }\n    }\n}\n\nquery GetPostLight($id: ID!) {\n    post(id: $id) {\n        uniqueSlug\n        creator {\n            username\n        }\n    }\n}\n";
\ No newline at end of file diff --git a/libmedium/data/get_post_light/index.html b/libmedium/data/get_post_light/index.html index 3331fc2..cf18b76 100644 --- a/libmedium/data/get_post_light/index.html +++ b/libmedium/data/get_post_light/index.html @@ -1,5 +1,5 @@ libmedium::data::get_post_light - Rust -

Module libmedium::data::get_post_light[][src]

Structs

+

Module libmedium::data::get_post_light[][src]

Structs

Constants

Type Definitions

diff --git a/libmedium/data/get_post_light/struct.GetPostLightPost.html b/libmedium/data/get_post_light/struct.GetPostLightPost.html index 4e15077..f205d98 100644 --- a/libmedium/data/get_post_light/struct.GetPostLightPost.html +++ b/libmedium/data/get_post_light/struct.GetPostLightPost.html @@ -1,12 +1,12 @@ GetPostLightPost in libmedium::data::get_post_light - Rust -

Struct libmedium::data::get_post_light::GetPostLightPost[][src]

Fields

unique_slug: Stringcreator: GetPostLightPostCreator

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

+

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/libmedium/data/get_post_light/struct.GetPostLightPostCreator.html b/libmedium/data/get_post_light/struct.GetPostLightPostCreator.html index 2d4c0e1..12bb7be 100644 --- a/libmedium/data/get_post_light/struct.GetPostLightPostCreator.html +++ b/libmedium/data/get_post_light/struct.GetPostLightPostCreator.html @@ -1,11 +1,11 @@ GetPostLightPostCreator in libmedium::data::get_post_light - Rust -

Struct libmedium::data::get_post_light::GetPostLightPostCreator[][src]

pub struct GetPostLightPostCreator {
+    

Struct libmedium::data::get_post_light::GetPostLightPostCreator[][src]

pub struct GetPostLightPostCreator {
     pub username: String,
-}

Fields

username: String

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

username: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

+

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/libmedium/data/get_post_light/struct.ResponseData.html b/libmedium/data/get_post_light/struct.ResponseData.html index 6c5f060..3270e59 100644 --- a/libmedium/data/get_post_light/struct.ResponseData.html +++ b/libmedium/data/get_post_light/struct.ResponseData.html @@ -1,11 +1,11 @@ ResponseData in libmedium::data::get_post_light - Rust -

Struct libmedium::data::get_post_light::ResponseData[][src]

Fields

post: Option<GetPostLightPost>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

+

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/libmedium/data/get_post_light/struct.Variables.html b/libmedium/data/get_post_light/struct.Variables.html index b663a5d..a0fd10b 100644 --- a/libmedium/data/get_post_light/struct.Variables.html +++ b/libmedium/data/get_post_light/struct.Variables.html @@ -1,7 +1,7 @@ Variables in libmedium::data::get_post_light - Rust -

Struct libmedium::data::get_post_light::Variables[][src]

pub struct Variables {
+    

Struct libmedium::data::get_post_light::Variables[][src]

pub struct Variables {
     pub id: String,
-}

Fields

id: String

Trait Implementations

Serialize this value into the given Serde serializer. Read more

+}

Fields

id: String

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/libmedium/data/get_post_light/type.Boolean.html b/libmedium/data/get_post_light/type.Boolean.html index ce11da7..4539d07 100644 --- a/libmedium/data/get_post_light/type.Boolean.html +++ b/libmedium/data/get_post_light/type.Boolean.html @@ -1,3 +1,3 @@ Boolean in libmedium::data::get_post_light - Rust -

Type Definition libmedium::data::get_post_light::Boolean[][src]

type Boolean = bool;
+

Type Definition libmedium::data::get_post_light::Boolean[][src]

type Boolean = bool;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/type.Float.html b/libmedium/data/get_post_light/type.Float.html index 03bd8c7..8af3c7a 100644 --- a/libmedium/data/get_post_light/type.Float.html +++ b/libmedium/data/get_post_light/type.Float.html @@ -1,3 +1,3 @@ Float in libmedium::data::get_post_light - Rust -

Type Definition libmedium::data::get_post_light::Float[][src]

type Float = f64;
+

Type Definition libmedium::data::get_post_light::Float[][src]

type Float = f64;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/type.ID.html b/libmedium/data/get_post_light/type.ID.html index c0689b7..dddf4fd 100644 --- a/libmedium/data/get_post_light/type.ID.html +++ b/libmedium/data/get_post_light/type.ID.html @@ -1,3 +1,3 @@ ID in libmedium::data::get_post_light - Rust -

Type Definition libmedium::data::get_post_light::ID[][src]

type ID = String;
+

Type Definition libmedium::data::get_post_light::ID[][src]

type ID = String;
\ No newline at end of file diff --git a/libmedium/data/get_post_light/type.Int.html b/libmedium/data/get_post_light/type.Int.html index 717454a..ee30922 100644 --- a/libmedium/data/get_post_light/type.Int.html +++ b/libmedium/data/get_post_light/type.Int.html @@ -1,3 +1,3 @@ Int in libmedium::data::get_post_light - Rust -

Type Definition libmedium::data::get_post_light::Int[][src]

type Int = i64;
+

Type Definition libmedium::data::get_post_light::Int[][src]

type Int = i64;
\ No newline at end of file diff --git a/libmedium/data/index.html b/libmedium/data/index.html index 50bc719..690d174 100644 --- a/libmedium/data/index.html +++ b/libmedium/data/index.html @@ -1,5 +1,5 @@ libmedium::data - Rust -

Module libmedium::data[][src]

Modules

+

Module libmedium::data[][src]

Modules

Structs

Constants

Type Definitions

diff --git a/libmedium/data/struct.Data.html b/libmedium/data/struct.Data.html index fbc3141..39c7d2f 100644 --- a/libmedium/data/struct.Data.html +++ b/libmedium/data/struct.Data.html @@ -1,10 +1,10 @@ Data in libmedium::data - Rust -

Struct libmedium::data::Data[][src]

pub struct Data {
+    

Struct libmedium::data::Data[][src]

pub struct Data {
     pub client: Client,
     cache: Db,
     pub posts: Tree,
     pub gists: Tree,
-}

Fields

client: Clientcache: Dbposts: Treegists: Tree

Implementations

pub async fn get_post(&self, id: &str) -> GetPostPost

pub async fn get_post_light(&self, id: &str) -> PostUrl

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

client: Clientcache: Dbposts: Treegists: Tree

Implementations

pub async fn get_post(&self, id: &str) -> GetPostPost

pub async fn get_post_light(&self, id: &str) -> PostUrl

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

diff --git a/libmedium/data/struct.GetPostLight.html b/libmedium/data/struct.GetPostLight.html index c17fd89..e49b13b 100644 --- a/libmedium/data/struct.GetPostLight.html +++ b/libmedium/data/struct.GetPostLight.html @@ -1,7 +1,7 @@ GetPostLight in libmedium::data - Rust -

Struct libmedium::data::GetPostLight[][src]

pub struct GetPostLight;

Trait Implementations

The shape of the variables expected by the query. This should be a generated struct most of the time.

+

Struct libmedium::data::GetPostLight[][src]

pub struct GetPostLight;

Trait Implementations

The shape of the variables expected by the query. This should be a generated struct most of the time.

The top-level shape of the response data (the data field in the GraphQL response). In practice this should be generated, since it is hard to write by hand without error.

-

Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.

+

Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/libmedium/data/struct.GistContent.html b/libmedium/data/struct.GistContent.html index c5c4ff1..f894773 100644 --- a/libmedium/data/struct.GistContent.html +++ b/libmedium/data/struct.GistContent.html @@ -1,9 +1,9 @@ GistContent in libmedium::data - Rust -

Struct libmedium::data::GistContent[][src]

pub struct GistContent {
+    

Struct libmedium::data::GistContent[][src]

pub struct GistContent {
     pub files: Vec<GistFile>,
     pub html_url: String,
-}

Fields

files: Vec<GistFile>html_url: String

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

+}

Fields

files: Vec<GistFile>html_url: String

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

+

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/libmedium/data/struct.GistFile.html b/libmedium/data/struct.GistFile.html index b934270..2473ff5 100644 --- a/libmedium/data/struct.GistFile.html +++ b/libmedium/data/struct.GistFile.html @@ -1,11 +1,13 @@ GistFile in libmedium::data - Rust -

Struct libmedium::data::GistFile[][src]

pub struct GistFile {
+    

Struct libmedium::data::GistFile[][src]

pub struct GistFile {
     pub file_name: String,
     pub content: String,
     pub language: String,
     pub raw_url: String,
-}

Fields

file_name: Stringcontent: Stringlanguage: Stringraw_url: String

Implementations

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

-

Serialize this value into the given Serde serializer. Read more

+}

Fields

file_name: Stringcontent: Stringlanguage: Stringraw_url: String

Implementations

Trait Implementations

Returns a copy of the value. Read more

+

Performs copy-assignment from source. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

@@ -22,6 +24,9 @@

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

+

The resulting type after obtaining ownership.

+

Creates owned data from borrowed data, usually by cloning. Read more

+
🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

diff --git a/libmedium/data/struct.PostUrl.html b/libmedium/data/struct.PostUrl.html index 00e2ef4..6bf395f 100644 --- a/libmedium/data/struct.PostUrl.html +++ b/libmedium/data/struct.PostUrl.html @@ -1,10 +1,10 @@ PostUrl in libmedium::data - Rust -

Struct libmedium::data::PostUrl[][src]

pub struct PostUrl {
+    

Struct libmedium::data::PostUrl[][src]

pub struct PostUrl {
     pub slug: String,
     pub username: String,
-}

Fields

slug: Stringusername: String

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

slug: Stringusername: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

+

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/libmedium/proxy/fn.services.html b/libmedium/proxy/fn.services.html index 1ca24a5..6db8a7d 100644 --- a/libmedium/proxy/fn.services.html +++ b/libmedium/proxy/fn.services.html @@ -1,3 +1,3 @@ services in libmedium::proxy - Rust -

Function libmedium::proxy::services[][src]

pub fn services(cfg: &mut ServiceConfig)
+

Function libmedium::proxy::services[][src]

pub fn services(cfg: &mut ServiceConfig)
\ No newline at end of file diff --git a/libmedium/proxy/index.html b/libmedium/proxy/index.html index ec2c5f7..ff3e7e2 100644 --- a/libmedium/proxy/index.html +++ b/libmedium/proxy/index.html @@ -1,5 +1,5 @@ libmedium::proxy - Rust -

Module libmedium::proxy[][src]

Modules

+

Module libmedium::proxy[][src]

Modules

Structs

Constants

Traits

diff --git a/libmedium/struct.Data.html b/libmedium/struct.Data.html index 47acb3f..d7310eb 100644 --- a/libmedium/struct.Data.html +++ b/libmedium/struct.Data.html @@ -1,10 +1,10 @@ Data in libmedium - Rust -

Struct libmedium::Data[][src]

pub struct Data {
+    

Struct libmedium::Data[][src]

pub struct Data {
     pub client: Client,
     cache: Db,
     pub posts: Tree,
     pub gists: Tree,
-}

Fields

client: Clientcache: Dbposts: Treegists: Tree

Implementations

pub async fn get_post(&self, id: &str) -> GetPostPost

pub async fn get_post_light(&self, id: &str) -> PostUrl

Trait Implementations

Returns a copy of the value. Read more

+}

Fields

client: Clientcache: Dbposts: Treegists: Tree

Implementations

pub async fn get_post(&self, id: &str) -> GetPostPost

pub async fn get_post_light(&self, id: &str) -> PostUrl

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

diff --git a/search-index.js b/search-index.js index ca38a34..9ec9cdc 100644 --- a/search-index.js +++ b/search-index.js @@ -1,4 +1,4 @@ var searchIndex = JSON.parse('{\ -"libmedium":{"doc":"","t":[6,17,3,17,17,17,17,3,3,17,17,12,11,11,12,12,12,0,12,11,11,11,11,11,5,12,11,11,5,0,12,0,0,12,0,12,11,11,11,11,6,3,17,3,3,3,3,17,6,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,0,11,0,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,12,12,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,6,6,3,3,3,3,3,3,3,3,3,3,3,6,6,17,17,3,3,17,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,6,6,3,3,6,6,17,17,3,3,17,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,3,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,0,11,5,11,11,11,11,11,11,11,12,11,11,3,11,11,12,11,11,11,11,12,11,11,11,11,11,11,11,17,17,3,8,3,11,11,11,11,11,11,11,11,11,11,3,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,3,11,11,11,11,11,11,11,11,11,11,3,12,12,11,11,11,11,11,11,0,5,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,12,11,11,12,11,11,11,11,11,11,12,11,11,11,12,11,11,11,11,17,3,11,11,11,11,11,11,11,11,12,11,12,5,11,11,11,11,3,3,11,11,11,11,12,5,11,11,11,11,12,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,12,11,12,12,12,12,11,11,11,11,11,11,11,11,11,11,12],"n":["AppData","CACHE_AGE","Data","GIT_COMMIT_HASH","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","Settings","V1_API_ROUTES","VERSION","__private_field","borrow","borrow_mut","cache","cache","client","data","debug","deref","deref","deref_mut","drop","from","get_json_err","gists","init","into","main","meta","posts","proxy","routes","server","settings","source_code","try_from","try_into","type_id","vzip","AppData","Data","GIST_CACHE_VERSION","GetPost","GetPostLight","GistContent","GistFile","POST_CACHE_VERSION","PostResp","PostUrl","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build_query","build_query","cache","client","clone","clone","clone_into","clone_into","content","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","drop","drop","drop","drop","drop","drop","file_name","files","fmt","from","from","from","from","from","from","get_gist","get_html_content","get_post","get_post","get_post_light","get_post_light","gists","html_url","init","init","init","init","init","init","into","into","into","into","into","into","language","migrate","new","posts","raw_url","serialize","serialize","slug","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","username","vzip","vzip","vzip","vzip","vzip","vzip","Boolean","Float","GetPostPost","GetPostPostContent","GetPostPostContentBodyModel","GetPostPostContentBodyModelParagraphs","GetPostPostContentBodyModelParagraphsIframe","GetPostPostContentBodyModelParagraphsIframeMediaResource","GetPostPostContentBodyModelParagraphsMarkups","GetPostPostContentBodyModelParagraphsMetadata","GetPostPostCreator","GetPostPostPreviewContent","GetPostPostPreviewImage","ID","Int","OPERATION_NAME","QUERY","ResponseData","Variables","__QUERY_WORKAROUND","anchor_type","body_model","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","content","created_at","creator","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","end","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","get_gist_id","get_subtitle","href","href","href","id","id","id","id","iframe","iframe_height","iframe_src","iframe_width","image_id","init","init","init","init","init","init","init","init","init","init","init","init","init","into","into","into","into","into","into","into","into","into","into","into","into","into","layout","markups","media_resource","metadata","name","original_height","original_width","paragraphs","post","preview_content","preview_image","reading_time","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","start","subtitle","text","title","title","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_slug","user_id","username","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Boolean","Float","GetPostLightPost","GetPostLightPostCreator","ID","Int","OPERATION_NAME","QUERY","ResponseData","Variables","__QUERY_WORKAROUND","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","creator","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","drop","drop","drop","drop","fmt","fmt","fmt","from","from","from","from","id","init","init","init","init","into","into","into","into","post","serialize","serialize","serialize","serialize","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","unique_slug","username","vzip","vzip","vzip","vzip","BuildDetails","borrow","borrow","borrow_mut","borrow_mut","build_details","clone","clone_into","deref","deref","deref_mut","deref_mut","deserialize","drop","drop","fmt","from","from","git_commit_hash","init","init","into","into","register","routes","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","version","vzip","vzip","Meta","borrow","borrow_mut","build_details","deref","deref_mut","drop","from","health","init","into","new","try_from","try_into","type_id","vzip","CACHE_AGE","INDEX","Post","StringUtils","assets","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","by_post_id","data","date","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","drop","drop","drop","drop","drop","from","from","from","from","from","gists","id","index","init","init","init","init","init","into","into","into","into","into","page","preview_img","reading_time","register","register","register","register","render_once","render_once_to","routes","services","slice","substring","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","Proxy","asset","borrow","borrow_mut","by_post_id","deref","deref_mut","drop","from","get_medium_asset","get_page","index","init","into","new","page","try_from","try_into","type_id","vzip","ROUTES","Routes","borrow","borrow_mut","deref","deref_mut","drop","from","init","into","meta","new","proxy","services","try_from","try_into","type_id","vzip","Server","Settings","borrow","borrow","borrow_mut","borrow_mut","cache","check_url","clone","clone","clone_into","clone_into","debug","deref","deref","deref_mut","deref_mut","deserialize","deserialize","domain","drop","drop","fmt","fmt","from","from","get_ip","init","init","into","into","ip","new","port","proxy_has_tls","server","source_code","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","workers"],"q":["libmedium","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data::get_post","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data::get_post_light","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::meta::routes","","","","","","","","","","","","","","","","libmedium::proxy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::proxy::routes","","","","","","","","","","","","","","","","","","","","libmedium::routes","","","","","","","","","","","","","","","","","","libmedium::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","emmits build details of the bninary","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,0,0,1,1,1,2,3,2,0,3,1,1,1,1,1,0,2,1,1,0,0,2,0,0,3,0,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,2,4,5,6,7,8,2,4,5,6,7,8,4,7,2,2,2,8,2,8,6,2,4,5,6,7,8,2,4,5,6,7,8,5,6,2,4,5,6,7,8,6,5,8,2,4,5,6,7,8,2,6,0,2,0,2,2,5,2,4,5,6,7,8,2,4,5,6,7,8,6,2,2,2,6,5,6,8,2,8,2,4,5,6,7,8,2,4,5,6,7,8,2,4,5,6,7,8,8,2,4,5,6,7,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,10,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,11,12,13,9,14,15,10,16,17,18,19,20,19,19,19,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,11,12,13,9,14,15,10,16,17,18,19,20,21,9,11,12,13,9,14,15,10,16,17,18,19,20,11,12,13,9,14,15,10,16,17,18,19,20,21,19,19,12,9,14,11,17,18,21,14,12,12,12,18,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,21,14,14,13,14,18,11,11,15,20,19,19,19,11,12,13,9,14,15,10,16,17,18,19,20,21,9,16,14,9,19,11,12,13,9,14,15,10,16,17,18,19,20,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,21,9,14,11,12,13,9,14,15,10,16,17,18,19,20,21,19,9,18,11,12,13,9,14,15,10,16,17,18,19,20,21,0,0,0,0,0,0,0,0,0,0,0,22,23,24,25,22,23,24,25,22,23,24,22,23,24,23,22,23,24,25,22,23,24,25,22,23,24,22,23,24,25,22,23,24,22,23,24,25,25,22,23,24,25,22,23,24,25,24,22,23,24,25,22,23,24,22,23,24,25,22,23,24,25,22,23,24,25,23,22,22,23,24,25,0,26,27,26,27,0,26,26,26,27,26,27,26,26,27,26,26,27,26,26,27,26,27,27,0,26,0,26,26,27,26,27,26,27,26,26,27,0,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,0,0,0,0,0,29,30,31,32,33,29,30,31,32,33,0,29,29,29,30,31,32,33,29,30,31,32,33,29,30,31,32,33,29,30,31,32,33,29,29,0,29,30,31,32,33,29,30,31,32,33,0,29,29,30,31,32,33,29,29,0,0,34,34,29,30,31,32,33,29,30,31,32,33,29,30,31,32,33,29,30,31,32,33,0,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,0,0,36,36,36,36,36,36,36,36,36,36,36,0,36,36,36,36,0,0,37,3,37,3,3,0,37,3,37,3,3,37,3,37,3,37,3,37,37,3,37,3,37,3,37,37,3,37,3,37,3,37,37,3,3,37,3,37,3,37,3,37,3,37,3,37],"f":[null,null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],null,null,null,null,null,[[["usize",15]]],[[],["settings",3]],[[["usize",15]]],[[["usize",15]]],[[]],[[],["jsonconfig",3]],null,[[],["usize",15]],[[]],[[],["result",6]],null,null,null,null,null,null,null,[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["querybody",3]],[[],["querybody",3]],null,null,[[],["data",3]],[[],["posturl",3]],[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[],["result",4]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],null,null,[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[]],[[]],[[["string",3]]],[[],["string",3]],null,[[["str",15]]],null,[[["str",15]]],null,null,[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[]],[[]],[[]],[[]],null,[[]],[[],["appdata",6]],null,null,[[],["result",4]],[[],["result",4]],null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["getpostpostcontentbodymodelparagraphsmetadata",3]],[[],["getpostpostcontentbodymodelparagraphsiframemediaresource",3]],[[],["getpostpostcontentbodymodelparagraphsiframe",3]],[[],["getpostpostcontentbodymodelparagraphsmarkups",3]],[[],["getpostpostcontentbodymodelparagraphs",3]],[[],["getpostpostcontentbodymodel",3]],[[],["getpostpostcontent",3]],[[],["getpostpostpreviewcontent",3]],[[],["getpostpostpreviewimage",3]],[[],["getpostpostcreator",3]],[[],["getpostpost",3]],[[],["responsedata",3]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],null,[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[["str",15]],["str",15]],[[],["str",15]],null,null,null,null,null,null,null,null,null,null,null,null,[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,null,[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],null,null,[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["getpostlightpostcreator",3]],[[],["getpostlightpost",3]],[[],["responsedata",3]],[[]],[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],null,[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[]],[[]],null,[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],null,null,[[]],[[]],[[]],[[]],null,[[]],[[]],[[]],[[]],null,[[],["builddetails",3]],[[]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[["usize",15]]],[[["usize",15]]],[[["formatter",3]],["result",6]],[[]],[[]],null,[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[["appservice",3]]],null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],null,[[],["usize",15]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],[[]],[[]],[[]],[[]],null,null,null,[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[]],[[]],[[]],null,null,null,[[["appservice",3]]],[[["appservice",3]]],[[["appservice",3]]],[[["appservice",3]]],[[],["renderresult",6]],[[["buffer",3]],["result",4,[["rendererror",4]]]],null,[[["serviceconfig",3]]],[[],["str",15]],[[["usize",15],["usize",15]],["str",15]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],[[]],[[]],[[]],null,null,[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],[[["str",15]],["string",3]],[[["str",15],["str",15]],["string",3]],null,[[],["usize",15]],[[]],[[]],null,[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],[[],["usize",15]],[[]],null,[[]],null,[[["serviceconfig",3]]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],[[]],[[]],null,[[["config",3]]],[[],["server",3]],[[],["settings",3]],[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[],["result",4]],null,[[["usize",15]]],[[["usize",15]]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[],["string",3]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],null,[[],["result",4,[["configerror",4]]]],null,null,null,null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],null],"p":[[3,"SETTINGS"],[3,"Data"],[3,"Settings"],[3,"GetPost"],[3,"GistContent"],[3,"GistFile"],[3,"GetPostLight"],[3,"PostUrl"],[3,"GetPostPostContentBodyModelParagraphsMarkups"],[3,"GetPostPostContent"],[3,"GetPostPostContentBodyModelParagraphsMetadata"],[3,"GetPostPostContentBodyModelParagraphsIframeMediaResource"],[3,"GetPostPostContentBodyModelParagraphsIframe"],[3,"GetPostPostContentBodyModelParagraphs"],[3,"GetPostPostContentBodyModel"],[3,"GetPostPostPreviewContent"],[3,"GetPostPostPreviewImage"],[3,"GetPostPostCreator"],[3,"GetPostPost"],[3,"ResponseData"],[3,"Variables"],[3,"GetPostLightPostCreator"],[3,"GetPostLightPost"],[3,"ResponseData"],[3,"Variables"],[3,"BuildDetails"],[3,"build_details"],[3,"Meta"],[3,"Post"],[3,"index"],[3,"assets"],[3,"by_post_id"],[3,"page"],[8,"StringUtils"],[3,"Proxy"],[3,"Routes"],[3,"Server"]]}\ +"libmedium":{"doc":"","t":[6,17,3,17,17,17,17,3,3,17,17,12,11,11,12,12,12,0,12,11,11,11,11,11,5,12,11,11,5,0,12,0,0,12,0,12,11,11,11,11,6,3,17,3,3,3,3,17,6,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,0,11,0,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,12,12,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,6,6,3,3,3,3,3,3,3,3,3,3,3,6,6,17,17,3,3,17,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,6,6,3,3,6,6,17,17,3,3,17,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,11,11,11,11,3,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,12,11,11,11,11,11,0,11,5,11,11,11,11,11,11,11,12,11,11,3,11,11,12,11,11,11,11,12,11,11,11,11,11,11,11,17,17,3,8,3,11,11,11,11,11,11,11,11,11,11,3,12,12,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,3,11,11,11,11,11,11,11,11,11,11,3,12,12,11,11,11,11,11,11,0,5,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,12,11,11,12,11,11,11,11,11,11,12,11,11,11,12,11,11,11,11,17,3,11,11,11,11,11,11,11,11,12,11,12,5,11,11,11,11,3,3,11,11,11,11,12,5,11,11,11,11,12,11,11,11,11,11,11,12,11,11,11,11,11,11,11,11,11,11,11,12,11,12,12,12,12,11,11,11,11,11,11,11,11,11,11,12],"n":["AppData","CACHE_AGE","Data","GIT_COMMIT_HASH","PKG_DESCRIPTION","PKG_HOMEPAGE","PKG_NAME","SETTINGS","Settings","V1_API_ROUTES","VERSION","__private_field","borrow","borrow_mut","cache","cache","client","data","debug","deref","deref","deref_mut","drop","from","get_json_err","gists","init","into","main","meta","posts","proxy","routes","server","settings","source_code","try_from","try_into","type_id","vzip","AppData","Data","GIST_CACHE_VERSION","GetPost","GetPostLight","GistContent","GistFile","POST_CACHE_VERSION","PostResp","PostUrl","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build_query","build_query","cache","client","clone","clone","clone","clone_into","clone_into","clone_into","content","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","drop","drop","drop","drop","drop","drop","file_name","files","fmt","from","from","from","from","from","from","get_gist","get_gist_id","get_html_content","get_post","get_post","get_post_light","get_post_light","gists","html_url","init","init","init","init","init","init","into","into","into","into","into","into","language","migrate","new","posts","raw_url","serialize","serialize","slug","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","username","vzip","vzip","vzip","vzip","vzip","vzip","Boolean","Float","GetPostPost","GetPostPostContent","GetPostPostContentBodyModel","GetPostPostContentBodyModelParagraphs","GetPostPostContentBodyModelParagraphsIframe","GetPostPostContentBodyModelParagraphsIframeMediaResource","GetPostPostContentBodyModelParagraphsMarkups","GetPostPostContentBodyModelParagraphsMetadata","GetPostPostCreator","GetPostPostPreviewContent","GetPostPostPreviewImage","ID","Int","OPERATION_NAME","QUERY","ResponseData","Variables","__QUERY_WORKAROUND","anchor_type","body_model","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","content","created_at","creator","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","drop","end","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","get_subtitle","href","href","href","id","id","id","id","iframe","iframe_height","iframe_src","iframe_width","image_id","init","init","init","init","init","init","init","init","init","init","init","init","init","into","into","into","into","into","into","into","into","into","into","into","into","into","layout","markups","media_resource","metadata","name","original_height","original_width","paragraphs","post","preview_content","preview_image","reading_time","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","start","subtitle","text","title","title","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_","type_","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_slug","user_id","username","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Boolean","Float","GetPostLightPost","GetPostLightPostCreator","ID","Int","OPERATION_NAME","QUERY","ResponseData","Variables","__QUERY_WORKAROUND","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","creator","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","drop","drop","drop","drop","fmt","fmt","fmt","from","from","from","from","id","init","init","init","init","into","into","into","into","post","serialize","serialize","serialize","serialize","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","unique_slug","username","vzip","vzip","vzip","vzip","BuildDetails","borrow","borrow","borrow_mut","borrow_mut","build_details","clone","clone_into","deref","deref","deref_mut","deref_mut","deserialize","drop","drop","fmt","from","from","git_commit_hash","init","init","into","into","register","routes","serialize","services","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","version","vzip","vzip","Meta","borrow","borrow_mut","build_details","deref","deref_mut","drop","from","health","init","into","new","try_from","try_into","type_id","vzip","CACHE_AGE","INDEX","Post","StringUtils","assets","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","by_post_id","data","date","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","drop","drop","drop","drop","drop","from","from","from","from","from","gists","id","index","init","init","init","init","init","into","into","into","into","into","page","preview_img","reading_time","register","register","register","register","render_once","render_once_to","routes","services","slice","substring","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","Proxy","asset","borrow","borrow_mut","by_post_id","deref","deref_mut","drop","from","get_medium_asset","get_page","index","init","into","new","page","try_from","try_into","type_id","vzip","ROUTES","Routes","borrow","borrow_mut","deref","deref_mut","drop","from","init","into","meta","new","proxy","services","try_from","try_into","type_id","vzip","Server","Settings","borrow","borrow","borrow_mut","borrow_mut","cache","check_url","clone","clone","clone_into","clone_into","debug","deref","deref","deref_mut","deref_mut","deserialize","deserialize","domain","drop","drop","fmt","fmt","from","from","get_ip","init","init","into","into","ip","new","port","proxy_has_tls","server","source_code","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","workers"],"q":["libmedium","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data::get_post","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::data::get_post_light","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::meta","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::meta::routes","","","","","","","","","","","","","","","","libmedium::proxy","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","libmedium::proxy::routes","","","","","","","","","","","","","","","","","","","","libmedium::routes","","","","","","","","","","","","","","","","","","libmedium::settings","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","emmits build details of the bninary","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,0,0,0,1,1,1,2,3,2,0,3,1,1,1,1,1,0,2,1,1,0,0,2,0,0,3,0,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,2,4,5,6,7,8,2,4,5,6,7,8,4,7,2,2,2,6,8,2,6,8,6,2,4,5,6,7,8,2,4,5,6,7,8,5,6,2,4,5,6,7,8,6,5,8,2,4,5,6,7,8,2,2,6,0,2,0,2,2,5,2,4,5,6,7,8,2,4,5,6,7,8,6,2,2,2,6,5,6,8,2,6,8,2,4,5,6,7,8,2,4,5,6,7,8,2,4,5,6,7,8,8,2,4,5,6,7,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,10,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,11,12,13,9,14,15,10,16,17,18,19,20,19,19,19,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,11,12,13,9,14,15,10,16,17,18,19,20,21,9,11,12,13,9,14,15,10,16,17,18,19,20,11,12,13,9,14,15,10,16,17,18,19,20,21,19,12,9,14,11,17,18,21,14,12,12,12,18,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,21,14,14,13,14,18,11,11,15,20,19,19,19,11,12,13,9,14,15,10,16,17,18,19,20,21,9,16,14,9,19,11,12,13,9,14,15,10,16,17,18,19,20,11,12,13,9,14,15,10,16,17,18,19,20,21,11,12,13,9,14,15,10,16,17,18,19,20,21,9,14,11,12,13,9,14,15,10,16,17,18,19,20,21,19,9,18,11,12,13,9,14,15,10,16,17,18,19,20,21,0,0,0,0,0,0,0,0,0,0,0,22,23,24,25,22,23,24,25,22,23,24,22,23,24,23,22,23,24,25,22,23,24,25,22,23,24,22,23,24,25,22,23,24,22,23,24,25,25,22,23,24,25,22,23,24,25,24,22,23,24,25,22,23,24,22,23,24,25,22,23,24,25,22,23,24,25,23,22,22,23,24,25,0,26,27,26,27,0,26,26,26,27,26,27,26,26,27,26,26,27,26,26,27,26,27,27,0,26,0,26,26,27,26,27,26,27,26,26,27,0,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,0,0,0,0,0,29,30,31,32,33,29,30,31,32,33,0,29,29,29,30,31,32,33,29,30,31,32,33,29,30,31,32,33,29,30,31,32,33,29,29,0,29,30,31,32,33,29,30,31,32,33,0,29,29,30,31,32,33,29,29,0,0,34,34,29,30,31,32,33,29,30,31,32,33,29,30,31,32,33,29,30,31,32,33,0,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,0,0,36,36,36,36,36,36,36,36,36,36,36,0,36,36,36,36,0,0,37,3,37,3,3,0,37,3,37,3,3,37,3,37,3,37,3,37,37,3,37,3,37,3,37,37,3,37,3,37,3,37,37,3,3,37,3,37,3,37,3,37,3,37,3,37],"f":[null,null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],null,null,null,null,null,[[],["settings",3]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],[[],["jsonconfig",3]],null,[[],["usize",15]],[[]],[[],["result",6]],null,null,null,null,null,null,null,[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["querybody",3]],[[],["querybody",3]],null,null,[[],["data",3]],[[],["gistfile",3]],[[],["posturl",3]],[[]],[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[],["result",4]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],null,null,[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[]],[[]],[[["string",3]]],[[["str",15]],["str",15]],[[],["string",3]],null,[[["str",15]]],null,[[["str",15]]],null,null,[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[]],[[]],[[]],[[]],null,[[]],[[],["appdata",6]],null,null,[[],["result",4]],[[],["result",4]],null,[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["getpostpostcontentbodymodelparagraphsmetadata",3]],[[],["getpostpostcontentbodymodelparagraphsiframemediaresource",3]],[[],["getpostpostcontentbodymodelparagraphsiframe",3]],[[],["getpostpostcontentbodymodelparagraphsmarkups",3]],[[],["getpostpostcontentbodymodelparagraphs",3]],[[],["getpostpostcontentbodymodel",3]],[[],["getpostpostcontent",3]],[[],["getpostpostpreviewcontent",3]],[[],["getpostpostpreviewimage",3]],[[],["getpostpostcreator",3]],[[],["getpostpost",3]],[[],["responsedata",3]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],null,[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["str",15]],null,null,null,null,null,null,null,null,null,null,null,null,[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,null,[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],null,null,[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,null,null,null,null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],["getpostlightpostcreator",3]],[[],["getpostlightpost",3]],[[],["responsedata",3]],[[]],[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[]],[[]],null,[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[]],[[]],null,[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],null,null,[[]],[[]],[[]],[[]],null,[[]],[[]],[[]],[[]],null,[[],["builddetails",3]],[[]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[["usize",15]]],[[["usize",15]]],[[["formatter",3]],["result",6]],[[]],[[]],null,[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[["appservice",3]]],null,[[],["result",4]],[[["serviceconfig",3]]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],null,[[]],[[]],null,[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],null,[[],["usize",15]],[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,null,null,null,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],null,null,null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],[[]],[[]],[[]],[[]],null,null,null,[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],[[]],[[]],[[]],null,null,null,[[["appservice",3]]],[[["appservice",3]]],[[["appservice",3]]],[[["appservice",3]]],[[],["renderresult",6]],[[["buffer",3]],["result",4,[["rendererror",4]]]],null,[[["serviceconfig",3]]],[[],["str",15]],[[["usize",15],["usize",15]],["str",15]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],[[]],[[]],[[]],null,null,[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],[[["str",15]],["string",3]],[[["str",15],["str",15]],["string",3]],null,[[],["usize",15]],[[]],[[]],null,[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[]],[[],["usize",15]],[[]],null,[[]],null,[[["serviceconfig",3]]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[]],null,null,[[]],[[]],[[]],[[]],null,[[["config",3]]],[[],["server",3]],[[],["settings",3]],[[]],[[]],null,[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[["usize",15]]],[[],["result",4]],[[],["result",4]],null,[[["usize",15]]],[[["usize",15]]],[[["formatter",3]],["result",6]],[[["formatter",3]],["result",6]],[[]],[[]],[[],["string",3]],[[],["usize",15]],[[],["usize",15]],[[]],[[]],null,[[],["result",4,[["configerror",4]]]],null,null,null,null,[[]],[[]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["result",4]],[[],["typeid",3]],[[],["typeid",3]],[[]],[[]],null],"p":[[3,"SETTINGS"],[3,"Data"],[3,"Settings"],[3,"GetPost"],[3,"GistContent"],[3,"GistFile"],[3,"GetPostLight"],[3,"PostUrl"],[3,"GetPostPostContentBodyModelParagraphsMarkups"],[3,"GetPostPostContent"],[3,"GetPostPostContentBodyModelParagraphsMetadata"],[3,"GetPostPostContentBodyModelParagraphsIframeMediaResource"],[3,"GetPostPostContentBodyModelParagraphsIframe"],[3,"GetPostPostContentBodyModelParagraphs"],[3,"GetPostPostContentBodyModel"],[3,"GetPostPostPreviewContent"],[3,"GetPostPostPreviewImage"],[3,"GetPostPostCreator"],[3,"GetPostPost"],[3,"ResponseData"],[3,"Variables"],[3,"GetPostLightPostCreator"],[3,"GetPostLightPost"],[3,"ResponseData"],[3,"Variables"],[3,"BuildDetails"],[3,"build_details"],[3,"Meta"],[3,"Post"],[3,"index"],[3,"assets"],[3,"by_post_id"],[3,"page"],[8,"StringUtils"],[3,"Proxy"],[3,"Routes"],[3,"Server"]]}\ }'); if (window.initSearch) {window.initSearch(searchIndex)}; \ No newline at end of file diff --git a/src/libmedium/data.rs.html b/src/libmedium/data.rs.html index 3632058..2717866 100644 --- a/src/libmedium/data.rs.html +++ b/src/libmedium/data.rs.html @@ -250,6 +250,43 @@ 249 250 251 +252 +253 +254 +255 +256 +257 +258 +259 +260 +261 +262 +263 +264 +265 +266 +267 +268 +269 +270 +271 +272 +273 +274 +275 +276 +277 +278 +279 +280 +281 +282 +283 +284 +285 +286 +287 +288
/*
  * Copyright (C) 2021  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -302,10 +339,6 @@
 pub type AppData = web::Data<Data>;
 
 impl PostResp {
-    pub fn get_gist_id<'a>(&self, url: &'a str) -> &'a str {
-        url.split('/').last().unwrap()
-    }
-
     pub fn get_subtitle(&self) -> &str {
         self.preview_content.as_ref().unwrap().subtitle.as_str()
     }
@@ -317,7 +350,7 @@
     pub html_url: String,
 }
 
-#[derive(Deserialize, Serialize)]
+#[derive(Deserialize, Clone, Serialize)]
 pub struct GistFile {
     pub file_name: String,
     pub content: String,
@@ -443,9 +476,25 @@
         }
     }
 
-    pub async fn get_gist(&self, id: String) -> (String, GistContent) {
-        match self.gists.get(&id) {
-            Ok(Some(v)) => (id, bincode::deserialize(&v[..]).unwrap()),
+    pub fn get_gist_id(url: &str) -> &str {
+        url.split('/').last().unwrap()
+    }
+
+    pub async fn get_gist(&self, gist_url: String) -> (String, GistContent) {
+        let id = Self::get_gist_id(&gist_url).to_owned();
+        let file_name = if gist_url.contains('?') {
+            let parsed = url::Url::parse(&gist_url).unwrap();
+            if let Some((_, file_name)) = parsed.query_pairs().find(|(k, _)| k == "file") {
+                Some(file_name.into_owned())
+            } else {
+                None
+            }
+        } else {
+            None
+        };
+
+        let gist = match self.gists.get(&id) {
+            Ok(Some(v)) => bincode::deserialize(&v[..]).unwrap(),
             _ => {
                 const URL: &str = "https://api.github.com/gists/";
 
@@ -463,9 +512,9 @@
                     .unwrap();
                 let files = resp.get("files").unwrap();
                 let v = files.as_object().unwrap();
-                let mut files = Vec::with_capacity(v.len());
-                v.iter().for_each(|(name, file_obj)| {
-                    let file = GistFile {
+
+                fn to_gist_file(name: &str, file_obj: &serde_json::Value) -> GistFile {
+                    GistFile {
                         file_name: name.to_string(),
                         content: file_obj
                             .get("content")
@@ -485,9 +534,15 @@
                             .as_str()
                             .unwrap()
                             .to_owned(),
-                    };
+                    }
+                }
+
+                let mut files = Vec::with_capacity(v.len());
+                v.iter().for_each(|(name, file_obj)| {
+                    let file = to_gist_file(name, file_obj);
                     files.push(file);
                 });
+
                 let gist = GistContent {
                     files,
                     html_url: resp.get("html_url").unwrap().as_str().unwrap().to_owned(),
@@ -496,9 +551,28 @@
                 self.gists
                     .insert(&id, bincode::serialize(&gist).unwrap())
                     .unwrap();
-                (id, gist)
+                gist
             }
-        }
+        };
+
+        let gist = if let Some(file_name) = file_name {
+            let mut files: Vec<GistFile> = Vec::with_capacity(1);
+            let file = gist
+                .files
+                .iter()
+                .find(|f| f.file_name == file_name)
+                .unwrap()
+                .to_owned();
+            files.push(file);
+            GistContent {
+                files,
+                html_url: gist_url,
+            }
+        } else {
+            gist
+        };
+
+        (id, gist)
     }
 }
 
diff --git a/src/libmedium/proxy.rs.html b/src/libmedium/proxy.rs.html index 0aaeb67..2322384 100644 --- a/src/libmedium/proxy.rs.html +++ b/src/libmedium/proxy.rs.html @@ -277,7 +277,6 @@ 276 277 278 -279
/*
  * Copyright (C) 2021  Aravinth Manivannan <realaravinth@batsense.net>
  *
@@ -465,8 +464,7 @@
                 .unwrap()
                 .href;
             if src.contains("gist.github.com") {
-                let gist_id = post_data.get_gist_id(src);
-                let fut = data.get_gist(gist_id.to_owned());
+                let fut = data.get_gist(src.to_owned());
                 futs.push(fut);
             }
         }