Struct sea_orm_codegen::Relation
source · pub struct Relation { /* private fields */ }
Implementations§
source§impl Relation
impl Relation
pub fn get_enum_name(&self) -> Ident
pub fn get_module_name(&self) -> Option<Ident>
pub fn get_def(&self) -> TokenStream
pub fn get_attrs(&self) -> TokenStream
pub fn get_rel_type(&self) -> Ident
pub fn get_column_camel_case(&self) -> Ident
pub fn get_ref_column_camel_case(&self) -> Ident
pub fn get_foreign_key_action(action: &ForeignKeyAction) -> String
Trait Implementations§
source§impl From<&TableForeignKey> for Relation
impl From<&TableForeignKey> for Relation
source§fn from(tbl_fk: &TableForeignKey) -> Self
fn from(tbl_fk: &TableForeignKey) -> Self
Converts to this type from the input type.