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

Method time_remaining

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

Time remaining before expiry, or `None` if it never expires.

(&self)

Source from the content-addressed store, hash-verified

716
717 /// Time remaining before expiry, or `None` if it never expires.
718 pub fn time_remaining(&self) -> Option<Duration> {
719 self.expires.map(|exp| exp - Utc::now())
720 }
721
722 /// Does the delegation authorize `permission` on `resource`?
723 ///

Callers 2

executeMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected