This commit is contained in:
Quentin de Quelen 2020-04-09 10:39:34 +02:00 committed by qdequele
parent 6c581fb3bd
commit 5ec130e6dc
No known key found for this signature in database
GPG key ID: B3F0A000EBF11745
11 changed files with 122 additions and 140 deletions

View file

@ -1,4 +1,4 @@
use actix_web::*;
use actix_web::{get, HttpResponse};
use serde::Serialize;
use log::error;
use meilisearch_core::ProcessedUpdateResult;
@ -10,24 +10,21 @@ pub mod health;
pub mod index;
pub mod key;
pub mod search;
// pub mod setting;
pub mod stats;
// pub mod setting;
// pub mod stop_words;
// pub mod synonym;
pub mod update;
#[derive(Default, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct IndexUpdateResponse {
pub update_id: u64,
pub see_more: String,
}
impl IndexUpdateResponse {
pub fn with_id(update_id: u64) -> Self {
Self {
update_id,
see_more: "https://docs.meilisearch.com/guides/advanced_guides/asynchronous_updates.html".to_string()
}
}
}