Struct prql_compiler::ErrorMessage
source · pub struct ErrorMessage {
pub kind: MessageKind,
pub code: Option<String>,
pub reason: String,
pub hints: Vec<String>,
pub span: Option<Span>,
pub display: Option<String>,
pub location: Option<SourceLocation>,
}
Fields§
§kind: MessageKind
Message kind. Currently only Error is implemented.
code: Option<String>
Machine-readable identifier of the error
reason: String
Plain text of the error
hints: Vec<String>
A list of suggestions of how to fix the error
span: Option<Span>
Character offset of error origin within a source file
display: Option<String>
Annotated code, containing cause and hints.
location: Option<SourceLocation>
Line and column number of error origin within a source file
Trait Implementations§
source§impl Clone for ErrorMessage
impl Clone for ErrorMessage
source§fn clone(&self) -> ErrorMessage
fn clone(&self) -> ErrorMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ErrorMessage
impl Debug for ErrorMessage
source§impl Display for ErrorMessage
impl Display for ErrorMessage
source§impl From<ErrorMessage> for ErrorMessages
impl From<ErrorMessage> for ErrorMessages
source§fn from(e: ErrorMessage) -> ErrorMessages
fn from(e: ErrorMessage) -> ErrorMessages
Converts to this type from the input type.
source§impl Serialize for ErrorMessage
impl Serialize for ErrorMessage
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ErrorMessage
impl Send for ErrorMessage
impl Sync for ErrorMessage
impl Unpin for ErrorMessage
impl UnwindSafe for ErrorMessage
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