(
#[builder(start_fn)] items: Schema,
attributes: Option<BTreeMap<String, JsonValue>>,
)
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected