pub struct CreateLinkExpr {
pub owner: String,
pub name: String,
pub target: String,
pub local_key: String,
pub target_key: String,
}Expand description
A persistent entity-link declaration, written either as a bare statement
(link <Owner>.<name> -> <Target> on <local> = <target>) or as an
alter <Owner> add link <name> -> <Target> on <local> = <target> action.
The on <local> = <target> clause reads “the owner’s local_key equals
the target’s target_key”. Cardinality (ToOne/ToMany) is NOT written
here: it is derived by Catalog::create_link from whether target_key is
backed by a unique index on the target.
Fields§
§owner: StringThe type the link is declared on (traversed as <alias>.<name>).
name: StringTraversal name, unique per owner type.
target: StringTarget type the link resolves to.
local_key: StringColumn on the owner supplying the join value.
target_key: StringColumn on the target matched against local_key.
Trait Implementations§
Source§impl Clone for CreateLinkExpr
impl Clone for CreateLinkExpr
Source§fn clone(&self) -> CreateLinkExpr
fn clone(&self) -> CreateLinkExpr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateLinkExpr
impl Debug for CreateLinkExpr
impl Eq for CreateLinkExpr
Source§impl PartialEq for CreateLinkExpr
impl PartialEq for CreateLinkExpr
impl StructuralPartialEq for CreateLinkExpr
Auto Trait Implementations§
impl Freeze for CreateLinkExpr
impl RefUnwindSafe for CreateLinkExpr
impl Send for CreateLinkExpr
impl Sync for CreateLinkExpr
impl Unpin for CreateLinkExpr
impl UnsafeUnpin for CreateLinkExpr
impl UnwindSafe for CreateLinkExpr
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