pub struct Ref {
pub name: Option<Ident>,
pub from_table: Ident,
pub from_columns: Vec<Ident>,
pub to_table: Ident,
pub to_columns: Vec<Ident>,
pub relationship: RelationshipType,
pub on_delete: Option<ReferentialAction>,
pub on_update: Option<ReferentialAction>,
pub span: Span,
}Fields§
§name: Option<Ident>§from_table: Ident§from_columns: Vec<Ident>§to_table: Ident§to_columns: Vec<Ident>§relationship: RelationshipType§on_delete: Option<ReferentialAction>§on_update: Option<ReferentialAction>§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for Ref
impl RefUnwindSafe for Ref
impl Send for Ref
impl Sync for Ref
impl Unpin for Ref
impl UnwindSafe for Ref
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