Enum sqlx_core::postgres::PgErrorPosition
source · [−]Variants
Original(usize)
A position (in characters) into the original query.
Internal
Fields
position: usize
The position in characters.
query: &'a str
The text of a failed internally-generated command. This could be, for example, the SQL query issued by a PL/pgSQL function.
A position into the internally-generated query.
Trait Implementations
sourceimpl<'a> Debug for PgErrorPosition<'a>
impl<'a> Debug for PgErrorPosition<'a>
sourceimpl<'a> PartialEq<PgErrorPosition<'a>> for PgErrorPosition<'a>
impl<'a> PartialEq<PgErrorPosition<'a>> for PgErrorPosition<'a>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PgErrorPosition<'a>) -> bool
fn ne(&self, other: &PgErrorPosition<'a>) -> bool
This method tests for !=
.
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
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.