use abscissa_core::Config;
use serde::{Deserialize, Serialize};
#[derive(Clone, Config, Debug, Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
pub struct CargoMoveConfig {
pub hello: ExampleSection,
}
impl Default for CargoMoveConfig {
fn default() -> Self {
Self {
hello: ExampleSection::default(),
}
}
}
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
pub struct ExampleSection {
pub recipient: String,
}
impl Default for ExampleSection {
fn default() -> Self {
Self {
recipient: "world".to_owned(),
}
}
}