Skip to main content

ContractModel

Trait ContractModel 

Source
pub trait ContractModel: Serialize + DeserializeOwned {
    const SCHEMA: &'static str;
}
Expand description

A type that models one named schema of the vendored contract.

The association is what makes the coverage gate possible: without a declared schema name, “is every response schema modelled?” would be a question only a human could answer, and the answer would rot. It is also the documentation a reader wants — which published shape is this type.

Required Associated Constants§

Source

const SCHEMA: &'static str

The schema’s own name in contracts/tapes-api.yaml.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ContractModel for CreateSkillRequest

Source§

const SCHEMA: &'static str = "createSkillRequest"

Source§

impl ContractModel for DeriveRunResponse

Source§

const SCHEMA: &'static str = "deriveRunResponse"

Source§

impl ContractModel for ErrorResponse

Source§

const SCHEMA: &'static str = "ErrorResponse"

Source§

impl ContractModel for GenerateSkillRequest

Source§

const SCHEMA: &'static str = "generateSkillRequest"

Source§

impl ContractModel for MainUsage

Source§

const SCHEMA: &'static str = "MainUsage"

Source§

impl ContractModel for McpError

Source§

const SCHEMA: &'static str = "MCPError"

Source§

impl ContractModel for McpRequest

Source§

const SCHEMA: &'static str = "MCPRequest"

Source§

impl ContractModel for McpResponse

Source§

const SCHEMA: &'static str = "MCPResponse"

Source§

impl ContractModel for ModelUsage

Source§

const SCHEMA: &'static str = "ModelUsage"

Source§

impl ContractModel for PublishSkillRequest

Source§

const SCHEMA: &'static str = "publishSkillRequest"

Source§

impl ContractModel for RawTurnAttribution

Source§

const SCHEMA: &'static str = "RawTurnAttribution"

Source§

impl ContractModel for RawTurnAttributionRepairRequest

Source§

const SCHEMA: &'static str = "RawTurnAttributionRepairRequest"

Source§

impl ContractModel for RawTurnAttributionRepairResult

Source§

const SCHEMA: &'static str = "RawTurnAttributionRepairResult"

Source§

impl ContractModel for RawTurnHeaderItem

Source§

const SCHEMA: &'static str = "RawTurnHeaderItem"

Source§

impl ContractModel for RawTurnListResponse

Source§

const SCHEMA: &'static str = "RawTurnListResponse"

Source§

impl ContractModel for ReconcileStats

Source§

const SCHEMA: &'static str = "ReconcileStats"

Source§

impl ContractModel for RederiveReport

Source§

const SCHEMA: &'static str = "RederiveReport"

Source§

impl ContractModel for RepairPendingSession

Source§

const SCHEMA: &'static str = "RepairPendingSession"

Source§

impl ContractModel for SeedDemoRequest

Source§

const SCHEMA: &'static str = "seedDemoRequest"

Source§

impl ContractModel for SeedResult

Source§

const SCHEMA: &'static str = "SeedResult"

Source§

impl ContractModel for SessionDetailResponse

Source§

const SCHEMA: &'static str = "SessionDetailResponse"

Source§

impl ContractModel for SessionItem

Source§

const SCHEMA: &'static str = "SessionItem"

Source§

impl ContractModel for SessionListResponse

Source§

const SCHEMA: &'static str = "SessionListResponse"

Source§

impl ContractModel for SessionRollup

Source§

const SCHEMA: &'static str = "SessionRollup"

Source§

impl ContractModel for SessionSkillsResponse

Source§

const SCHEMA: &'static str = "sessionSkillsResponse"

Source§

impl ContractModel for SessionTracesResponse

Source§

const SCHEMA: &'static str = "SessionTracesResponse"

Source§

impl ContractModel for SessionUpdateRequest

Source§

const SCHEMA: &'static str = "sessionUpdateRequest"

Source§

impl ContractModel for SessionUsage

Source§

const SCHEMA: &'static str = "SessionUsage"

Source§

impl ContractModel for SkillCounts

Source§

const SCHEMA: &'static str = "skillCountsResp"

Source§

impl ContractModel for SkillResponse

Source§

const SCHEMA: &'static str = "skillResponse"

Source§

impl ContractModel for SkillVersionResponse

Source§

const SCHEMA: &'static str = "skillVersionResponse"

Source§

impl ContractModel for SkillVersionsResponse

Source§

const SCHEMA: &'static str = "skillVersionsResponse"

Source§

impl ContractModel for SkillsListResponse

Source§

const SCHEMA: &'static str = "skillsListResponse"

Source§

impl ContractModel for SpanItem

Source§

const SCHEMA: &'static str = "SpanItem"

Source§

impl ContractModel for SpanLinkItem

Source§

const SCHEMA: &'static str = "SpanLinkItem"

Source§

impl ContractModel for SpanSearchOutput

Source§

const SCHEMA: &'static str = "SpanSearchOutput"

Source§

impl ContractModel for SpanSearchResult

Source§

const SCHEMA: &'static str = "SpanSearchResult"

Source§

impl ContractModel for StatsResponse

Source§

const SCHEMA: &'static str = "StatsResponse"

Source§

impl ContractModel for TraceDetail

Source§

const SCHEMA: &'static str = "TraceDetail"

Source§

impl ContractModel for TraceItem

Source§

const SCHEMA: &'static str = "TraceItem"

Source§

impl ContractModel for TraceListResponse

Source§

const SCHEMA: &'static str = "TraceListResponse"

Source§

impl ContractModel for TraceUsage

Source§

const SCHEMA: &'static str = "TraceUsage"

Source§

impl ContractModel for TreeTask

Source§

const SCHEMA: &'static str = "TreeTask"

Source§

impl ContractModel for UpdateSkillRequest

Source§

const SCHEMA: &'static str = "updateSkillRequest"