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) -> Vec<Ident>
pub fn get_ref_column_camel_case(&self) -> Vec<Ident>
pub fn get_foreign_key_action(action: &ForeignKeyAction) -> String
pub fn get_src_ref_columns<F1, F2, F3, T, I>( &self, map_src_column: F1, map_ref_column: F2, map_punctuated: F3 ) -> (T, T)
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.
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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