Skip to main content

Crate assay_adapter_api

Crate assay_adapter_api 

Source
Expand description

Stable contracts for protocol adapters that translate external protocol payloads into canonical Assay evidence events.

Structs§

AdapterBatch
Batch conversion result emitted by an adapter.
AdapterCapabilities
Capabilities exposed by the adapter for review and routing.
AdapterDescriptor
Stable adapter implementation metadata exposed by each adapter.
AdapterError
Stable adapter error surface.
AdapterInput
Raw protocol input supplied to an adapter.
ConvertOptions
Conversion options shared by all adapters.
LossinessReport
Explicit accounting for translation loss.
ProtocolDescriptor
Stable protocol metadata exposed by each adapter.
RawPayloadRef
Digest-backed reference to a preserved raw payload.

Enums§

AdapterErrorKind
Error category for adapter failures.
ConvertMode
Conversion strictness for protocol translation.
LossinessLevel
Lossiness classification for a conversion result.

Traits§

AttachmentWriter
Host-provided interface for preserving raw protocol payloads.
ProtocolAdapter
Stable contract implemented by protocol-specific adapters.

Functions§

canonical_bytes
Serialize any serde value into canonical JSON bytes.
canonical_json_bytes
Serialize a JSON value into deterministic canonical bytes.
digest_canonical_json
Compute a SHA-256 digest over canonical JSON bytes.
validate_json_shape
Enforce shared JSON shape limits for adapter inputs.

Type Aliases§

AdapterResult
Result type for adapter operations.