pub enum ResolvedSource {
Table(ResolvedTable),
TableVirtual(ResolvedTableVirtual),
View(ResolvedView),
DeferredView(ResolvedDeferredView),
TransactionalView(ResolvedTransactionalView),
RingBuffer(ResolvedRingBuffer),
Flow(ResolvedFlow),
Dictionary(ResolvedDictionary),
}Expand description
Unified enum for any resolved source type
Variants§
Table(ResolvedTable)
TableVirtual(ResolvedTableVirtual)
View(ResolvedView)
DeferredView(ResolvedDeferredView)
TransactionalView(ResolvedTransactionalView)
RingBuffer(ResolvedRingBuffer)
Flow(ResolvedFlow)
Dictionary(ResolvedDictionary)
Implementations§
Source§impl ResolvedSource
impl ResolvedSource
Sourcepub fn identifier(&self) -> &Fragment
pub fn identifier(&self) -> &Fragment
Get the identifier fragment
Sourcepub fn namespace(&self) -> Option<&ResolvedNamespace>
pub fn namespace(&self) -> Option<&ResolvedNamespace>
Get the namespace if this source has one
Sourcepub fn supports_indexes(&self) -> bool
pub fn supports_indexes(&self) -> bool
Check if this source supports indexes
Sourcepub fn supports_mutations(&self) -> bool
pub fn supports_mutations(&self) -> bool
Check if this source supports mutations
Sourcepub fn find_column(&self, name: &str) -> Option<&ColumnDef>
pub fn find_column(&self, name: &str) -> Option<&ColumnDef>
Find a column by name
Sourcepub fn fully_qualified_name(&self) -> Option<String>
pub fn fully_qualified_name(&self) -> Option<String>
Get fully qualified name if available
Sourcepub fn as_table(&self) -> Option<&ResolvedTable>
pub fn as_table(&self) -> Option<&ResolvedTable>
Convert to a table if this is a table source
Sourcepub fn as_view(&self) -> Option<&ResolvedView>
pub fn as_view(&self) -> Option<&ResolvedView>
Convert to a view if this is a view source
Sourcepub fn as_ringbuffer(&self) -> Option<&ResolvedRingBuffer>
pub fn as_ringbuffer(&self) -> Option<&ResolvedRingBuffer>
Convert to a ring buffer if this is a ring buffer source
Sourcepub fn as_dictionary(&self) -> Option<&ResolvedDictionary>
pub fn as_dictionary(&self) -> Option<&ResolvedDictionary>
Convert to a dictionary if this is a dictionary source
Trait Implementations§
Source§impl Clone for ResolvedSource
impl Clone for ResolvedSource
Source§fn clone(&self) -> ResolvedSource
fn clone(&self) -> ResolvedSource
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 moreAuto Trait Implementations§
impl Freeze for ResolvedSource
impl RefUnwindSafe for ResolvedSource
impl Send for ResolvedSource
impl Sync for ResolvedSource
impl Unpin for ResolvedSource
impl UnwindSafe for ResolvedSource
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