Struct sqlx_postgres::PgValueRef
source · pub struct PgValueRef<'r> { /* private fields */ }
Expand description
Implementation of ValueRef
for PostgreSQL.
Implementations§
source§impl<'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§
source§impl<'r> Clone for PgValueRef<'r>
impl<'r> Clone for PgValueRef<'r>
source§fn clone(&self) -> PgValueRef<'r>
fn clone(&self) -> PgValueRef<'r>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'r> ValueRef<'r> for PgValueRef<'r>
impl<'r> ValueRef<'r> for PgValueRef<'r>
Auto Trait Implementations§
impl<'r> Freeze for PgValueRef<'r>
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§
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