pub struct ComplianceScore {
pub agent_id: String,
pub score: u32,
pub factor_breakdown: ComplianceFactorBreakdown,
pub generated_at: u64,
pub inputs: ComplianceScoreInputs,
}Expand description
Final compliance score for an agent over a window.
Fields§
§agent_id: StringAgent subject the score applies to.
score: u320..=1000 score (1000 = perfect).
factor_breakdown: ComplianceFactorBreakdownFactor-by-factor breakdown.
generated_at: u64Unix timestamp (seconds) at which the score was computed.
inputs: ComplianceScoreInputsSnapshot of the inputs used to compute the score.
Implementations§
Source§impl ComplianceScore
impl ComplianceScore
pub fn as_underwriting_evidence(&self) -> UnderwritingComplianceEvidence
Trait Implementations§
Source§impl Clone for ComplianceScore
impl Clone for ComplianceScore
Source§fn clone(&self) -> ComplianceScore
fn clone(&self) -> ComplianceScore
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 ComplianceScore
impl Debug for ComplianceScore
Source§impl<'de> Deserialize<'de> for ComplianceScore
impl<'de> Deserialize<'de> for ComplianceScore
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 ComplianceScore
impl PartialEq for ComplianceScore
Source§impl Serialize for ComplianceScore
impl Serialize for ComplianceScore
impl StructuralPartialEq for ComplianceScore
Auto Trait Implementations§
impl Freeze for ComplianceScore
impl RefUnwindSafe for ComplianceScore
impl Send for ComplianceScore
impl Sync for ComplianceScore
impl Unpin for ComplianceScore
impl UnsafeUnpin for ComplianceScore
impl UnwindSafe for ComplianceScore
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