OxL Reference

data Schema

Description of the schema of a codec for oxl export (§9.5): protobuf type text.

Example:

oxl✓ checked in CI
use std.ser { Schema }

fn main() io {
  let s = Schema.of("string")
  print(s.proto)
}
Output
string
pub(api) data Schema

Since. 1.0.0-beta

Fields

pub(api) proto: str = ""

The protobuf type text.

Methods

of(proto: str) -> Schema
A schema with this protobuf type text, for the schema() function of a Codec.

Defined in: std/ser/ser.oxl:110

See also