Check if the identity has expired.
(&self)
| 244 | |
| 245 | /// Check if the identity has expired. |
| 246 | pub fn is_expired(&self) -> bool { |
| 247 | self.expires_at.map(|exp| exp < Utc::now()).unwrap_or(false) |
| 248 | } |
| 249 | |
| 250 | /// Set the description. |
| 251 | pub fn with_description(mut self, description: impl Into<String>) -> Self { |
no outgoing calls
no test coverage detected