pub struct DynamicOutcome {Show 20 fields
pub schema: String,
pub request_id: String,
pub request: Option<DynamicRequestId>,
pub scope: Scope,
pub task_family: TaskFamily,
pub operation: DynamicOperation,
pub output: DynamicOutputKind,
pub backend_id: String,
pub requested_artifact: ArtifactId,
pub served: ServedIdentity,
pub capability: Option<DynamicCapabilityId>,
pub template: Option<TemplateRef>,
pub privacy: Vec<String>,
pub attempt: Option<DynamicAttempt>,
pub timing: DynamicTiming,
pub cost: CostSummary,
pub raw: DynamicRaw,
pub validation: DynamicValidation,
pub abstention: AbstentionDecision,
pub result: DynamicResult,
}Expand description
A dynamic outcome, rustev.dynamic-outcome/1 (3.6): evidence of what
Rustev observed for one request, bounded by RECORD_V1. It is not proof
that the context was true, the backend was correct, privacy options were
honored, or an action was permitted.
Fields§
§schema: String§request_id: String§request: Option<DynamicRequestId>The canonical request identity; absent only when no capability was declared to bind its template and preprocessing.
scope: Scope§task_family: TaskFamily§operation: DynamicOperation§output: DynamicOutputKind§backend_id: String§requested_artifact: ArtifactIdThe artifact the request required; never replaced by a served one.
served: ServedIdentityThe served identity as the backend reported it, or unknown.
capability: Option<DynamicCapabilityId>Absent when the backend declares no dynamic capability.
template: Option<TemplateRef>§privacy: Vec<String>The privacy options requested; recorded, never proof of handling.
attempt: Option<DynamicAttempt>The one attempt; absent when nothing was dispatched.
timing: DynamicTiming§cost: CostSummaryThe request’s own ledger: mode hard, limit the cap.
raw: DynamicRaw§validation: DynamicValidation§abstention: AbstentionDecision§result: DynamicResultTrait Implementations§
Source§impl Clone for DynamicOutcome
impl Clone for DynamicOutcome
Source§impl Debug for DynamicOutcome
impl Debug for DynamicOutcome
Source§impl<'de> Deserialize<'de> for DynamicOutcome
impl<'de> Deserialize<'de> for DynamicOutcome
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 Document for DynamicOutcome
impl Document for DynamicOutcome
Source§const SCHEMA: &'static str = schema::DYNAMIC_OUTCOME
const SCHEMA: &'static str = schema::DYNAMIC_OUTCOME
The schema string this document carries (spec 002, 3.2.1).
Source§const LIMITS: ParseLimits = RECORD_V1
const LIMITS: ParseLimits = RECORD_V1
The limit set its bytes are scanned against (spec 002, 3.2.5).
Source§fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
fn parse(bytes: &[u8]) -> Result<Self, DocumentError>
Scan, deserialize and check the schema string.
Source§fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
fn record_canonical(&self) -> Result<Vec<u8>, CanonicalError>where
Self: PartialEq,
The record canonical bytes (spec 004, 5.6): the canonical bytes, with
finite fractional numbers written in shortest round-trip form.
Source§fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
fn record_digest(&self) -> Result<ContentDigest, CanonicalError>where
Self: PartialEq,
sha256(SCHEMA || 0x00 || record canonical bytes) (spec 004, 3.1.6).
Equal to the identity of an identified document.Source§impl JsonSchema for DynamicOutcome
impl JsonSchema for DynamicOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DynamicOutcome
impl PartialEq for DynamicOutcome
Source§impl Serialize for DynamicOutcome
impl Serialize for DynamicOutcome
impl StructuralPartialEq for DynamicOutcome
Auto Trait Implementations§
impl Freeze for DynamicOutcome
impl RefUnwindSafe for DynamicOutcome
impl Send for DynamicOutcome
impl Sync for DynamicOutcome
impl Unpin for DynamicOutcome
impl UnsafeUnpin for DynamicOutcome
impl UnwindSafe for DynamicOutcome
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