about summary refs log tree commit diff
path: root/kittybox-rs/src/micropub/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs/src/micropub/mod.rs')
-rw-r--r--kittybox-rs/src/micropub/mod.rs6
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 {