Check if the delegation has expired.
(&self)
| 516 | |
| 517 | /// Check if the delegation has expired. |
| 518 | pub fn is_expired(&self) -> bool { |
| 519 | self.expires_at.map(|exp| exp < Utc::now()).unwrap_or(false) |
| 520 | } |
| 521 | |
| 522 | /// Revoke the delegation. |
| 523 | pub fn revoke(&mut self) { |