If the `Value` is a String, returns the associated str. Returns None otherwise.
(&self)
| 495 | /// If the `Value` is a String, returns the associated str. Returns None |
| 496 | /// otherwise. |
| 497 | pub fn as_str(&self) -> Option<&str> { |
| 498 | match self { |
| 499 | Value::String(s) => Some(&s), |
| 500 | Value::Integer(_) => None, |
| 501 | Value::Boolean(_) => None, |
| 502 | Value::StringArray(_) => None, |
| 503 | Value::IntegerArray(_) => None, |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | /// Returns true if the `Value` is an integer between `i64::MIN` and |
| 508 | /// `i64::MAX`. |
no outgoing calls
no test coverage detected