Skip to main content

Crate obs_proto

Crate obs_proto 

Source
Expand description

Canonical obs/v1 protobuf schemas.

This crate ships the wire-format types every other crate consumes:

  • obs::v1::ObsEnvelope, ObsBatch — the envelope & batch shape (spec 10).
  • obs::v1::* enums — vocabulary mirrors of the [obs_types] enums.
  • obs::v1::* events — user-facing built-ins (spec 61 § 2.2).
  • obs::runtime::v1::* events — SDK self-events (spec 11 § 10).
  • BUILTIN_FDS — the FileDescriptorSet bytes for everything in this crate, embedded at compile time.

The generated buffa code lives under $OUT_DIR (idiomatic Cargo) and is wired in via include!(concat!(env!("OUT_DIR"), "/mod.rs")) below.

Modules§

__private
Re-export buffa traits user code rarely touches but generated code needs in scope.
obs

Structs§

UnknownVariant
Error type returned by the FromStr impls on every enum in this crate. Mirrors the shape obs-types used to provide; re-exported here so consumers have a single import path. Error returned by FromStr parsers when an enum variant isn’t recognised. Uniform shape across every enum in this module so callers can match on one type.

Constants§

ENVELOPE_FORMAT_VER
Wire-format version of the ObsEnvelope / ObsBatch shape.

Statics§

BUILTIN_FDS
Bytes of the FileDescriptorSet covering every .proto file in this crate, captured at build time.