pub struct Verified {
pub id: String,
pub cert: Certificate,
pub expires_at: DateTime<Utc>,
}Expand description
A certificate whose signature verified against a trusted key.
Fields§
§id: Stringsha256:<hex> of the signed certificate’s JCS bytes.
cert: Certificate§expires_at: DateTime<Utc>Implementations§
Source§impl Verified
impl Verified
Sourcepub fn threshold_for(&self, segment: Option<&str>) -> f64
pub fn threshold_for(&self, segment: Option<&str>) -> f64
The threshold for a case in segment: a certified segment’s own, else the top-level one.
pub fn is_expired(&self, now: DateTime<Utc>) -> bool
Sourcepub fn temperature(&self) -> Option<f64>
pub fn temperature(&self) -> Option<f64>
The temperature of a kind: temperature calibration map; None for other kinds.
Trait Implementations§
impl StructuralPartialEq for Verified
Auto Trait Implementations§
impl Forget for Verified
impl Freeze for Verified
impl RefUnwindSafe for Verified
impl Send for Verified
impl Sync for Verified
impl Unpin for Verified
impl UnsafeUnpin for Verified
impl UnwindSafe for Verified
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