Struct biscuit_auth::parser::Error
source · pub struct Error<'a> {
pub input: &'a str,
pub code: ErrorKind,
pub message: Option<String>,
}Fields§
§input: &'a str§code: ErrorKind§message: Option<String>Trait Implementations§
source§impl<'a> Error for Error<'a>
impl<'a> Error for Error<'a>
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()
source§impl<'a, E> FromExternalError<&'a str, E> for Error<'a>
impl<'a, E> FromExternalError<&'a str, E> for Error<'a>
source§impl<'a> ParseError<&'a str> for Error<'a>
impl<'a> ParseError<&'a str> for Error<'a>
source§fn from_error_kind(input: &'a str, kind: ErrorKind) -> Error<'a>
fn from_error_kind(input: &'a str, kind: ErrorKind) -> Error<'a>
Creates an error from the input position and an ErrorKind
source§fn append(_: &'a str, _: ErrorKind, other: Error<'a>) -> Error<'a>
fn append(_: &'a str, _: ErrorKind, other: Error<'a>) -> Error<'a>
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way