#[non_exhaustive]pub enum VertexSearch<'search, Graph>where
Graph: Graph,{
Scan {
limit: Option<usize>,
},
Label {
label: <Graph::Vertex as Element>::Label,
limit: Option<usize>,
},
Index {
index: <<Graph::Vertex as Element>::Label as Label>::Index,
value: Value<'search>,
limit: Option<usize>,
},
Range {
index: <<Graph::Vertex as Element>::Label as Label>::Index,
range: Range<Value<'search>>,
limit: Option<usize>,
},
FullText {
index: <<Graph::Vertex as Element>::Label as Label>::Index,
search: Value<'search>,
limit: Option<usize>,
},
}
Expand description
A search to apply to vertices when querying a graph.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl<'search, Graph> VertexSearch<'search, Graph>where
Graph: Graph,
impl<'search, Graph> VertexSearch<'search, Graph>where
Graph: Graph,
pub fn scan() -> Self
pub fn label(label: <Graph::Vertex as Element>::Label) -> Selfwhere
Graph: Graph + SupportsVertexLabelIndex,
pub fn get<V>( index: <<Graph::Vertex as Element>::Label as Label>::Index, value: V, ) -> Self
pub fn range<R>( index: <<Graph::Vertex as Element>::Label as Label>::Index, range: R, ) -> Self
pub fn full_text(
index: <<Graph::Vertex as Element>::Label as Label>::Index,
search: &'search str,
) -> Selfwhere
Graph: Graph + SupportsVertexFullTextIndex,
Sourcepub fn with_limit(self, new_limit: usize) -> Self
pub fn with_limit(self, new_limit: usize) -> Self
The maximum number of vertices to return from this search
Trait Implementations§
Auto Trait Implementations§
impl<'search, Graph> Freeze for VertexSearch<'search, Graph>
impl<'search, Graph> RefUnwindSafe for VertexSearch<'search, Graph>
impl<'search, Graph> Send for VertexSearch<'search, Graph>
impl<'search, Graph> Sync for VertexSearch<'search, Graph>
impl<'search, Graph> Unpin for VertexSearch<'search, Graph>
impl<'search, Graph> UnwindSafe for VertexSearch<'search, Graph>
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