MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / top_node

Method top_node

src/avro/src/schema.rs:385–392  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

383
384impl Schema {
385 pub fn top_node(&self) -> SchemaNode<'_> {
386 let (inner, name) = self.top.get_piece_and_name(self);
387 SchemaNode {
388 root: self,
389 inner,
390 name,
391 }
392 }
393 pub fn top_node_or_named(&self) -> SchemaNodeOrNamed<'_> {
394 SchemaNodeOrNamed {
395 root: self,

Callers 15

newMethod · 0.80
schema_to_relationdescFunction · 0.80
decodeMethod · 0.80
test_enum_defaultFunction · 0.80
test_enum_string_valueFunction · 0.80
test_enum_resolutionFunction · 0.80
test_datetime_valueFunction · 0.80
encodeFunction · 0.80
write_avro_datumFunction · 0.80

Calls 1

get_piece_and_nameMethod · 0.80

Tested by 15

test_enum_defaultFunction · 0.64
test_enum_string_valueFunction · 0.64
test_enum_resolutionFunction · 0.64
test_datetime_valueFunction · 0.64
test_to_avro_datumFunction · 0.64
test_writer_appendFunction · 0.64
test_writer_extendFunction · 0.64
test_writer_with_codecFunction · 0.64
test_writer_roundtripFunction · 0.64