pub struct D1Value(/* private fields */);Expand description
A value read out of a D1 result, already converted from JavaScript.
Owned, because D1 returns the whole result set as JavaScript values and there is nothing on the Rust side for a row to borrow from.
It wraps D1ArgumentValue: a value read and
a value bound are the same enum, as in sqlx’s Any driver.
Trait Implementations§
impl StructuralPartialEq for D1Value
Source§impl Value for D1Value
impl Value for D1Value
type Database = D1
Source§fn as_ref(&self) -> D1ValueRef<'_>
fn as_ref(&self) -> D1ValueRef<'_>
Get this value as a reference.
Source§fn type_info(&self) -> Cow<'_, D1TypeInfo>
fn type_info(&self) -> Cow<'_, D1TypeInfo>
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
Auto Trait Implementations§
impl Freeze for D1Value
impl RefUnwindSafe for D1Value
impl Send for D1Value
impl Sync for D1Value
impl Unpin for D1Value
impl UnsafeUnpin for D1Value
impl UnwindSafe for D1Value
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