pub struct Source {
pub binding: String,
pub kind: SourceKind,
}Expand description
A data source in a FROM clause.
Sources specify where data comes from in a query. Each source has a binding (the variable name) and a kind (what it binds to).
§Examples
In FROM e IN events, the source has:
binding:"e"kind:SourceKind::Name("events")
Fields§
§binding: StringVariable name bound to this source
kind: SourceKindWhat this source represents
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
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