first commit

This commit is contained in:
michascant 2024-12-11 01:43:37 -05:00
parent b21d7aedf9
commit 2a04ecccc4

View File

@ -20,6 +20,14 @@ use crate::Opt;
#[macro_export] #[macro_export]
macro_rules! make_setting_route { macro_rules! make_setting_route {
($route:literal, $update_verb:ident, $type:ty, $err_ty:ty, $attr:ident, $camelcase_attr:literal, $analytics:ident) => { ($route:literal, $update_verb:ident, $type:ty, $err_ty:ty, $attr:ident, $camelcase_attr:literal, $analytics:ident) => {
#[allow(dead_code)]
pub fn verify_field_exists(settings: Settings) {
match settings {
Settings { $attr: _, .. } => {}
}
}
pub mod $attr { pub mod $attr {
use actix_web::web::Data; use actix_web::web::Data;
use actix_web::{web, HttpRequest, HttpResponse, Resource}; use actix_web::{web, HttpRequest, HttpResponse, Resource};