use crate::arg::Type;
pub struct Descriptor {
value_type: Type,
description: String,
}
impl Descriptor {
pub fn new(value_type: Type, description: &str) -> Self {
Descriptor {
value_type,
description: String::from(description),
}
}
pub fn value_type(&self) -> &Type {
&self.value_type
}
pub fn description(&self) -> &String {
&self.description
}
}