Добавлена возможность создания ResponseError с описанием ошибки.

Добавлен макрос для трансформации ErrorCode в Response, а также для имплементации треита PartialStatusCode.
This commit is contained in:
2025-03-28 15:42:45 +04:00
parent 70a7480ea3
commit 30c985a3d7
12 changed files with 296 additions and 122 deletions

View File

@@ -1,11 +1,12 @@
use crate::parser::schema::ParseResult;
use crate::xls_downloader::basic_impl::BasicXlsDownloader;
use actix_web::web;
use chrono::{DateTime, Utc};
use diesel::{Connection, PgConnection};
use std::env;
use std::sync::{Mutex, MutexGuard};
use crate::parser::schema::ParseResult;
#[derive(Clone)]
pub struct Schedule {
pub etag: String,
pub updated_at: DateTime<Utc>,