Struct sqlx_core::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> From<PgValueRef<'r>> for AnyValueRef<'r>
impl<'r> From<PgValueRef<'r>> for AnyValueRef<'r>
source§fn from(value: PgValueRef<'r>) -> Self
fn from(value: PgValueRef<'r>) -> Self
Converts to this type from the input type.