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)
}Output
sint64
pub(api) static fn of(proto: str) -> SchemaComplexity. O(1).
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
proto | str |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/ser/ser.oxl:131