pub enum SourceKind {
Name(String),
Subject(String),
Subquery(Box<Query>),
}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(String)
Named source (identifier)
Subject(String)
Subject pattern (string literal used as event subject pattern)
Subquery(Box<Query>)
Nested subquery
Trait Implementations§
Source§impl Clone for SourceKind
impl Clone for SourceKind
Source§fn clone(&self) -> SourceKind
fn clone(&self) -> SourceKind
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 Debug for SourceKind
impl Debug for SourceKind
Auto Trait Implementations§
impl Freeze for SourceKind
impl RefUnwindSafe for SourceKind
impl Send for SourceKind
impl Sync for SourceKind
impl Unpin for SourceKind
impl UnwindSafe for SourceKind
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