pub struct ParseResult {
pub invoices: Vec<Invoice>,
pub source_file: Option<String>,
pub parse_warnings: Vec<String>,
}Expand description
解析结果结构体
封装解析操作的输出,支持单个或多个发票,并包含警告信息
Fields§
§invoices: Vec<Invoice>解析出的发票列表
source_file: Option<String>源文件路径
parse_warnings: Vec<String>解析过程中的警告信息
Implementations§
Source§impl ParseResult
impl ParseResult
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
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 moreSource§impl Debug for ParseResult
impl Debug for ParseResult
Source§impl<'de> Deserialize<'de> for ParseResult
impl<'de> Deserialize<'de> for ParseResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnwindSafe for ParseResult
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