pub struct SpgValue { /* private fields */ }Expand description
Owned form of an SPG cell as it comes back from a query.
Wraps spg_embedded::Value + the column’s static
SpgTypeInfo so the decode path can drive sqlx’s type-
compatibility check (Decode::compatible).
Implementations§
Source§impl SpgValue
impl SpgValue
Sourcepub fn new(inner: EngineValue, type_info: SpgTypeInfo) -> Self
pub fn new(inner: EngineValue, type_info: SpgTypeInfo) -> Self
Wrap an engine value with its column type info.
Sourcepub const fn engine(&self) -> &EngineValue
pub const fn engine(&self) -> &EngineValue
Borrow the underlying engine value.
Trait Implementations§
Source§impl Value for SpgValue
impl Value for SpgValue
type Database = Spg
Source§fn as_ref(&self) -> SpgValueRef<'_>
fn as_ref(&self) -> SpgValueRef<'_>
Get this value as a reference.
Source§fn type_info(&self) -> Cow<'_, SpgTypeInfo>
fn type_info(&self) -> Cow<'_, SpgTypeInfo>
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 SpgValue
impl RefUnwindSafe for SpgValue
impl Send for SpgValue
impl Sync for SpgValue
impl Unpin for SpgValue
impl UnsafeUnpin for SpgValue
impl UnwindSafe for SpgValue
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