pub struct Column<'r, 's, 'c, S, C: Configuration> {
pub column_type: &'r ColumnType,
pub configuration: &'s C,
/* private fields */
}
Expand description
Represents SQL table column which can be converted to Rust native type.
Fields§
§column_type: &'r ColumnType
Type information about this column
configuration: &'s C
Data access configuration
Implementations§
Source§impl<'r, 's, 'c, S, C: Configuration> Column<'r, 's, 'c, S, C>
impl<'r, 's, 'c, S, C: Configuration> Column<'r, 's, 'c, S, C>
Sourcepub fn into_string(self) -> Result<Option<String>, DatumAccessError>
pub fn into_string(self) -> Result<Option<String>, DatumAccessError>
Reads String
value from column.
Sourcepub fn into_timestamp(self) -> Result<Option<SqlTimestamp>, DatumAccessError>
pub fn into_timestamp(self) -> Result<Option<SqlTimestamp>, DatumAccessError>
Reads SqlTimestamp
value from column.
Sourcepub fn into_date(self) -> Result<Option<SqlDate>, DatumAccessError>
pub fn into_date(self) -> Result<Option<SqlDate>, DatumAccessError>
Reads SqlDate
value from column.
Sourcepub fn into_time(self) -> Result<Option<SqlSsTime2>, DatumAccessError>
pub fn into_time(self) -> Result<Option<SqlSsTime2>, DatumAccessError>
Reads SqlSsTime2
value from column.
Trait Implementations§
Auto Trait Implementations§
impl<'r, 's, 'c, S, C> Freeze for Column<'r, 's, 'c, S, C>
impl<'r, 's, 'c, S, C> RefUnwindSafe for Column<'r, 's, 'c, S, C>where
C: RefUnwindSafe,
S: RefUnwindSafe,
impl<'r, 's, 'c, S, C> !Send for Column<'r, 's, 'c, S, C>
impl<'r, 's, 'c, S, C> !Sync for Column<'r, 's, 'c, S, C>
impl<'r, 's, 'c, S, C> Unpin for Column<'r, 's, 'c, S, C>
impl<'r, 's, 'c, S, C> !UnwindSafe for Column<'r, 's, 'c, S, C>
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