OxL Справочник OxL
РусскийEnglish

data Schema

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

Example:

oxl✓ проверяется в CI
use std.ser { Schema }

fn main() io {
  let s = Schema.of("string")
  print(s.proto)
}
Вывод
string
pub(api) data Schema

С версии. 1.0.0-beta

Поля

pub(api) proto: str = ""

The protobuf type text.

Методы

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

Определено в: std/ser/ser.oxl:110

См. также