pub enum PostgrestErrorCode {
Show 35 variants
CouldNotConnectDatabase,
InternalConnectionError,
CouldNotConnectSchemaCache,
RequestTimedOut,
ParsingErrorQueryParameter,
FunctionOnlySupportsGetOrPost,
InvalidRequestBody,
InvalidRange,
InvalidPutRequest,
SchemaNotInConfig,
InvalidContentType,
FilterOnMissingEmbeddedResource,
LimitedUpdateDeleteWithoutOrdering,
LimitedUpdateDeleteExceededMaxRows,
InvalidResponseHeaders,
InvalidStatusCode,
UpsertPutWithLimitsOffsets,
UpsertPutPrimaryKeyMismatch,
InvalidSingularResponse,
UnsupportedHttpVerb,
CannotOrderByRelatedTable,
CannotSpreadRelatedTable,
InvalidEmbeddedResourceFilter,
InvalidRaiseErrorJson,
InvalidPreferHeader,
RelationshipNotFound,
AmbiguousEmbedding,
FunctionNotFound,
OverloadedFunctionAmbiguous,
ColumnNotFound,
JwtSecretMissing,
JwtInvalid,
AnonymousRoleDisabled,
InternalLibraryError,
Other(String),
}Expand description
Enum representing PostgREST error codes.
Variants§
CouldNotConnectDatabase
InternalConnectionError
CouldNotConnectSchemaCache
RequestTimedOut
ParsingErrorQueryParameter
FunctionOnlySupportsGetOrPost
InvalidRequestBody
InvalidRange
InvalidPutRequest
SchemaNotInConfig
InvalidContentType
FilterOnMissingEmbeddedResource
LimitedUpdateDeleteWithoutOrdering
LimitedUpdateDeleteExceededMaxRows
InvalidResponseHeaders
InvalidStatusCode
UpsertPutWithLimitsOffsets
UpsertPutPrimaryKeyMismatch
InvalidSingularResponse
UnsupportedHttpVerb
CannotOrderByRelatedTable
CannotSpreadRelatedTable
InvalidEmbeddedResourceFilter
InvalidRaiseErrorJson
InvalidPreferHeader
RelationshipNotFound
AmbiguousEmbedding
FunctionNotFound
OverloadedFunctionAmbiguous
ColumnNotFound
JwtSecretMissing
JwtInvalid
AnonymousRoleDisabled
InternalLibraryError
Other(String)
Implementations§
Trait Implementations§
Source§impl Clone for PostgrestErrorCode
impl Clone for PostgrestErrorCode
Source§fn clone(&self) -> PostgrestErrorCode
fn clone(&self) -> PostgrestErrorCode
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 PostgrestErrorCode
impl Debug for PostgrestErrorCode
Source§impl Display for PostgrestErrorCode
impl Display for PostgrestErrorCode
Source§impl Ord for PostgrestErrorCode
impl Ord for PostgrestErrorCode
Source§impl PartialEq for PostgrestErrorCode
impl PartialEq for PostgrestErrorCode
Source§impl PartialOrd for PostgrestErrorCode
impl PartialOrd for PostgrestErrorCode
impl Eq for PostgrestErrorCode
impl StructuralPartialEq for PostgrestErrorCode
Auto Trait Implementations§
impl Freeze for PostgrestErrorCode
impl RefUnwindSafe for PostgrestErrorCode
impl Send for PostgrestErrorCode
impl Sync for PostgrestErrorCode
impl Unpin for PostgrestErrorCode
impl UnwindSafe for PostgrestErrorCode
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)