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

Function nested_record

avro/src/schema_compatibility.rs:536–538  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534 }
535
536 fn nested_record() -> Schema {
537 Schema::parse_str(r#"{"type":"record","name":"parent","fields":[{"name":"attribute","type":{"type":"record","name":"child","fields":[{"name":"id","type":"string"}]}}]}"#).unwrap()
538 }
539
540 fn nested_optional_record() -> Schema {
541 Schema::parse_str(r#"{"type":"record","name":"parent","fields":[{"name":"attribute","type":["null",{"type":"record","name":"child","fields":[{"name":"id","type":"string"}]}],"default":null}]}"#).unwrap()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected