pub enum TemplateError {
PathNotFound(String),
PathContainsSeq(String),
PathContainsMap(String),
PathContainsUnknownType(String),
PathContainsUnknownErrorType(String),
FunctionNotFound(String),
FunctionError(FunctionError),
SerializationError,
UnableConvertBoolToString,
UnableConvertOptionToString,
UnableConvertFloatToString,
VecToUtf8ConvertationError(FromUtf8Error),
}Expand description
Template execution error.
Variants§
PathNotFound(String)
Field in path not found.
PathContainsSeq(String)
Path contains sequence.
PathContainsMap(String)
Path contains map.
PathContainsUnknownType(String)
Path contains unknown type.
PathContainsUnknownErrorType(String)
Path contains error type.
FunctionNotFound(String)
Function not found.
FunctionError(FunctionError)
Function execution error.
SerializationError
Structure serialization error.
UnableConvertBoolToString
Unable convert boolean to string.
UnableConvertOptionToString
Unable convert option to string.
UnableConvertFloatToString
Unable convert float to string.
VecToUtf8ConvertationError(FromUtf8Error)
Unable convert vec<u8> to utf-8 string.
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<FunctionError> for TemplateError
impl From<FunctionError> for TemplateError
Source§fn from(error: FunctionError) -> Self
fn from(error: FunctionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TemplateError
impl RefUnwindSafe for TemplateError
impl Send for TemplateError
impl Sync for TemplateError
impl Unpin for TemplateError
impl UnsafeUnpin 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