use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IndicesBlockStatus {
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "blocked")]
pub blocked: bool,
}
impl IndicesBlockStatus {
pub fn new(name: String, blocked: bool) -> IndicesBlockStatus {
IndicesBlockStatus {
name,
blocked,
}
}
}