pub enum ResolvedSource<'a> {
Table(ResolvedTable<'a>),
TableVirtual(ResolvedTableVirtual<'a>),
View(ResolvedView<'a>),
DeferredView(ResolvedDeferredView<'a>),
TransactionalView(ResolvedTransactionalView<'a>),
RingBuffer(ResolvedRingBuffer<'a>),
Flow(ResolvedFlow<'a>),
Dictionary(ResolvedDictionary<'a>),
}Expand description
Unified enum for any resolved source type
Variants§
Table(ResolvedTable<'a>)
TableVirtual(ResolvedTableVirtual<'a>)
View(ResolvedView<'a>)
DeferredView(ResolvedDeferredView<'a>)
TransactionalView(ResolvedTransactionalView<'a>)
RingBuffer(ResolvedRingBuffer<'a>)
Flow(ResolvedFlow<'a>)
Dictionary(ResolvedDictionary<'a>)
Implementations§
Source§impl<'a> ResolvedSource<'a>
impl<'a> ResolvedSource<'a>
Sourcepub fn identifier(&self) -> &Fragment<'a>
pub fn identifier(&self) -> &Fragment<'a>
Get the identifier fragment
Sourcepub fn namespace(&self) -> Option<&ResolvedNamespace<'a>>
pub fn namespace(&self) -> Option<&ResolvedNamespace<'a>>
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<'a>>
pub fn as_table(&self) -> Option<&ResolvedTable<'a>>
Convert to a table if this is a table source
Sourcepub fn as_view(&self) -> Option<&ResolvedView<'a>>
pub fn as_view(&self) -> Option<&ResolvedView<'a>>
Convert to a view if this is a view source
Sourcepub fn as_ring_buffer(&self) -> Option<&ResolvedRingBuffer<'a>>
pub fn as_ring_buffer(&self) -> Option<&ResolvedRingBuffer<'a>>
Convert to a ring buffer if this is a ring buffer source
Sourcepub fn to_static(&self) -> ResolvedSource<'static>
pub fn to_static(&self) -> ResolvedSource<'static>
Convert to owned version with ’static lifetime
Sourcepub fn as_dictionary(&self) -> Option<&ResolvedDictionary<'a>>
pub fn as_dictionary(&self) -> Option<&ResolvedDictionary<'a>>
Convert to a dictionary if this is a dictionary source
Trait Implementations§
Source§impl<'a> Clone for ResolvedSource<'a>
impl<'a> Clone for ResolvedSource<'a>
Source§fn clone(&self) -> ResolvedSource<'a>
fn clone(&self) -> ResolvedSource<'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 moreAuto Trait Implementations§
impl<'a> Freeze for ResolvedSource<'a>
impl<'a> RefUnwindSafe for ResolvedSource<'a>
impl<'a> Send for ResolvedSource<'a>
impl<'a> Sync for ResolvedSource<'a>
impl<'a> Unpin for ResolvedSource<'a>
impl<'a> UnwindSafe for ResolvedSource<'a>
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