(&self)
| 390 | } |
| 391 | |
| 392 | fn get_timestamps(&self) -> bool { |
| 393 | match self.values.get("timestamps") { |
| 394 | Some(Value::String(value)) if value.eq_ignore_ascii_case("show") => true, |
| 395 | Some(Value::Bool(value)) => *value, |
| 396 | _ => false, |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | fn set_timestamps(&mut self, show: bool) { |
| 401 | let value = if show { "show" } else { "hide" }; |