chore: add Default to some structs
This commit is contained in:
parent
d2eb72d552
commit
d813292382
@ -79,7 +79,7 @@ impl<T> KloudStore<T> {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize, Default)]
|
||||||
pub struct KloudQueryFilters {
|
pub struct KloudQueryFilters {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub sort: String,
|
pub sort: String,
|
||||||
@ -89,25 +89,25 @@ pub struct KloudQueryFilters {
|
|||||||
// pub limit: Option<usize>,
|
// pub limit: Option<usize>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize, Default)]
|
||||||
pub struct KloudQueryDefsFilters {
|
pub struct KloudQueryDefsFilters {
|
||||||
pub id: Option<String>,
|
pub id: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize, Default)]
|
||||||
pub struct KloudQueryLangFilters {
|
pub struct KloudQueryLangFilters {
|
||||||
pub lang: Option<String>,
|
pub lang: Option<String>,
|
||||||
pub section: Option<String>,
|
pub section: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize, Default)]
|
||||||
pub struct KloudReqData {
|
pub struct KloudReqData {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub str_data: String,
|
pub str_data: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize, Default)]
|
||||||
pub struct KloudQueryConfigFilters {
|
pub struct KloudQueryConfigFilters {
|
||||||
pub cld: String,
|
pub cld: String,
|
||||||
pub grp: String,
|
pub grp: String,
|
||||||
|
Loading…
Reference in New Issue
Block a user