pub enum FieldType {
Boolean,
Integer {
minimum: i64,
maximum: i64,
},
Number {
minimum: f64,
maximum: f64,
},
String {
maximum_length: usize,
values: BTreeSet<String>,
},
Reference {
target: String,
},
Json,
List {
items: Box<FieldType>,
minimum_items: usize,
maximum_items: usize,
},
Object {
fields: Schema,
},
}Variants§
Boolean
Integer
Number
String
A string of at most maximum_length characters, one of values
when that is not empty.
Reference
The identifier of a definition of type target.
Json
Any JSON value.
List
An array of minimum_items to maximum_items values, each of type
items.
Object
An object closed by fields.
Trait Implementations§
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more