MCPcopy Create free account
hub / github.com/apache/avro-rs / parse_str

Method parse_str

avro/src/schema/parser.rs:62–65  ·  view source on GitHub ↗

Create a `Schema` from a string representing a JSON Avro schema.

(&mut self, input: &str)

Source from the content-addressed store, hash-verified

60
61 /// Create a `Schema` from a string representing a JSON Avro schema.
62 pub(super) fn parse_str(&mut self, input: &str) -> AvroResult<Schema> {
63 let value = serde_json::from_str(input).map_err(Details::ParseSchemaJson)?;
64 self.parse(value, None)
65 }
66
67 /// Create an array of `Schema`s from an iterator of JSON Avro schemas.
68 ///

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected