pub struct PostgrestError {
pub code: PostgrestErrorCode,
pub message: String,
pub details: Option<String>,
pub hint: Option<String>,
}Expand description
Represents an error returned by PostgREST.
Fields§
§code: PostgrestErrorCode§message: String§details: Option<String>§hint: Option<String>Implementations§
Source§impl PostgrestError
impl PostgrestError
pub fn from_response(resp: ErrorResponse) -> Self
pub const fn http_status_code(&self) -> u16
Trait Implementations§
Source§impl Clone for PostgrestError
impl Clone for PostgrestError
Source§fn clone(&self) -> PostgrestError
fn clone(&self) -> PostgrestError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgrestError
impl Debug for PostgrestError
Source§impl Ord for PostgrestError
impl Ord for PostgrestError
Source§impl PartialEq for PostgrestError
impl PartialEq for PostgrestError
Source§impl PartialOrd for PostgrestError
impl PartialOrd for PostgrestError
impl Eq for PostgrestError
impl StructuralPartialEq for PostgrestError
Auto Trait Implementations§
impl Freeze for PostgrestError
impl RefUnwindSafe for PostgrestError
impl Send for PostgrestError
impl Sync for PostgrestError
impl Unpin for PostgrestError
impl UnwindSafe for PostgrestError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)