Enum sqlx_postgres::PgErrorPosition
source · pub enum PgErrorPosition<'a> {
Original(usize),
Internal {
position: usize,
query: &'a str,
},
}
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 for PgErrorPosition<'a>
impl<'a> PartialEq 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> StructuralPartialEq for PgErrorPosition<'a>
Auto Trait Implementations§
impl<'a> Freeze for PgErrorPosition<'a>
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<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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.