pub struct TypeError {
pub sqlstate: SqlState,
pub message: String,
pub detail: Option<String>,
pub hint: Option<String>,
pub context: Option<String>,
}Expand description
A value that a type cannot read. The text is the text of PostgreSQL for the same input, so the server can send it in ErrorResponse as it is.
Fields§
§sqlstate: SqlState§message: String§detail: Option<String>§hint: Option<String>§context: Option<String>The context of PostgreSQL, such as the place in a json value.
Trait Implementations§
impl Eq for TypeError
Source§impl Error for TypeError
impl Error for TypeError
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()
Source§impl From<TypeError> for Error
The error with the same SQLSTATE, message, detail and hint. rupg_common::Error has no context line yet, so the context is lost.
impl From<TypeError> for Error
The error with the same SQLSTATE, message, detail and hint. rupg_common::Error has no context line yet, so the context is lost.
impl StructuralPartialEq for TypeError
Auto Trait Implementations§
impl Freeze for TypeError
impl RefUnwindSafe for TypeError
impl Send for TypeError
impl Sync for TypeError
impl Unpin for TypeError
impl UnsafeUnpin for TypeError
impl UnwindSafe for TypeError
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