use crate::cluster;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RerouteExplanation {
#[serde(rename = "parameters")]
pub parameters: cluster::reroute::RerouteParameters,
#[serde(rename = "decisions")]
pub decisions: Vec<cluster::reroute::RerouteDecision>,
#[serde(rename = "command")]
pub command: String,
}
impl RerouteExplanation {
pub fn new(parameters: cluster::reroute::RerouteParameters, decisions: Vec<cluster::reroute::RerouteDecision>, command: String) -> RerouteExplanation {
RerouteExplanation {
parameters,
decisions,
command,
}
}
}