pub enum RelationBound<'a, T: NodeEntity> {
Create(&'a T),
Match(&'a T::Id),
}Expand description
When creating a relationship, the query has to MATCH, CREATE, or MERGE the start and end nodes.
Variants§
Implementations§
Source§impl<'a, T: NodeEntity> RelationBound<'a, T>
impl<'a, T: NodeEntity> RelationBound<'a, T>
Sourcepub fn to_query_clause(&self, prefix: &str) -> String
pub fn to_query_clause(&self, prefix: &str) -> String
Returns a CREATE (node:…) or MATCH (node:…) clause for this variant.
pub fn add_params(&self, q: Query, prefix: &str) -> Query
Auto Trait Implementations§
impl<'a, T> Freeze for RelationBound<'a, T>
impl<'a, T> RefUnwindSafe for RelationBound<'a, T>
impl<'a, T> Send for RelationBound<'a, T>
impl<'a, T> Sync for RelationBound<'a, T>
impl<'a, T> Unpin for RelationBound<'a, T>
impl<'a, T> UnwindSafe for RelationBound<'a, T>
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