pub struct DonationPermitDerivedKeyPair { /* private fields */ }Expand description
A key pair used to issue and verify donation permits for a particular expiration.
These are intended to be cheaply cached; the redeeming server only needs the derived key pair, never the root secret.
Implementations§
Source§impl DonationPermitDerivedKeyPair
impl DonationPermitDerivedKeyPair
Sourcepub fn for_expiration(
expiration: Timestamp,
root: impl AsRef<ServerRootKeyPair>,
) -> Self
pub fn for_expiration( expiration: Timestamp, root: impl AsRef<ServerRootKeyPair>, ) -> Self
Derives the appropriate key pair for the given expiration.
Sourcepub fn expiration(&self) -> Timestamp
pub fn expiration(&self) -> Timestamp
The expiration this key pair was derived for.
Trait Implementations§
Source§impl Clone for DonationPermitDerivedKeyPair
impl Clone for DonationPermitDerivedKeyPair
Source§fn clone(&self) -> DonationPermitDerivedKeyPair
fn clone(&self) -> DonationPermitDerivedKeyPair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for DonationPermitDerivedKeyPair
impl<'de> Deserialize<'de> for DonationPermitDerivedKeyPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialDefault for DonationPermitDerivedKeyPair
impl PartialDefault for DonationPermitDerivedKeyPair
Source§fn partial_default() -> Self
fn partial_default() -> Self
Returns a value that can be safely dropped or assigned over.
Auto Trait Implementations§
impl Freeze for DonationPermitDerivedKeyPair
impl RefUnwindSafe for DonationPermitDerivedKeyPair
impl Send for DonationPermitDerivedKeyPair
impl Sync for DonationPermitDerivedKeyPair
impl Unpin for DonationPermitDerivedKeyPair
impl UnsafeUnpin for DonationPermitDerivedKeyPair
impl UnwindSafe for DonationPermitDerivedKeyPair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more