pub enum DocxHandlebarsError {
Io(Error),
Zip(ZipError),
Xml(Error),
Template(TemplateError),
Render(RenderError),
Json(Error),
Utf8(Utf8Error),
DocumentFormat(String),
TemplateNotLoaded,
UnsupportedFeature(String),
Custom(String),
}Expand description
docx-handlebars 库的错误类型
Variants§
Io(Error)
Zip(ZipError)
Xml(Error)
Template(TemplateError)
Render(RenderError)
Json(Error)
Utf8(Utf8Error)
DocumentFormat(String)
TemplateNotLoaded
UnsupportedFeature(String)
Custom(String)
Implementations§
Trait Implementations§
Source§impl Debug for DocxHandlebarsError
impl Debug for DocxHandlebarsError
Source§impl Display for DocxHandlebarsError
impl Display for DocxHandlebarsError
Source§impl Error for DocxHandlebarsError
impl Error for DocxHandlebarsError
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 DocxHandlebarsError
impl From<Error> for DocxHandlebarsError
Source§impl From<Error> for DocxHandlebarsError
impl From<Error> for DocxHandlebarsError
Source§impl From<Error> for DocxHandlebarsError
impl From<Error> for DocxHandlebarsError
Source§impl From<RenderError> for DocxHandlebarsError
impl From<RenderError> for DocxHandlebarsError
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Source§impl From<TemplateError> for DocxHandlebarsError
impl From<TemplateError> for DocxHandlebarsError
Source§fn from(source: TemplateError) -> Self
fn from(source: TemplateError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for DocxHandlebarsError
impl From<Utf8Error> for DocxHandlebarsError
Auto Trait Implementations§
impl Freeze for DocxHandlebarsError
impl !RefUnwindSafe for DocxHandlebarsError
impl Send for DocxHandlebarsError
impl Sync for DocxHandlebarsError
impl Unpin for DocxHandlebarsError
impl !UnwindSafe for DocxHandlebarsError
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