pub struct Reference {
pub field: String,
pub target: String,
pub relation: String,
pub on_delete: OnDelete,
pub required: bool,
}Expand description
A resolved belongs_to edge: the referencing field, its target resource, and
the JSON key it expands under (owner_id → owner).
Fields§
§field: String§target: String§relation: String§on_delete: OnDelete§required: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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