pub struct RelationAttribute {
pub name: Option<String>,
pub fields: Vec<String>,
pub references: Vec<String>,
pub on_delete: Option<ReferentialAction>,
pub on_update: Option<ReferentialAction>,
}Expand description
@relation(fields: [...], references: [...])
Fields§
§name: Option<String>§fields: Vec<String>§references: Vec<String>§on_delete: Option<ReferentialAction>§on_update: Option<ReferentialAction>Trait Implementations§
Source§impl Clone for RelationAttribute
impl Clone for RelationAttribute
Source§fn clone(&self) -> RelationAttribute
fn clone(&self) -> RelationAttribute
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 moreAuto Trait Implementations§
impl Freeze for RelationAttribute
impl RefUnwindSafe for RelationAttribute
impl Send for RelationAttribute
impl Sync for RelationAttribute
impl Unpin for RelationAttribute
impl UnsafeUnpin for RelationAttribute
impl UnwindSafe for RelationAttribute
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