Enum sqlx::postgres::PgErrorPosition
source · pub enum PgErrorPosition<'a> {
Original(usize),
Internal {
position: usize,
query: &'a str,
},
}
Available on crate feature
postgres
only.Variants§
Original(usize)
A position (in characters) into the original query.
Internal
Fields
A position into the internally-generated query.
Trait Implementations§
source§impl<'a> Debug for PgErrorPosition<'a>
impl<'a> Debug for PgErrorPosition<'a>
source§impl<'a> PartialEq<PgErrorPosition<'a>> for PgErrorPosition<'a>
impl<'a> PartialEq<PgErrorPosition<'a>> for PgErrorPosition<'a>
source§fn eq(&self, other: &PgErrorPosition<'a>) -> bool
fn eq(&self, other: &PgErrorPosition<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for PgErrorPosition<'a>
impl<'a> StructuralEq for PgErrorPosition<'a>
impl<'a> StructuralPartialEq for PgErrorPosition<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PgErrorPosition<'a>
impl<'a> Send for PgErrorPosition<'a>
impl<'a> Sync for PgErrorPosition<'a>
impl<'a> Unpin for PgErrorPosition<'a>
impl<'a> UnwindSafe for PgErrorPosition<'a>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.