mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
start moving a lot of task types to meilisearch_types
This commit is contained in:
parent
974b40ba04
commit
e6c033bd6b
18 changed files with 416 additions and 347 deletions
|
@ -11,7 +11,8 @@ pub type Result<T> = std::result::Result<T, Error>;
|
|||
pub type TaskId = u32;
|
||||
|
||||
pub use error::Error;
|
||||
pub use task::{Details, Kind, KindWithContent, Status, TaskView};
|
||||
use meilisearch_types::tasks::{Kind, Status, TaskView};
|
||||
pub use task::KindWithContent;
|
||||
|
||||
use std::path::PathBuf;
|
||||
use std::sync::{Arc, RwLock};
|
||||
|
@ -34,7 +35,7 @@ use crate::task::Task;
|
|||
|
||||
const DEFAULT_LIMIT: fn() -> u32 = || 20;
|
||||
|
||||
#[derive(derive_builder::Builder, Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Query {
|
||||
#[serde(default = "DEFAULT_LIMIT")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue