Struct sqlx_core::postgres::PgValueRef
source · [−]pub struct PgValueRef<'r> { /* private fields */ }
Expand description
Implementation of ValueRef
for PostgreSQL.
Implementations
sourceimpl<'r> PgValueRef<'r>
impl<'r> PgValueRef<'r>
pub fn format(&self) -> PgValueFormat
pub fn as_bytes(&self) -> Result<&'r [u8], BoxDynError>
pub fn as_str(&self) -> Result<&'r str, BoxDynError>
Trait Implementations
sourceimpl<'r> Clone for PgValueRef<'r>
impl<'r> Clone for PgValueRef<'r>
sourcefn clone(&self) -> PgValueRef<'r>
fn clone(&self) -> PgValueRef<'r>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'r> ValueRef<'r> for PgValueRef<'r>
impl<'r> ValueRef<'r> for PgValueRef<'r>
Auto Trait Implementations
impl<'r> RefUnwindSafe for PgValueRef<'r>
impl<'r> Send for PgValueRef<'r>
impl<'r> Sync for PgValueRef<'r>
impl<'r> Unpin for PgValueRef<'r>
impl<'r> UnwindSafe for PgValueRef<'r>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more