pub struct FileParseError {
pub format: &'static str,
pub message: Box<str>,
pub line: Option<usize>,
pub column: Option<usize>,
}Expand description
Structured config/spec deserialization failure metadata used for user-facing diagnostics.
Fields§
§format: &'static strParser format name, such as TOML or YAML.
message: Box<str>Human-readable parser message.
line: Option<usize>Optional 1-based line number.
column: Option<usize>Optional 1-based column number.
Trait Implementations§
Source§impl Clone for FileParseError
impl Clone for FileParseError
Source§fn clone(&self) -> FileParseError
fn clone(&self) -> FileParseError
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FileParseError
impl RefUnwindSafe for FileParseError
impl Send for FileParseError
impl Sync for FileParseError
impl Unpin for FileParseError
impl UnsafeUnpin for FileParseError
impl UnwindSafe for FileParseError
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