pub struct QueryJoinKeyConfig {
pub label: String,
pub property: String,
}Expand description
Join key specification for synthetic joins
QueryJoinKeyConfig specifies one side of a join condition by identifying
a node label and the property to use for matching.
§Example
For joining orders to customers:
keys:
- label: Order
property: customer_id
- label: Customer
property: idThis creates an edge when Order.customer_id == Customer.id.
Fields§
§label: StringNode label to match
property: StringProperty to use for joining
Trait Implementations§
Source§impl Clone for QueryJoinKeyConfig
impl Clone for QueryJoinKeyConfig
Source§fn clone(&self) -> QueryJoinKeyConfig
fn clone(&self) -> QueryJoinKeyConfig
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 moreSource§impl Debug for QueryJoinKeyConfig
impl Debug for QueryJoinKeyConfig
Source§impl<'de> Deserialize<'de> for QueryJoinKeyConfig
impl<'de> Deserialize<'de> for QueryJoinKeyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<QueryJoinKeyConfig> for QueryJoinKey
impl From<QueryJoinKeyConfig> for QueryJoinKey
Source§fn from(config: QueryJoinKeyConfig) -> Self
fn from(config: QueryJoinKeyConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryJoinKeyConfig
impl RefUnwindSafe for QueryJoinKeyConfig
impl Send for QueryJoinKeyConfig
impl Sync for QueryJoinKeyConfig
impl Unpin for QueryJoinKeyConfig
impl UnwindSafe for QueryJoinKeyConfig
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