pub struct RemoteEvidence {Show 14 fields
pub attempt_id: String,
pub step: String,
pub instance: Vec<String>,
pub exchange: ExchangeReference,
pub requested_identity: Option<String>,
pub served: ServedIdentity,
pub binding: ArtifactId,
pub protocol: String,
pub endpoint_class: String,
pub code: Option<RemoteCode>,
pub remote_state: RemoteState,
pub charge_provenance: ChargeProvenance,
pub batch: Option<BatchMembership>,
pub principal_digest: Option<String>,
}Expand description
One remote attempt’s evidence reference in rustev.run/2 (spec 020,
3.2, I-4). It names the exchange record, never embeds it: no request or
response body, credential, secret address, unredacted principal
reference, provider reasoning or header.
Fields§
§attempt_id: String§step: StringThe decision step and logical request (instance) the attempt served.
instance: Vec<String>§exchange: ExchangeReference§requested_identity: Option<String>What the adapter asked for; None when it names no model.
served: ServedIdentity§binding: ArtifactIdThe adapter binding (its artifact), the protocol or foreign mapping version, and the endpoint class (never a secret URL).
protocol: String§endpoint_class: String§code: Option<RemoteCode>The remote error code of a failed attempt.
remote_state: RemoteStateThe attempt’s final remote state, as the run record has it.
charge_provenance: ChargeProvenance§batch: Option<BatchMembership>Present when the attempt was a member of a batched exchange.
principal_digest: Option<String>The principal reference’s evidence digest, only when one was sent.
Implementations§
Source§impl RemoteEvidence
impl RemoteEvidence
Sourcepub fn is_bounded(&self) -> bool
pub fn is_bounded(&self) -> bool
Every string within MAX_TEXT_BYTES, the instance within
MAX_REMOTE_EVIDENCE_INSTANCE ids, and the canonical bytes within
MAX_REMOTE_EVIDENCE_ENTRY_BYTES.
Sourcepub fn bounded(self) -> Self
pub fn bounded(self) -> Self
The entry cut to its bounds: strings to MAX_TEXT_BYTES, and when
the canonical bytes are still beyond the entry bound (strings that
escape to several bytes each), to 32 bytes. Deterministic.
Trait Implementations§
Source§impl Clone for RemoteEvidence
impl Clone for RemoteEvidence
Source§impl Debug for RemoteEvidence
impl Debug for RemoteEvidence
Source§impl<'de> Deserialize<'de> for RemoteEvidence
impl<'de> Deserialize<'de> for RemoteEvidence
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>,
impl Eq for RemoteEvidence
Source§impl JsonSchema for RemoteEvidence
impl JsonSchema for RemoteEvidence
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more