pub struct SurrealError {
pub message: String,
pub status: SurrealErrorStatus,
}Expand description
The custom error that the web framework will construct into a HTTP response.
§Fields
message- The message of the error.status- The status of the error.
Fields§
§message: String§status: SurrealErrorStatusImplementations§
Source§impl SurrealError
impl SurrealError
Trait Implementations§
Source§impl Debug for SurrealError
impl Debug for SurrealError
Source§impl<'de> Deserialize<'de> for SurrealError
impl<'de> Deserialize<'de> for SurrealError
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 SurrealError
impl Display for SurrealError
Source§impl Error for SurrealError
impl Error for SurrealError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for SurrealError
impl RefUnwindSafe for SurrealError
impl Send for SurrealError
impl Sync for SurrealError
impl Unpin for SurrealError
impl UnsafeUnpin for SurrealError
impl UnwindSafe for SurrealError
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