Struct surrealml_core::errors::error::SurrealError
source · 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: SurrealErrorStatus
Implementations§
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)>
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 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