mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
first commit
This commit is contained in:
parent
b21d7aedf9
commit
2a04ecccc4
1 changed files with 8 additions and 0 deletions
|
@ -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};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue