pub struct ProofCertificate {
pub framework: ComplianceFramework,
pub verified_at: DateTime<Utc>,
pub toolchain_version: String,
pub total_requirements: usize,
pub verified_count: usize,
pub spec_hash: String,
}Expand description
Proof certificate embedding verification metadata
Fields§
§framework: ComplianceFrameworkFramework this certificate is for
verified_at: DateTime<Utc>Timestamp of verification
toolchain_version: StringTLA+ toolchain version used
total_requirements: usizeTotal requirements covered
verified_count: usizeRequirements verified with mechanized proofs
spec_hash: StringCryptographic hash of the specification
Implementations§
Source§impl ProofCertificate
impl ProofCertificate
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if all requirements are verified
Sourcepub fn verification_percentage(&self) -> f64
pub fn verification_percentage(&self) -> f64
Get verification percentage
Trait Implementations§
Source§impl Clone for ProofCertificate
impl Clone for ProofCertificate
Source§fn clone(&self) -> ProofCertificate
fn clone(&self) -> ProofCertificate
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 Debug for ProofCertificate
impl Debug for ProofCertificate
Source§impl<'de> Deserialize<'de> for ProofCertificate
impl<'de> Deserialize<'de> for ProofCertificate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProofCertificate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProofCertificate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ProofCertificate
impl Serialize for ProofCertificate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ProofCertificate
impl RefUnwindSafe for ProofCertificate
impl Send for ProofCertificate
impl Sync for ProofCertificate
impl Unpin for ProofCertificate
impl UnsafeUnpin for ProofCertificate
impl UnwindSafe for ProofCertificate
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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