pub struct EnvelopeKey {
pub kid: [u8; 8],
pub private: [u8; 32],
pub public: [u8; 32],
pub active: bool,
pub not_after: Option<u64>,
}Fields§
§kid: [u8; 8]§private: [u8; 32]§public: [u8; 32]§active: bool§not_after: Option<u64>Implementations§
Source§impl EnvelopeKey
impl EnvelopeKey
pub fn from_config(cfg: &EnvelopeKeyConfig) -> RegistryResult<Self>
pub fn is_expired(&self, now_ms: u64) -> bool
Trait Implementations§
Source§impl Clone for EnvelopeKey
impl Clone for EnvelopeKey
Source§fn clone(&self) -> EnvelopeKey
fn clone(&self) -> EnvelopeKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvelopeKey
impl Debug for EnvelopeKey
Source§impl PartialEq for EnvelopeKey
impl PartialEq for EnvelopeKey
impl Eq for EnvelopeKey
impl StructuralPartialEq for EnvelopeKey
Auto Trait Implementations§
impl Freeze for EnvelopeKey
impl RefUnwindSafe for EnvelopeKey
impl Send for EnvelopeKey
impl Sync for EnvelopeKey
impl Unpin for EnvelopeKey
impl UnwindSafe for EnvelopeKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.