pub struct ProviderEvidenceRecord {Show 24 fields
pub schema_version: u32,
pub provider_id: String,
pub operation: EvidenceOperation,
pub model_id: String,
pub voice_alias: Option<String>,
pub support_tier: SupportTier,
pub aurum_commit: Option<String>,
pub aurum_version: String,
pub protocol_contract: String,
pub executed_at_unix: u64,
pub workflow_run_id: Option<String>,
pub auth_ok: bool,
pub passed: bool,
pub failure_category: EvidenceFailureCategory,
pub latency_ms: Option<u64>,
pub encoded_bytes: Option<u64>,
pub decoded_bytes: Option<u64>,
pub result_units: Option<u64>,
pub sample_rate_hz: Option<u32>,
pub backend_kind: Option<String>,
pub timestamps_reliable: bool,
pub capability_snapshot_digest: Option<String>,
pub expires_at_unix: Option<u64>,
pub notes: Option<String>,
}Expand description
Machine-readable provider evidence record (redacted).
Fields§
§schema_version: u32§provider_id: String§operation: EvidenceOperation§model_id: String§voice_alias: Option<String>Reviewed voice alias (never private ElevenLabs IDs in public evidence).
support_tier: SupportTier§aurum_commit: Option<String>Full git commit when available.
aurum_version: String§protocol_contract: StringProtocol/endpoint contract label (e.g. openai_stt_v1).
executed_at_unix: u64UTC unix seconds when the protected smoke executed.
workflow_run_id: Option<String>§auth_ok: bool§passed: bool§failure_category: EvidenceFailureCategory§latency_ms: Option<u64>§encoded_bytes: Option<u64>§decoded_bytes: Option<u64>§result_units: Option<u64>Non-empty result without payload (text chars or audio samples count only).
sample_rate_hz: Option<u32>§backend_kind: Option<String>§timestamps_reliable: bool§capability_snapshot_digest: Option<String>§expires_at_unix: Option<u64>Explicit expiry (unix). If absent, freshness uses max age from execution.
notes: Option<String>Implementations§
Source§impl ProviderEvidenceRecord
impl ProviderEvidenceRecord
pub fn validate_schema(&self) -> Result<()>
pub fn route_key(&self) -> String
Sourcepub fn is_fresh(&self, now_unix: u64) -> bool
pub fn is_fresh(&self, now_unix: u64) -> bool
Freshness relative to now_unix (typically wall clock).
Sourcepub fn qualifies_as_supported(&self, now_unix: u64) -> bool
pub fn qualifies_as_supported(&self, now_unix: u64) -> bool
A route may claim supported only with a fresh passing record.
pub fn load(path: &Path) -> Result<Self>
pub fn to_json_pretty(&self) -> Result<String>
Trait Implementations§
Source§impl Clone for ProviderEvidenceRecord
impl Clone for ProviderEvidenceRecord
Source§fn clone(&self) -> ProviderEvidenceRecord
fn clone(&self) -> ProviderEvidenceRecord
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 ProviderEvidenceRecord
impl Debug for ProviderEvidenceRecord
Source§impl<'de> Deserialize<'de> for ProviderEvidenceRecord
impl<'de> Deserialize<'de> for ProviderEvidenceRecord
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 ProviderEvidenceRecord
impl PartialEq for ProviderEvidenceRecord
Source§impl Serialize for ProviderEvidenceRecord
impl Serialize for ProviderEvidenceRecord
impl StructuralPartialEq for ProviderEvidenceRecord
Auto Trait Implementations§
impl Freeze for ProviderEvidenceRecord
impl RefUnwindSafe for ProviderEvidenceRecord
impl Send for ProviderEvidenceRecord
impl Sync for ProviderEvidenceRecord
impl Unpin for ProviderEvidenceRecord
impl UnsafeUnpin for ProviderEvidenceRecord
impl UnwindSafe for ProviderEvidenceRecord
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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