data Schema
Description of the schema of a codec for oxl export (§9.5): protobuf type text.
Example:
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) -> SchemaA schema with this protobuf type text, for the schema() function of a Codec. |
Определено в: std/ser/ser.oxl:110