mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-06-08 05:05:42 +00:00
18 lines
376 B
Rust
18 lines
376 B
Rust
use sdset::{Set, SetBuf};
|
|
use serde_derive::{Serialize, Deserialize};
|
|
|
|
use crate::database::Index;
|
|
use crate::DocumentId;
|
|
|
|
#[derive(Serialize)]
|
|
pub enum WriteIndexEvent<'a> {
|
|
RemovedDocuments(&'a Set<DocumentId>),
|
|
UpdatedDocuments(&'a Index),
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub enum ReadIndexEvent {
|
|
RemovedDocuments(SetBuf<DocumentId>),
|
|
UpdatedDocuments(Index),
|
|
}
|