pub struct RelPattern {
pub var: Option<String>,
pub types: Vec<String>,
pub direction: Direction,
pub min_hops: Option<u32>,
pub max_hops: Option<u32>,
pub properties: Option<Expr>,
pub span: Span,
}Expand description
A relationship pattern: -[var:TYPE*min..max {props}]->.
Fields§
§var: Option<String>§types: Vec<String>Relationship type constraints.
direction: Direction§min_hops: Option<u32>Minimum hops for variable-length patterns (None = exactly 1).
max_hops: Option<u32>Maximum hops (None = unbounded or exactly 1 if min_hops is also None).
properties: Option<Expr>§span: SpanTrait Implementations§
Source§impl Clone for RelPattern
impl Clone for RelPattern
Source§fn clone(&self) -> RelPattern
fn clone(&self) -> RelPattern
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 RelPattern
impl Debug for RelPattern
Source§impl<'de> Deserialize<'de> for RelPattern
impl<'de> Deserialize<'de> for RelPattern
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 PartialEq for RelPattern
impl PartialEq for RelPattern
Source§impl Serialize for RelPattern
impl Serialize for RelPattern
impl StructuralPartialEq for RelPattern
Auto Trait Implementations§
impl Freeze for RelPattern
impl RefUnwindSafe for RelPattern
impl Send for RelPattern
impl Sync for RelPattern
impl Unpin for RelPattern
impl UnsafeUnpin for RelPattern
impl UnwindSafe for RelPattern
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