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

Method is_expired

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

Has this delegation passed its expiry?

(&self)

Source from the content-addressed store, hash-verified

700
701 /// Has this delegation passed its expiry?
702 pub fn is_expired(&self) -> bool {
703 self.expires.map(|exp| exp < Utc::now()).unwrap_or(false)
704 }
705
706 /// Status from purely local facts. Revocation is server state, so a caller
707 /// that knows a revocation exists should report [`DelegationStatus::Revoked`]

Callers 2

statusMethod · 0.45
allowsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected