Enum surrealml_core::errors::error::SurrealErrorStatus
source · pub enum SurrealErrorStatus {
NotFound,
Forbidden,
Unknown,
BadRequest,
Conflict,
Unauthorized,
}
Expand description
The status of the custom error.
§Fields
NotFound
- The request was not found.Forbidden
- You are forbidden to access.Unknown
- An unknown internal error occurred.BadRequest
- The request was bad.Conflict
- The request conflicted with the current state of the server.
Variants§
Trait Implementations§
source§impl Debug for SurrealErrorStatus
impl Debug for SurrealErrorStatus
source§impl<'de> Deserialize<'de> for SurrealErrorStatus
impl<'de> Deserialize<'de> for SurrealErrorStatus
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SurrealErrorStatus
impl Display for SurrealErrorStatus
source§impl Error for SurrealErrorStatus
impl Error for SurrealErrorStatus
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for SurrealErrorStatus
impl PartialEq for SurrealErrorStatus
source§fn eq(&self, other: &SurrealErrorStatus) -> bool
fn eq(&self, other: &SurrealErrorStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SurrealErrorStatus
impl Serialize for SurrealErrorStatus
impl StructuralPartialEq for SurrealErrorStatus
Auto Trait Implementations§
impl Freeze for SurrealErrorStatus
impl RefUnwindSafe for SurrealErrorStatus
impl Send for SurrealErrorStatus
impl Sync for SurrealErrorStatus
impl Unpin for SurrealErrorStatus
impl UnwindSafe for SurrealErrorStatus
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