Can export data as ZIP file
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user