Skip to main content

obs_core/envelope/
mod.rs

1//! Envelope construction and projection helpers.
2//!
3//! Spec 10 § 6 defines the wire envelope (`obs.v1.ObsEnvelope`); this
4//! module provides the typed `EventSchema` trait that codegen targets,
5//! the `Envelope` newtype around the wire envelope (so tests can
6//! manipulate it without going through buffa), and the
7//! `build_envelope` / project helpers used by the emit hot path
8//! (spec 11 § 5).
9
10mod builder;
11mod projection;
12
13pub use builder::{Envelope, build_envelope, build_envelope_at};
14pub use projection::{EventSchema, FieldMeta, FieldRole};