#[non_exhaustive]pub struct CodegenGenericDataModel {
    pub fields: HashMap<String, CodegenGenericDataField>,
    pub is_join_table: Option<bool>,
    pub primary_keys: Vec<String>,
}Expand description
Describes a model in a generic data schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fields: HashMap<String, CodegenGenericDataField>The fields in the generic data model.
is_join_table: Option<bool>Specifies whether the generic data model is a join table.
primary_keys: Vec<String>The primary keys of the generic data model.
Implementations§
source§impl CodegenGenericDataModel
 
impl CodegenGenericDataModel
sourcepub fn fields(&self) -> &HashMap<String, CodegenGenericDataField>
 
pub fn fields(&self) -> &HashMap<String, CodegenGenericDataField>
The fields in the generic data model.
sourcepub fn is_join_table(&self) -> Option<bool>
 
pub fn is_join_table(&self) -> Option<bool>
Specifies whether the generic data model is a join table.
sourcepub fn primary_keys(&self) -> &[String]
 
pub fn primary_keys(&self) -> &[String]
The primary keys of the generic data model.
source§impl CodegenGenericDataModel
 
impl CodegenGenericDataModel
sourcepub fn builder() -> CodegenGenericDataModelBuilder
 
pub fn builder() -> CodegenGenericDataModelBuilder
Creates a new builder-style object to manufacture CodegenGenericDataModel.
Trait Implementations§
source§impl Clone for CodegenGenericDataModel
 
impl Clone for CodegenGenericDataModel
source§fn clone(&self) -> CodegenGenericDataModel
 
fn clone(&self) -> CodegenGenericDataModel
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 CodegenGenericDataModel
 
impl Debug for CodegenGenericDataModel
source§impl PartialEq for CodegenGenericDataModel
 
impl PartialEq for CodegenGenericDataModel
source§fn eq(&self, other: &CodegenGenericDataModel) -> bool
 
fn eq(&self, other: &CodegenGenericDataModel) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CodegenGenericDataModel
Auto Trait Implementations§
impl RefUnwindSafe for CodegenGenericDataModel
impl Send for CodegenGenericDataModel
impl Sync for CodegenGenericDataModel
impl Unpin for CodegenGenericDataModel
impl UnwindSafe for CodegenGenericDataModel
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> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.