Skip to main content

Decode

Derive Macro Decode 

Source
#[derive(Decode)]
Expand description

Derive the Decode trait for a struct with named fields.

Generates a conduit_core::Decode implementation that decodes each field in declaration order by delegating to the field type’s own Decode impl, tracking the cumulative byte offset.

§Example

use conduit_derive::Decode;

#[derive(Decode)]
struct MarketTick {
    timestamp: i64,
    price: f64,
    volume: f64,
    side: u8,
}