pub enum ModelFieldKindSpec {
Native(ModelFieldKindNativeSpec),
Extended(ModelFieldKindExtendedSpec),
}
Variants§
Native(ModelFieldKindNativeSpec)
Extended(ModelFieldKindExtendedSpec)
Implementations§
Source§impl ModelFieldKindSpec
impl ModelFieldKindSpec
pub fn get_children(&self) -> Option<&Vec<String>>
pub fn get_children_mut(&mut self) -> Option<&mut Vec<String>>
pub const fn to_type(&self) -> ModelFieldKindType
Trait Implementations§
Source§impl Clone for ModelFieldKindSpec
impl Clone for ModelFieldKindSpec
Source§fn clone(&self) -> ModelFieldKindSpec
fn clone(&self) -> ModelFieldKindSpec
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 ModelFieldKindSpec
impl Debug for ModelFieldKindSpec
Source§impl Default for ModelFieldKindSpec
impl Default for ModelFieldKindSpec
Source§impl<'de> Deserialize<'de> for ModelFieldKindSpec
impl<'de> Deserialize<'de> for ModelFieldKindSpec
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 ModelFieldKindSpec
impl Hash for ModelFieldKindSpec
Source§impl JsonSchema for ModelFieldKindSpec
impl JsonSchema for ModelFieldKindSpec
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§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. 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§impl Ord for ModelFieldKindSpec
impl Ord for ModelFieldKindSpec
Source§fn cmp(&self, other: &ModelFieldKindSpec) -> Ordering
fn cmp(&self, other: &ModelFieldKindSpec) -> 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 ModelFieldKindSpec
impl PartialEq for ModelFieldKindSpec
Source§impl PartialOrd for ModelFieldKindSpec
impl PartialOrd for ModelFieldKindSpec
Source§impl Serialize for ModelFieldKindSpec
impl Serialize for ModelFieldKindSpec
impl Eq for ModelFieldKindSpec
impl StructuralPartialEq for ModelFieldKindSpec
Auto Trait Implementations§
impl Freeze for ModelFieldKindSpec
impl RefUnwindSafe for ModelFieldKindSpec
impl Send for ModelFieldKindSpec
impl Sync for ModelFieldKindSpec
impl Unpin for ModelFieldKindSpec
impl UnwindSafe for ModelFieldKindSpec
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.