pub enum SourceKind<A> {
Name(StrRef),
Subject(StrRef),
Subquery(Box<Query<A>>),
}Expand description
The kind of data source.
EventQL supports three types of sources:
- Named sources (e.g.,
FROM e IN events) - Subject patterns (e.g.,
FROM e IN "users/john") - Subqueries (e.g.,
FROM e IN (SELECT ...))
Variants§
Name(StrRef)
Named source (identifier)
Subject(StrRef)
Subject pattern (string literal used as event subject pattern)
Subquery(Box<Query<A>>)
Nested subquery
Trait Implementations§
Source§impl<A: Clone> Clone for SourceKind<A>
impl<A: Clone> Clone for SourceKind<A>
Source§fn clone(&self) -> SourceKind<A>
fn clone(&self) -> SourceKind<A>
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<A: Debug> Debug for SourceKind<A>
impl<A: Debug> Debug for SourceKind<A>
Auto Trait Implementations§
impl<A> Freeze for SourceKind<A>
impl<A> RefUnwindSafe for SourceKind<A>where
A: RefUnwindSafe,
impl<A> Send for SourceKind<A>where
A: Send,
impl<A> Sync for SourceKind<A>where
A: Sync,
impl<A> Unpin for SourceKind<A>
impl<A> UnwindSafe for SourceKind<A>where
A: UnwindSafe,
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