Struct sea_orm_codegen::Entity
source · [−]pub struct Entity { /* private fields */ }Implementations
sourceimpl 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>
pub fn get_relation_defs(&self) -> Vec<TokenStream>
pub fn get_relation_attrs(&self) -> Vec<TokenStream>
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_camel_case(&self) -> Vec<Ident>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Entity
impl !Send for Entity
impl !Sync for Entity
impl Unpin for Entity
impl !UnwindSafe for Entity
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more