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

Method expires_in

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

Expire after a duration from the issue time.

(mut self, duration: Duration)

Source from the content-addressed store, hash-verified

694
695 /// Expire after a duration from the issue time.
696 pub fn expires_in(mut self, duration: Duration) -> Self {
697 self.expires = Some(self.issued + duration);
698 self
699 }
700
701 /// Has this delegation passed its expiry?
702 pub fn is_expired(&self) -> bool {

Callers 7

issueFunction · 0.80
runMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
certificateFunction · 0.80
test_delegation_allowsFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_delegation_allowsFunction · 0.64