Struct sea_orm_codegen::EntityWriter
source · pub struct EntityWriter { /* private fields */ }
Implementations§
source§impl EntityWriter
impl EntityWriter
pub fn generate(self, context: &EntityWriterContext) -> WriterOutput
pub fn write_entities(&self, context: &EntityWriterContext) -> Vec<OutputFile>
pub fn write_index_file(&self, lib: bool) -> OutputFile
pub fn write_prelude(&self) -> OutputFile
pub fn write_sea_orm_active_enums( &self, with_serde: &WithSerde, with_copy_enums: bool ) -> OutputFile
pub fn write(lines: &mut Vec<String>, code_blocks: Vec<TokenStream>)
pub fn write_doc_comment(lines: &mut Vec<String>)
pub fn gen_expanded_code_blocks( entity: &Entity, with_serde: &WithSerde, date_time_crate: &DateTimeCrate, schema_name: &Option<String>, serde_skip_deserializing_primary_key: bool, serde_skip_hidden_column: bool, model_extra_derives: &TokenStream, model_extra_attributes: &TokenStream ) -> Vec<TokenStream>
pub fn gen_compact_code_blocks( entity: &Entity, with_serde: &WithSerde, date_time_crate: &DateTimeCrate, schema_name: &Option<String>, serde_skip_deserializing_primary_key: bool, serde_skip_hidden_column: bool, model_extra_derives: &TokenStream, model_extra_attributes: &TokenStream ) -> Vec<TokenStream>
pub fn gen_import(with_serde: &WithSerde) -> TokenStream
pub fn gen_entity_struct() -> TokenStream
pub fn gen_impl_entity_name( entity: &Entity, schema_name: &Option<String> ) -> TokenStream
pub fn gen_import_active_enum(entity: &Entity) -> TokenStream
pub fn gen_model_struct( entity: &Entity, with_serde: &WithSerde, date_time_crate: &DateTimeCrate, serde_skip_deserializing_primary_key: bool, serde_skip_hidden_column: bool, model_extra_derives: &TokenStream, model_extra_attributes: &TokenStream ) -> TokenStream
pub fn gen_column_enum(entity: &Entity) -> TokenStream
pub fn gen_primary_key_enum(entity: &Entity) -> TokenStream
pub fn gen_impl_primary_key( entity: &Entity, date_time_crate: &DateTimeCrate ) -> TokenStream
pub fn gen_relation_enum(entity: &Entity) -> TokenStream
pub fn gen_impl_column_trait(entity: &Entity) -> TokenStream
pub fn gen_impl_relation_trait(entity: &Entity) -> TokenStream
pub fn gen_impl_active_model_behavior() -> TokenStream
pub fn gen_mod(entity: &Entity) -> TokenStream
pub fn gen_prelude_use(entity: &Entity) -> TokenStream
pub fn gen_compact_model_struct( entity: &Entity, with_serde: &WithSerde, date_time_crate: &DateTimeCrate, schema_name: &Option<String>, serde_skip_deserializing_primary_key: bool, serde_skip_hidden_column: bool, model_extra_derives: &TokenStream, model_extra_attributes: &TokenStream ) -> TokenStream
pub fn gen_compact_relation_enum(entity: &Entity) -> TokenStream
pub fn gen_schema_name(schema_name: &Option<String>) -> Option<TokenStream>
Trait Implementations§
source§impl Clone for EntityWriter
impl Clone for EntityWriter
source§fn clone(&self) -> EntityWriter
fn clone(&self) -> EntityWriter
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for EntityWriter
impl Send for EntityWriter
impl Sync for EntityWriter
impl Unpin for EntityWriter
impl !UnwindSafe for EntityWriter
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