Struct prql_compiler::ErrorMessage
source · pub struct ErrorMessage {
pub reason: String,
pub hint: Option<String>,
pub span: Option<Span>,
pub display: Option<String>,
pub location: Option<SourceLocation>,
}Fields§
§reason: StringPlain text of the error
hint: Option<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) -> Self
fn from(e: ErrorMessage) -> Self
Converts to this type from the input type.