method Schema.of
A schema with this protobuf type text, for the schema() function of a Codec.
Example:
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
Параметры
| Имя | Тип |
|---|---|
proto | str |
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/ser/ser.oxl:131