pub struct ReputationSection {
pub total_interactions: Option<u64>,
pub endorsement_count: Option<u32>,
pub trust_score: Option<String>,
pub uptime_30d: Option<String>,
pub uptime_90d: Option<String>,
pub first_active: Option<String>,
pub endorser_dids: Vec<String>,
}Expand description
Reputation summary section of an OAS Identity Document.
§Trust Model
- L0/L1: Self-reported — treat as claims, not facts.
- L2: Backed by third-party attestation service, verifiable
via
OASAttestationServiceendpoint.
§Examples
use oas_document::reputation::ReputationSection;
let rep = ReputationSection {
total_interactions: Some(15_420),
endorsement_count: Some(87),
trust_score: Some("0.94".to_string()),
uptime_30d: Some("99.7%".to_string()),
uptime_90d: Some("99.5%".to_string()),
first_active: Some("2026-01-15T00:00:00Z".to_string()),
endorser_dids: vec![
"did:oas:prod:hmr:alice".to_string(),
"did:oas:prod:enr:acme".to_string(),
],
};
assert_eq!(rep.endorsement_count, Some(87));Fields§
§total_interactions: Option<u64>Total number of interactions/requests served.
endorsement_count: Option<u32>Number of endorsements received from other DIDs.
trust_score: Option<String>Aggregated trust score as a decimal string (0.0–1.0).
uptime_30d: Option<String>Uptime percentage over the last 30 days.
uptime_90d: Option<String>Uptime percentage over the last 90 days.
first_active: Option<String>ISO 8601 timestamp of when this entity first became active.
endorser_dids: Vec<String>DIDs of entities that have endorsed this entity.
Trait Implementations§
Source§impl Clone for ReputationSection
impl Clone for ReputationSection
Source§impl Debug for ReputationSection
impl Debug for ReputationSection
Source§impl<'de> Deserialize<'de> for ReputationSection
impl<'de> Deserialize<'de> for ReputationSection
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
impl Eq for ReputationSection
Source§impl PartialEq for ReputationSection
impl PartialEq for ReputationSection
Source§impl Serialize for ReputationSection
impl Serialize for ReputationSection
impl StructuralPartialEq for ReputationSection
Auto Trait Implementations§
impl Freeze for ReputationSection
impl RefUnwindSafe for ReputationSection
impl Send for ReputationSection
impl Sync for ReputationSection
impl Unpin for ReputationSection
impl UnsafeUnpin for ReputationSection
impl UnwindSafe for ReputationSection
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