Can export data as ZIP file

This commit is contained in:
2025-05-02 23:24:38 +02:00
parent 1b3ce1a98d
commit f335b9d0c0
6 changed files with 321 additions and 8 deletions

View File

@ -1,6 +1,7 @@
use actix_web::http::StatusCode;
use actix_web::{HttpResponse, ResponseError};
use std::error::Error;
use zip::result::ZipError;
pub mod accounts_controller;
pub mod auth_controller;
@ -30,6 +31,10 @@ pub enum HttpFailure {
InternalError(#[from] anyhow::Error),
#[error("a serde_json error occurred: {0}")]
SerdeJsonError(#[from] serde_json::error::Error),
#[error("a zip manipulation error occurred: {0}")]
ZipError(#[from] ZipError),
#[error("a standard I/O manipulation error occurred: {0}")]
StdIoError(#[from] std::io::Error),
}
impl ResponseError for HttpFailure {