pub struct DataModel {
pub data_types: Vec<DataType>,
pub headers: HashMap<String, String>,
pub footers: HashMap<String, String>,
pub namespace: Vec<String>,
pub macros: HashMap<String, SerializationModel>,
}Expand description
An entire data model
Fields§
§data_types: Vec<DataType>List of the the data types to implement
headers: HashMap<String, String>List of all header data used to include external packages
List of all footer data
namespace: Vec<String>The nested namespace to put the data model into
macros: HashMap<String, SerializationModel>A set of replacement macros to use for default values
Implementations§
Source§impl DataModel
impl DataModel
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataModel
impl<'de> Deserialize<'de> for DataModel
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
impl StructuralPartialEq for DataModel
Auto Trait Implementations§
impl Freeze for DataModel
impl RefUnwindSafe for DataModel
impl Send for DataModel
impl Sync for DataModel
impl Unpin for DataModel
impl UnwindSafe for DataModel
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