From 1031d495d5b78d9b19dcdc414b6d7b0daf313bb2 Mon Sep 17 00:00:00 2001 From: Vika Date: Sun, 10 Jul 2022 00:55:20 +0300 Subject: media: media endpoint PoC Supported features: - Streaming upload - Content-addressed storage - Metadata - MIME type (taken from Content-Type) - Length (I could use stat() for this one tho) - filename (for Content-Disposition: attachment, WIP) --- kittybox-rs/src/micropub/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kittybox-rs/src/micropub/mod.rs') diff --git a/kittybox-rs/src/micropub/mod.rs b/kittybox-rs/src/micropub/mod.rs index d8a84e6..8550849 100644 --- a/kittybox-rs/src/micropub/mod.rs +++ b/kittybox-rs/src/micropub/mod.rs @@ -28,7 +28,7 @@ pub struct MicropubQuery { #[derive(Serialize, Deserialize, PartialEq, Debug)] #[serde(rename_all = "snake_case")] -enum ErrorType { +pub(crate) enum ErrorType { AlreadyExists, Forbidden, InternalServerError, @@ -41,8 +41,8 @@ enum ErrorType { #[derive(Serialize, Deserialize, Debug)] pub(crate) struct MicropubError { - error: ErrorType, - error_description: String, + pub(crate) error: ErrorType, + pub(crate) error_description: String, } impl From for MicropubError { -- cgit 1.4.1