Struct puff_rs::python::postgres::PythonSqlValue
source · pub struct PythonSqlValue(_);
Implementations
sourceimpl PythonSqlValue
impl PythonSqlValue
pub fn new(value: PyObject) -> PythonSqlValue
Trait Implementations
sourceimpl Clone for PythonSqlValue
impl Clone for PythonSqlValue
sourcefn clone(&self) -> PythonSqlValue
fn clone(&self) -> PythonSqlValue
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 moresourceimpl Debug for PythonSqlValue
impl Debug for PythonSqlValue
sourceimpl ToSql for PythonSqlValue
impl ToSql for PythonSqlValue
sourcefn to_sql(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
fn to_sql(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
Self: Sized,
Converts the value of
self
into the binary format of the specified
Postgres Type
, appending it to out
. Read moresourcefn accepts(ty: &Type) -> boolwhere
Self: Sized,
fn accepts(ty: &Type) -> boolwhere
Self: Sized,
Determines if a value of this type can be converted to the specified
Postgres
Type
. Read moresourcefn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
An adaptor method used internally by Rust-Postgres. Read more
sourcefn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
Auto Trait Implementations
impl !RefUnwindSafe for PythonSqlValue
impl Send for PythonSqlValue
impl Sync for PythonSqlValue
impl Unpin for PythonSqlValue
impl UnwindSafe for PythonSqlValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
sourcefn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
Returns a reference to
self
as a ToSql
trait object.