pub struct ComplianceReport {Show 14 fields
pub matching_receipts: u64,
pub evidence_ready_receipts: u64,
pub uncheckpointed_receipts: u64,
pub checkpoint_coverage_rate: Option<f64>,
pub lineage_covered_receipts: u64,
pub lineage_gap_receipts: u64,
pub lineage_coverage_rate: Option<f64>,
pub pending_settlement_receipts: u64,
pub failed_settlement_receipts: u64,
pub direct_evidence_export_supported: bool,
pub child_receipt_scope: EvidenceChildReceiptScope,
pub proofs_complete: bool,
pub export_query: EvidenceExportQuery,
pub export_scope_note: Option<String>,
}Fields§
§matching_receipts: u64§evidence_ready_receipts: u64§uncheckpointed_receipts: u64§checkpoint_coverage_rate: Option<f64>§lineage_covered_receipts: u64§lineage_gap_receipts: u64§lineage_coverage_rate: Option<f64>§pending_settlement_receipts: u64§failed_settlement_receipts: u64§direct_evidence_export_supported: bool§child_receipt_scope: EvidenceChildReceiptScope§proofs_complete: bool§export_query: EvidenceExportQuery§export_scope_note: Option<String>Implementations§
Source§impl ComplianceReport
impl ComplianceReport
Sourcepub fn compliance_score(
&self,
inputs: &ComplianceScoreInputs,
config: &ComplianceScoreConfig,
agent_id: &str,
now: u64,
) -> ComplianceScore
pub fn compliance_score( &self, inputs: &ComplianceScoreInputs, config: &ComplianceScoreConfig, agent_id: &str, now: u64, ) -> ComplianceScore
Compute a weighted compliance score on top of this report.
Thin convenience wrapper over
crate::compliance_score::compliance_score. See that module for
the scoring model and weights.
Trait Implementations§
Source§impl Clone for ComplianceReport
impl Clone for ComplianceReport
Source§fn clone(&self) -> ComplianceReport
fn clone(&self) -> ComplianceReport
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 ComplianceReport
impl Debug for ComplianceReport
Source§impl<'de> Deserialize<'de> for ComplianceReport
impl<'de> Deserialize<'de> for ComplianceReport
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 PartialEq for ComplianceReport
impl PartialEq for ComplianceReport
Source§impl Serialize for ComplianceReport
impl Serialize for ComplianceReport
impl StructuralPartialEq for ComplianceReport
Auto Trait Implementations§
impl Freeze for ComplianceReport
impl RefUnwindSafe for ComplianceReport
impl Send for ComplianceReport
impl Sync for ComplianceReport
impl Unpin for ComplianceReport
impl UnsafeUnpin for ComplianceReport
impl UnwindSafe for ComplianceReport
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