pub enum ModelFieldKindNativeSpec {
None {},
Boolean {
default: Option<bool>,
},
Integer {
default: Option<Integer>,
minimum: Option<Integer>,
maximum: Option<Integer>,
},
Number {
default: Option<Number>,
minimum: Option<Number>,
maximum: Option<Number>,
},
String {
default: Option<String>,
kind: ModelFieldKindStringSpec,
},
OneOfStrings {
default: Option<String>,
choices: Vec<String>,
},
DateTime {
default: Option<ModelFieldDateTimeDefaultType>,
},
Ip {},
Uuid {},
StringArray {},
Object {
children: Vec<String>,
kind: ModelFieldKindObjectSpec,
},
ObjectArray {
children: Vec<String>,
},
}
Variants§
None
Boolean
Integer
Number
String
OneOfStrings
DateTime
Fields
§
default: Option<ModelFieldDateTimeDefaultType>
Ip
Uuid
StringArray
Object
ObjectArray
Implementations§
Trait Implementations§
Source§impl Clone for ModelFieldKindNativeSpec
impl Clone for ModelFieldKindNativeSpec
Source§fn clone(&self) -> ModelFieldKindNativeSpec
fn clone(&self) -> ModelFieldKindNativeSpec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModelFieldKindNativeSpec
impl Debug for ModelFieldKindNativeSpec
Source§impl Default for ModelFieldKindNativeSpec
impl Default for ModelFieldKindNativeSpec
Source§impl<'de> Deserialize<'de> for ModelFieldKindNativeSpec
impl<'de> Deserialize<'de> for ModelFieldKindNativeSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ModelFieldKindNativeSpec
impl Hash for ModelFieldKindNativeSpec
Source§impl JsonSchema for ModelFieldKindNativeSpec
impl JsonSchema for ModelFieldKindNativeSpec
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Ord for ModelFieldKindNativeSpec
impl Ord for ModelFieldKindNativeSpec
Source§fn cmp(&self, other: &ModelFieldKindNativeSpec) -> Ordering
fn cmp(&self, other: &ModelFieldKindNativeSpec) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ModelFieldKindNativeSpec
impl PartialEq for ModelFieldKindNativeSpec
Source§impl PartialOrd for ModelFieldKindNativeSpec
impl PartialOrd for ModelFieldKindNativeSpec
Source§impl Serialize for ModelFieldKindNativeSpec
impl Serialize for ModelFieldKindNativeSpec
impl Eq for ModelFieldKindNativeSpec
impl StructuralPartialEq for ModelFieldKindNativeSpec
Auto Trait Implementations§
impl Freeze for ModelFieldKindNativeSpec
impl RefUnwindSafe for ModelFieldKindNativeSpec
impl Send for ModelFieldKindNativeSpec
impl Sync for ModelFieldKindNativeSpec
impl Unpin for ModelFieldKindNativeSpec
impl UnwindSafe for ModelFieldKindNativeSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.