refactor configs to match new nested api from lib

This commit is contained in:
Clément DOUIN
2023-12-11 18:38:00 +01:00
parent 8e05be7f77
commit 2e0ec913cf
23 changed files with 214 additions and 292 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ impl FolderListCommand {
printer.print_table(
Box::new(folders),
PrintTableOpts {
format: &account_config.email_reading_format,
format: &account_config.get_message_read_format(),
max_width: self.table.max_width,
},
)?;
+6
View File
@@ -10,6 +10,9 @@ pub struct FolderConfig {
pub expunge: Option<FolderExpungeConfig>,
pub purge: Option<FolderPurgeConfig>,
pub delete: Option<FolderDeleteConfig>,
#[serde(flatten)]
pub remote: email::folder::config::FolderConfig,
}
impl FolderConfig {
@@ -60,6 +63,9 @@ impl FolderAddConfig {
#[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)]
pub struct FolderListConfig {
pub backend: Option<BackendKind>,
#[serde(flatten)]
pub remote: email::folder::list::config::FolderListConfig,
}
impl FolderListConfig {