use crate::sns::report::SnsNeuronsSort;
use clap::ValueEnum;
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, ValueEnum)]
pub(in crate::sns::commands) enum SnsNeuronsSortArg {
#[default]
Api,
Id,
Stake,
Maturity,
Created,
}
impl From<SnsNeuronsSortArg> for SnsNeuronsSort {
fn from(value: SnsNeuronsSortArg) -> Self {
match value {
SnsNeuronsSortArg::Api => Self::Api,
SnsNeuronsSortArg::Id => Self::Id,
SnsNeuronsSortArg::Stake => Self::Stake,
SnsNeuronsSortArg::Maturity => Self::Maturity,
SnsNeuronsSortArg::Created => Self::Created,
}
}
}