diff --git a/src/main.rs b/src/main.rs index 28e9766..0bd778b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,7 @@ struct Paste { } #[derive(Serialize, Deserialize)] -struct ResponseJSON { +struct GitLabSuccessJSON { file_name: String, file_path: String, size: u64, @@ -37,23 +37,35 @@ struct ResponseJSON { content: String, } +#[derive(Serialize, Deserialize)] +struct GitLabFailedJSON { + message: String, +} + #[get("/")] async fn paste_render(data: Data