Struct PublicSqlRejection
pub struct PublicSqlRejection {
pub status: u16,
pub code: &'static str,
pub message: String,
pub retry_scope: Option<&'static str>,
pub transaction_state: Option<&'static str>,
}Expand description
A transport-neutral public SQL parse/validation failure. The host supplies only its concrete HTTP response wrapper; status, typed code, retry scope, and transaction-state semantics are fixed here.
Fields§
§status: u16§code: &'static str§message: String§retry_scope: Option<&'static str>§transaction_state: Option<&'static str>Trait Implementations§
§impl Clone for PublicSqlRejection
impl Clone for PublicSqlRejection
§fn clone(&self) -> PublicSqlRejection
fn clone(&self) -> PublicSqlRejection
Returns a duplicate 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 more§impl Debug for PublicSqlRejection
impl Debug for PublicSqlRejection
§impl PartialEq for PublicSqlRejection
impl PartialEq for PublicSqlRejection
impl Eq for PublicSqlRejection
impl StructuralPartialEq for PublicSqlRejection
Auto Trait Implementations§
impl Freeze for PublicSqlRejection
impl RefUnwindSafe for PublicSqlRejection
impl Send for PublicSqlRejection
impl Sync for PublicSqlRejection
impl Unpin for PublicSqlRejection
impl UnsafeUnpin for PublicSqlRejection
impl UnwindSafe for PublicSqlRejection
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.