You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
670 B

  1. use serde::{Deserialize, Serialize};
  2. #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
  3. pub struct Root {
  4. pub max_claims_soft: Option<i64>,
  5. pub max_claims_hard: Option<i64>,
  6. pub moving_average_interval: Option<i64>,
  7. pub min_script_version: Option<String>,
  8. pub title: String,
  9. pub ignore_global_blocked: bool,
  10. pub item_type: String,
  11. pub history_length: i64,
  12. pub domains: Option<serde_json::Value>,
  13. pub valid_item_regexp: String,
  14. pub redis: Option<Redis>,
  15. }
  16. #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
  17. pub struct Redis {
  18. pub host: String,
  19. pub port: u16,
  20. pub pass: String,
  21. }