pub struct DoValue(/* private fields */);Expand description
A value read out of a Durable Object storage result, already converted from JavaScript.
Owned, because every row is read out of the cursor when the query runs, and there is nothing on the Rust side for a row to borrow from.
It wraps DoArgumentValue: a value read and
a value bound are the same enum, as in sqlx’s Any driver.
Trait Implementations§
impl StructuralPartialEq for DoValue
Source§impl Value for DoValue
impl Value for DoValue
type Database = Do
Source§fn as_ref(&self) -> DoValueRef<'_>
fn as_ref(&self) -> DoValueRef<'_>
Get this value as a reference.
Source§fn type_info(&self) -> Cow<'_, DoTypeInfo>
fn type_info(&self) -> Cow<'_, DoTypeInfo>
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 DoValue
impl RefUnwindSafe for DoValue
impl Send for DoValue
impl Sync for DoValue
impl Unpin for DoValue
impl UnsafeUnpin for DoValue
impl UnwindSafe for DoValue
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