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

method Schema.of

A schema with this protobuf type text, for the schema() function of a Codec.

Example:

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

fn main() io {
  print(Schema.of("sint64").proto)
}
Вывод
sint64
pub(api) static fn of(proto: str) -> Schema

Сложность. O(1).

С версии. 1.0.0-beta

Параметры

ИмяТип
protostr

Возвращает

Schema

Эффекты

не объявлены (чистая, пока тело не говорит иное)

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

См. также