Struct sea_orm_codegen::Entity
source · pub struct Entity { /* private fields */ }
Implementations§
source§impl Entity
impl Entity
pub fn get_table_name_snake_case(&self) -> String
pub fn get_table_name_camel_case(&self) -> String
pub fn get_table_name_snake_case_ident(&self) -> Ident
pub fn get_table_name_camel_case_ident(&self) -> Ident
pub fn get_column_names_snake_case(&self) -> Vec<Ident>
pub fn get_column_names_camel_case(&self) -> Vec<Ident>
pub fn get_column_rs_types( &self, date_time_crate: &DateTimeCrate ) -> Vec<TokenStream>
pub fn get_column_defs(&self) -> Vec<TokenStream>
pub fn get_primary_key_names_snake_case(&self) -> Vec<Ident>
pub fn get_primary_key_names_camel_case(&self) -> Vec<Ident>
pub fn get_relation_module_name(&self) -> Vec<Option<Ident>>
pub fn get_relation_enum_name(&self) -> Vec<Ident>
Used to generate the names for the enum RelatedEntity
that is useful to the Seaography project
pub fn get_relation_defs(&self) -> Vec<TokenStream>
pub fn get_relation_attrs(&self) -> Vec<TokenStream>
Used to generate the attributes for the enum RelatedEntity
that is useful to the Seaography project
pub fn get_primary_key_auto_increment(&self) -> Ident
pub fn get_primary_key_rs_type( &self, date_time_crate: &DateTimeCrate ) -> TokenStream
pub fn get_conjunct_relations_via_snake_case(&self) -> Vec<Ident>
pub fn get_conjunct_relations_to_snake_case(&self) -> Vec<Ident>
pub fn get_conjunct_relations_to_upper_camel_case(&self) -> Vec<Ident>
pub fn get_eq_needed(&self) -> TokenStream
pub fn get_column_serde_attributes( &self, serde_skip_deserializing_primary_key: bool, serde_skip_hidden_column: bool ) -> Vec<TokenStream>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entity
impl !RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl !UnwindSafe for Entity
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