pub struct OdbcValue { /* private fields */ }Expand description
A small owned ODBC value representation used by unit tests and Any-mapping work.
Implementations§
Source§impl OdbcValue
impl OdbcValue
Sourcepub fn new(kind: OdbcValueKind) -> Self
pub fn new(kind: OdbcValueKind) -> Self
Creates a new value from a raw kind.
Sourcepub fn kind(&self) -> &OdbcValueKind
pub fn kind(&self) -> &OdbcValueKind
Returns the raw value kind.
Trait Implementations§
Source§impl Value for OdbcValue
impl Value for OdbcValue
type Database = Odbc
Source§fn type_info(&self) -> Cow<'_, OdbcTypeInfo>
fn type_info(&self) -> Cow<'_, OdbcTypeInfo>
Get the type information for this value.
Source§fn decode_unchecked<'r, T>(&'r self) -> T
fn decode_unchecked<'r, T>(&'r self) -> T
Decode this single value into the requested type. Read more
impl StructuralPartialEq for OdbcValue
Auto Trait Implementations§
impl Freeze for OdbcValue
impl RefUnwindSafe for OdbcValue
impl Send for OdbcValue
impl Sync for OdbcValue
impl Unpin for OdbcValue
impl UnsafeUnpin for OdbcValue
impl UnwindSafe for OdbcValue
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