pub enum ColumnOrigin {
Table(TableColumn),
Expression,
Unknown,
}Expand description
The possible statuses for our knowledge of the origin of a Column.
Variantsยง
Table(TableColumn)
The column is known to originate from a table.
Included is the table name and original column name.
Expression
The column originates from an expression, or else its origin could not be determined.
Unknown
The database driver does not know the column origin at this time.
This may happen if:
- The connection is in the middle of executing a query, and cannot query the catalog to fetch this information.
- The connection does not have access to the database catalog.
- The implementation of
Columndid not overrideColumn::origin().
Implementationsยง
Sourceยงimpl ColumnOrigin
impl ColumnOrigin
Sourcepub fn table_column(&self) -> Option<&TableColumn>
pub fn table_column(&self) -> Option<&TableColumn>
Returns the true column origin, if known.
Trait Implementationsยง
Sourceยงimpl Clone for ColumnOrigin
impl Clone for ColumnOrigin
Sourceยงfn clone(&self) -> ColumnOrigin
fn clone(&self) -> ColumnOrigin
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 ColumnOrigin
impl Debug for ColumnOrigin
Sourceยงimpl Default for ColumnOrigin
impl Default for ColumnOrigin
Sourceยงfn default() -> ColumnOrigin
fn default() -> ColumnOrigin
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for ColumnOrigin
impl<'de> Deserialize<'de> for ColumnOrigin
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<ColumnOrigin, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ColumnOrigin, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl Serialize for ColumnOrigin
impl Serialize for ColumnOrigin
Sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementationsยง
impl Freeze for ColumnOrigin
impl RefUnwindSafe for ColumnOrigin
impl Send for ColumnOrigin
impl Sync for ColumnOrigin
impl Unpin for ColumnOrigin
impl UnwindSafe for ColumnOrigin
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more