pub struct Rel { /* private fields */ }Expand description
A relationship, ready to use.
Saves declaring a type just to satisfy Schema::Relationship:
ⓘ
fn relationships(&self) -> &[Rel] {
&[Rel::to_one("owner", "user"), Rel::to_many("tags", "tag")]
}Implementations§
Trait Implementations§
impl Eq for Rel
Source§impl RelationshipDef for Rel
impl RelationshipDef for Rel
impl StructuralPartialEq for Rel
Auto Trait Implementations§
impl Freeze for Rel
impl RefUnwindSafe for Rel
impl Send for Rel
impl Sync for Rel
impl Unpin for Rel
impl UnsafeUnpin for Rel
impl UnwindSafe for Rel
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