pub struct Column<T> {
pub name: String,
pub table: Option<String>,
pub schema: Option<String>,
/* private fields */
}Expand description
Type-safe column reference for use in queries
Fields§
§name: String§table: Option<String>§schema: Option<String>Implementations§
Source§impl<T> Column<T>
impl<T> Column<T>
Sourcepub fn from_table(self, table: impl Into<String>) -> Self
pub fn from_table(self, table: impl Into<String>) -> Self
Set the table for this column
Sourcepub fn from_schema(self, schema: impl Into<String>) -> Self
pub fn from_schema(self, schema: impl Into<String>) -> Self
Set the schema for this column
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Get the fully qualified column name
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Column<T>
impl<T> RefUnwindSafe for Column<T>where
T: RefUnwindSafe,
impl<T> Send for Column<T>where
T: Send,
impl<T> Sync for Column<T>where
T: Sync,
impl<T> Unpin for Column<T>where
T: Unpin,
impl<T> UnsafeUnpin for Column<T>
impl<T> UnwindSafe for Column<T>where
T: UnwindSafe,
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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