pub struct SourceInfo {
pub expression: Expression,
pub is_scope: bool,
pub kind: SourceKind,
pub alias: Option<String>,
pub lineage_name: Option<String>,
}Expand description
Information about a source (table or subquery) in a scope
Fields§
§expression: ExpressionThe source expression (Table or subquery)
is_scope: boolWhether this source is a scope (vs. a plain table)
kind: SourceKindSemantic source kind for lineage consumers.
alias: Option<String>User-written alias, when it should be preserved separately from lineage name.
lineage_name: Option<String>Canonical lineage source name, e.g. synthetic _0 for virtual sources.
Implementations§
Source§impl SourceInfo
impl SourceInfo
pub fn new(expression: Expression, is_scope: bool, kind: SourceKind) -> Self
pub fn with_alias(self, alias: impl Into<String>) -> Self
pub fn with_lineage_name(self, lineage_name: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for SourceInfo
impl Clone for SourceInfo
Source§fn clone(&self) -> SourceInfo
fn clone(&self) -> SourceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for SourceInfo
impl RefUnwindSafe for SourceInfo
impl Send for SourceInfo
impl Sync for SourceInfo
impl Unpin for SourceInfo
impl UnsafeUnpin for SourceInfo
impl UnwindSafe for SourceInfo
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