Struct sea_orm_codegen::EntityWriter
source · [−]pub struct EntityWriter { /* private fields */ }Implementations
sourceimpl EntityWriter
impl EntityWriter
pub fn generate(
self,
expanded_format: bool,
with_serde: WithSerde
) -> WriterOutput
pub fn write_entities(
&self,
expanded_format: bool,
with_serde: &WithSerde
) -> Vec<OutputFile>
pub fn write_mod(&self) -> OutputFile
pub fn write_prelude(&self) -> OutputFile
pub fn write_sea_orm_active_enums(&self, with_serde: &WithSerde) -> 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
) -> Vec<TokenStream>
pub fn gen_compact_code_blocks(
entity: &Entity,
with_serde: &WithSerde
) -> Vec<TokenStream>
pub fn gen_import(with_serde: &WithSerde) -> TokenStream
pub fn gen_entity_struct() -> TokenStream
pub fn gen_impl_entity_name(entity: &Entity) -> TokenStream
pub fn gen_import_active_enum(entity: &Entity) -> TokenStream
pub fn gen_model_struct(entity: &Entity, with_serde: &WithSerde) -> 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) -> 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
) -> TokenStream
pub fn gen_compact_relation_enum(entity: &Entity) -> TokenStream
Trait Implementations
sourceimpl Clone for EntityWriter
impl Clone for EntityWriter
sourcefn clone(&self) -> EntityWriter
fn clone(&self) -> EntityWriter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for EntityWriter
impl !Send for EntityWriter
impl !Sync for EntityWriter
impl Unpin for EntityWriter
impl !UnwindSafe for EntityWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more