Struct sea_orm_codegen::Relation
source · [−]pub struct Relation { /* private fields */ }Implementations
sourceimpl 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
sourceimpl From<&'_ TableForeignKey> for Relation
impl From<&'_ TableForeignKey> for Relation
sourcefn from(tbl_fk: &TableForeignKey) -> Self
fn from(tbl_fk: &TableForeignKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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