Enum stam::QueryResultItem
source · pub enum QueryResultItem<'store> {
None,
TextSelection(ResultTextSelection<'store>),
Annotation(ResultItem<'store, Annotation>),
TextResource(ResultItem<'store, TextResource>),
DataKey(ResultItem<'store, DataKey>),
AnnotationData(ResultItem<'store, AnnotationData>),
AnnotationDataSet(ResultItem<'store, AnnotationDataSet>),
}Expand description
This structure encapsulates the different kind of result items that can be returned from queries.
See AnnotationStore::query() for an example of it in use.
Variants§
None
No result
TextSelection(ResultTextSelection<'store>)
Corresponds to result type TEXT in STAMQL
Annotation(ResultItem<'store, Annotation>)
Corresponds to result type ANNOTATION in STAMQL
TextResource(ResultItem<'store, TextResource>)
Corresponds to result type RESOURCE in STAMQL
DataKey(ResultItem<'store, DataKey>)
Corresponds to result type KEY in STAMQL
AnnotationData(ResultItem<'store, AnnotationData>)
Corresponds to result type DATA in STAMQL
AnnotationDataSet(ResultItem<'store, AnnotationDataSet>)
Corresponds to result type DATASET in STAMQL
Trait Implementations§
source§impl<'store> Clone for QueryResultItem<'store>
impl<'store> Clone for QueryResultItem<'store>
source§fn clone(&self) -> QueryResultItem<'store>
fn clone(&self) -> QueryResultItem<'store>
Returns a copy 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 moreAuto Trait Implementations§
impl<'store> RefUnwindSafe for QueryResultItem<'store>
impl<'store> Send for QueryResultItem<'store>
impl<'store> Sync for QueryResultItem<'store>
impl<'store> Unpin for QueryResultItem<'store>
impl<'store> UnwindSafe for QueryResultItem<'store>
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