pub enum Type {
Boolean,
Int8,
Uint8,
Int16,
Uint16,
Int32,
Uint32,
Float32,
Float64,
String,
Timestamp,
}
Expand description
The values Schema::Type::type_
may take on.
Variants§
Boolean
Either JSON true
or false
.
Int8
A JSON number with zero fractional part within the range of i8
.
Uint8
A JSON number with zero fractional part within the range of u8
.
Int16
A JSON number with zero fractional part within the range of i16
.
Uint16
A JSON number with zero fractional part within the range of u16
.
Int32
A JSON number with zero fractional part within the range of i32
.
Uint32
A JSON number with zero fractional part within the range of u32
.
Float32
A JSON number. Code generators will treat this like a Rust f32
.
Float64
A JSON number. Code generators will treat this like a Rust f64
.
String
A JSON string.
Timestamp
A JSON string encoding a RFC3339 timestamp.
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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