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

Method from

avro/examples/test_interop_single_object_encoding.rs:37–51  ·  view source on GitHub ↗
(_: InteropMessage)

Source from the content-addressed store, hash-verified

35
36impl From<InteropMessage> for Value {
37 fn from(_: InteropMessage) -> Value {
38 Value::Record(vec![
39 ("id".into(), 42i64.into()),
40 ("name".into(), "Bill".into()),
41 (
42 "tags".into(),
43 Value::Array(
44 vec!["dog_lover", "cat_hater"]
45 .into_iter()
46 .map(|s| s.into())
47 .collect(),
48 ),
49 ),
50 ])
51 }
52}
53
54fn main() -> Result<(), Box<dyn Error>> {

Callers

nothing calls this directly

Calls 1

RecordClass · 0.85

Tested by

no test coverage detected