pub struct RelationIr {
pub name: Option<String>,
pub target_model: String,
pub fields: Vec<String>,
pub references: Vec<String>,
pub on_delete: Option<ReferentialAction>,
pub on_update: Option<ReferentialAction>,
}Expand description
Validated relation metadata.
Fields§
§name: Option<String>Optional relation name (required for multiple relations between same models).
target_model: StringThe logical name of the target model.
fields: Vec<String>Foreign key field names in the current model (logical names).
references: Vec<String>Referenced field names in the target model (logical names).
on_delete: Option<ReferentialAction>Referential action on delete.
on_update: Option<ReferentialAction>Referential action on update.
Trait Implementations§
Source§impl Clone for RelationIr
impl Clone for RelationIr
Source§fn clone(&self) -> RelationIr
fn clone(&self) -> RelationIr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RelationIr
impl Debug for RelationIr
Source§impl PartialEq for RelationIr
impl PartialEq for RelationIr
impl StructuralPartialEq for RelationIr
Auto Trait Implementations§
impl Freeze for RelationIr
impl RefUnwindSafe for RelationIr
impl Send for RelationIr
impl Sync for RelationIr
impl Unpin for RelationIr
impl UnsafeUnpin for RelationIr
impl UnwindSafe for RelationIr
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