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

Method parse_simple

src/avro/src/schema.rs:702–706  ·  view source on GitHub ↗

Parses a name from a simple string.

(name: &str)

Source from the content-addressed store, hash-verified

700
701 /// Parses a name from a simple string.
702 pub fn parse_simple(name: &str) -> Result<Self, AvroError> {
703 let mut map = serde_json::map::Map::new();
704 map.insert("name".into(), serde_json::Value::String(name.into()));
705 Self::parse(&map)
706 }
707
708 /// Return the `fullname` of this `Name`
709 ///

Callers

nothing calls this directly

Calls 3

StringClass · 0.85
parseFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected