rschema_core/schema/type/
tuple_keys.rs

1use serde::Serialize;
2
3use super::Type;
4
5/// Keywords for a tuple type (a kind of array type) property.
6/// 
7/// Tuple type is a kind of array type, which has ordered items.
8/// Tuples and tuple structs are correspond to `TupleKeys`, additional properties are not allowed.
9/// 
10#[derive(Debug, Serialize)]
11pub struct TupleKeys {
12    #[serde(skip_serializing_if = "Vec::is_empty")]
13    pub items: Vec<Type>,
14}