Added network support for updating all indexer settings, editing specific indexer settings, deleting an indexer; Also added keybindings for all of the above that change the current route. Added full support for deleting an indexer; still need to add an indexer_handler to handle the add, edit, and settings functionalities
This commit is contained in:
@@ -182,7 +182,6 @@ pub struct IndexerField {
|
||||
pub value: Option<Value>,
|
||||
#[serde(rename(deserialize = "type"))]
|
||||
pub field_type: Option<String>,
|
||||
pub advanced: bool,
|
||||
pub select_options: Option<Vec<IndexerSelectOption>>,
|
||||
}
|
||||
|
||||
@@ -197,6 +196,27 @@ pub struct IndexerSelectOption {
|
||||
pub order: Number,
|
||||
}
|
||||
|
||||
#[derive(Derivative, Deserialize, Serialize, Debug, Clone, Eq, PartialEq)]
|
||||
#[derivative(Default)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct IndexerSettings {
|
||||
pub allow_hardcoded_subs: bool,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub availability_delay: Number,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub id: Number,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub maximum_size: Number,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub minimum_age: Number,
|
||||
pub prefer_indexer_flags: bool,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub retention: Number,
|
||||
#[derivative(Default(value = "Number::from(0)"))]
|
||||
pub rss_sync_interval: Number,
|
||||
pub whitelisted_hardcoded_subs: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default, Debug, Clone, PartialEq, Eq, Ord, PartialOrd)]
|
||||
pub struct Language {
|
||||
pub name: String,
|
||||
|
||||
Reference in New Issue
Block a user