docs: documented most of the code

This commit is contained in:
Даниил 2024-03-08 23:07:10 +04:00
parent e367930505
commit e4287bb2ac
Signed by: nm17
GPG key ID: 3303B70C59145CD4
18 changed files with 223 additions and 191 deletions

View file

@ -12,11 +12,14 @@ use thiserror::Error;
use crate::insert_header;
use crate::web_server::old_device_sensor_api::QSParserError;
use crate::web_server::old_device_sensor_api::qs_parser::QSParserError;
use rust_decimal::Decimal;
use serde_json::json;
/// Главный объект ошибки [std::error::Error] для всего Web API.
///
/// В целом, все Result у Web сервера должны использовать этот Error.
#[derive(Debug, Error, Display)]
pub enum AppError {
#[display(fmt = "IDK")]