pub struct ParseErrorRecord {
pub file_path: String,
pub error_message: String,
pub raw_content: Option<String>,
pub line_number: Option<usize>,
}Expand description
解析错误记录
Fields§
§file_path: String错误发生的文件路径
error_message: String错误原因/描述
raw_content: Option<String>原始数据内容(导致解析失败的行或片段)
line_number: Option<usize>行号(如果适用)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParseErrorRecord
impl RefUnwindSafe for ParseErrorRecord
impl Send for ParseErrorRecord
impl Sync for ParseErrorRecord
impl Unpin for ParseErrorRecord
impl UnsafeUnpin for ParseErrorRecord
impl UnwindSafe for ParseErrorRecord
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more