diff options
author | Vika <vika@fireburn.ru> | 2022-07-10 00:55:20 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-07-10 00:55:20 +0300 |
commit | 1031d495d5b78d9b19dcdc414b6d7b0daf313bb2 (patch) | |
tree | a6ea6d347bc690c467df798f5576800d371b2254 /kittybox-rs/src/micropub | |
parent | 2cbd19693115bf19da0ab888372cb1ff086967cd (diff) | |
download | kittybox-1031d495d5b78d9b19dcdc414b6d7b0daf313bb2.tar.zst |
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)
Diffstat (limited to 'kittybox-rs/src/micropub')
-rw-r--r-- | kittybox-rs/src/micropub/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<StorageError> for MicropubError { |