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

Method array

avro/src/schema/builders.rs:44–53  ·  view source on GitHub ↗
(
        #[builder(start_fn)] items: Schema,
        attributes: Option<BTreeMap<String, JsonValue>>,
    )

Source from the content-addressed store, hash-verified

42 /// Returns a `Schema::Array` with the given items and custom attributes.
43 #[builder(finish_fn = build)]
44 pub fn array(
45 #[builder(start_fn)] items: Schema,
46 attributes: Option<BTreeMap<String, JsonValue>>,
47 ) -> Self {
48 let attributes = attributes.unwrap_or_default();
49 Schema::Array(ArraySchema {
50 items: Box::new(items),
51 attributes,
52 })
53 }
54
55 /// Returns a `Schema::Enum` with the given name, symbols and optional
56 /// aliases, doc, default and custom attributes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected