pub enum TemplateError {
NotFound(String),
MissingPlaceholder(String),
InvalidSyntax {
line: usize,
message: String,
},
RenderError(String),
ValidationFailed(String),
IoError(Error),
}Expand description
Errors that can occur during template operations
Variants§
NotFound(String)
Template not found
MissingPlaceholder(String)
Missing required placeholder
InvalidSyntax
Invalid template syntax
Fields
RenderError(String)
Template rendering error
ValidationFailed(String)
Validation failed
IoError(Error)
IO error
Trait Implementations§
Source§impl Debug for TemplateError
impl Debug for TemplateError
Source§impl Display for TemplateError
impl Display for TemplateError
Source§impl Error for TemplateError
impl Error for TemplateError
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 TemplateError
impl From<Error> for TemplateError
Source§impl PartialEq for TemplateError
impl PartialEq for TemplateError
Auto Trait Implementations§
impl Freeze for TemplateError
impl !RefUnwindSafe for TemplateError
impl Send for TemplateError
impl Sync for TemplateError
impl Unpin for TemplateError
impl !UnwindSafe for TemplateError
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