pub enum ExcelError {
Io(String),
Zip(String),
Xml(String),
NotXlsx(String),
SheetNotFound(String),
MissingColumns(Vec<String>),
InvalidCell {
row: u32,
column: String,
message: String,
},
InvalidRow {
row: u32,
messages: Vec<String>,
},
Unsupported(String),
Sink(String),
Other(String),
}Expand description
Excel 工具错误
Variants§
Io(String)
文件 / IO 错误
Zip(String)
xlsx 容器(zip)错误
Xml(String)
XML 解析错误
NotXlsx(String)
不是合法的 xlsx 文件
SheetNotFound(String)
找不到指定工作表
MissingColumns(Vec<String>)
表头缺少必填列(动态表头适配失败)
InvalidCell
单元格级错误
InvalidRow
行级错误(同一行多列错误)
Unsupported(String)
不支持的能力(例如加密 xlsx、非 deflate 压缩)
Sink(String)
批量落库失败
Other(String)
其它
Implementations§
Trait Implementations§
Source§impl Clone for ExcelError
impl Clone for ExcelError
Source§impl Debug for ExcelError
impl Debug for ExcelError
Source§impl Display for ExcelError
impl Display for ExcelError
Source§impl Error for ExcelError
impl Error for ExcelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<Error> for ExcelError
impl From<Error> for ExcelError
Source§impl From<Error> for ExcelError
impl From<Error> for ExcelError
Source§impl From<Error> for ExcelError
impl From<Error> for ExcelError
Source§impl From<ParseError> for ExcelError
impl From<ParseError> for ExcelError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<XlsxError> for ExcelError
impl From<XlsxError> for ExcelError
Auto Trait Implementations§
impl Freeze for ExcelError
impl RefUnwindSafe for ExcelError
impl Send for ExcelError
impl Sync for ExcelError
impl Unpin for ExcelError
impl UnsafeUnpin for ExcelError
impl UnwindSafe for ExcelError
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