pub struct PgValue { /* private fields */ }
This is supported on crate feature
postgres
only.Expand description
Implementation of Value
for PostgreSQL.
Trait Implementations
sourceimpl Value for PgValue
impl Value for PgValue
type Database = Postgres
sourcepub fn as_ref(&self) -> PgValueRef<'_>
pub fn as_ref(&self) -> PgValueRef<'_>
Get this value as a reference.
sourcepub fn type_info(&self) -> Cow<'_, PgTypeInfo>
pub fn type_info(&self) -> Cow<'_, PgTypeInfo>
Get the type information for this value.
sourcefn decode<'r, T>(&'r self) -> T where
T: Decode<'r, Self::Database> + Type<Self::Database>,
fn decode<'r, T>(&'r self) -> T where
T: Decode<'r, Self::Database> + Type<Self::Database>,
Decode this single value into the requested type. Read more
sourcefn decode_unchecked<'r, T>(&'r self) -> T where
T: Decode<'r, Self::Database>,
fn decode_unchecked<'r, T>(&'r self) -> T where
T: Decode<'r, Self::Database>,
Decode this single value into the requested type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PgValue
impl Send for PgValue
impl Sync for PgValue
impl Unpin for PgValue
impl UnwindSafe for PgValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more