pub trait PayloadSchemas {
// Provided method
fn get_payload_schemas() -> Vec<(&'static str, String)> { ... }
}generated logreaders now derive schemas from output metadata; use SerializedPayloadSchema for custom serialized payload shapes or export_to_mcap_with_schemas for explicit per-slot schemas
Expand description
Trait for providing JSON schemas for CopperList payload types.
This legacy hook remains available to callers that manage explicit schema
lists. Generated logreaders use MatchingTasks::get_output_specs so MCAP
export does not require an application-maintained implementation.
The default implementation returns an empty vector for backwards compatibility with code that doesn’t need MCAP export support.
Provided Methods§
Sourcefn get_payload_schemas() -> Vec<(&'static str, String)>
👎Deprecated since 1.2.0: generated logreaders now derive schemas from output metadata; use SerializedPayloadSchema for custom serialized payload shapes or export_to_mcap_with_schemas for explicit per-slot schemas
fn get_payload_schemas() -> Vec<(&'static str, String)>
generated logreaders now derive schemas from output metadata; use SerializedPayloadSchema for custom serialized payload shapes or export_to_mcap_with_schemas for explicit per-slot schemas
Returns a vector of (task_id, schema_json) pairs.
Each entry corresponds to a CopperList output slot, in slot order. The schema is a JSON Schema string generated from the payload type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".