1
2
3
4
5
6
7
8
9
10
11
use serde::Serialize;
use crate::index::Type;
use crate::sort::Sort;

#[derive(Debug, Clone, PartialEq, Serialize)]
pub struct Index {
    pub r#type: Type,
    pub name: String,
    pub sort: Sort,
    pub length: Option<usize>,
}