MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_expired

Method is_expired

atomic-identity/src/delegation.rs:518–520  ·  view source on GitHub ↗

Check if the delegation has expired.

(&self)

Source from the content-addressed store, hash-verified

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) {

Callers 1

is_validMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected