pub struct ModelStructData {
pub struct_definition: GoStruct,
pub imports: Vec<String>,
pub required_fields: Vec<String>,
pub common_file_header: CommonFileHeaderData,
}Expand description
Model struct data for template rendering
Fields§
§struct_definition: GoStruct§imports: Vec<String>§required_fields: Vec<String>§common_file_header: CommonFileHeaderDataImplementations§
Source§impl ModelStructData
impl ModelStructData
pub fn new( struct_definition: GoStruct, common_file_header: CommonFileHeaderData, ) -> Self
pub fn with_imports(self, imports: Vec<String>) -> Self
pub fn with_required_fields(self, required_fields: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for ModelStructData
impl Clone for ModelStructData
Source§fn clone(&self) -> ModelStructData
fn clone(&self) -> ModelStructData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelStructData
impl Debug for ModelStructData
Source§impl<'de> Deserialize<'de> for ModelStructData
impl<'de> Deserialize<'de> for ModelStructData
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
Auto Trait Implementations§
impl Freeze for ModelStructData
impl RefUnwindSafe for ModelStructData
impl Send for ModelStructData
impl Sync for ModelStructData
impl Unpin for ModelStructData
impl UnsafeUnpin for ModelStructData
impl UnwindSafe for ModelStructData
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