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

Method with_expiry

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

Set an explicit expiry.

(mut self, expires: DateTime<Utc>)

Source from the content-addressed store, hash-verified

688
689 /// Set an explicit expiry.
690 pub fn with_expiry(mut self, expires: DateTime<Utc>) -> Self {
691 self.expires = Some(expires);
692 self
693 }
694
695 /// Expire after a duration from the issue time.
696 pub fn expires_in(mut self, duration: Duration) -> Self {

Calls

no outgoing calls

Tested by 1