#[non_exhaustive]pub enum RenderErrorReason {
Show 22 variants
TemplateNotFound(String),
TemplateError(TemplateError),
MissingVariable(Option<String>),
PartialNotFound(String),
HelperNotFound(String),
ParamNotFoundForIndex(&'static str, usize),
ParamNotFoundForName(&'static str, String),
ParamTypeMismatchForName(&'static str, String, String),
HashTypeMismatchForName(&'static str, String, String),
DecoratorNotFound(String),
CannotIncludeSelf,
InvalidLoggingLevel(String),
InvalidParamType(&'static str),
BlockContentRequired,
InvalidJsonPath(String),
InvalidJsonIndex(String),
SerdeError(Error),
IOError(Error),
Utf8Error(FromUtf8Error),
NestedError(Box<dyn StdError + Send + Sync + 'static>),
Unimplemented,
Other(String),
}
Expand description
Template rendering error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TemplateNotFound(String)
TemplateError(TemplateError)
MissingVariable(Option<String>)
PartialNotFound(String)
HelperNotFound(String)
ParamNotFoundForIndex(&'static str, usize)
ParamNotFoundForName(&'static str, String)
ParamTypeMismatchForName(&'static str, String, String)
HashTypeMismatchForName(&'static str, String, String)
DecoratorNotFound(String)
CannotIncludeSelf
InvalidLoggingLevel(String)
InvalidParamType(&'static str)
BlockContentRequired
InvalidJsonPath(String)
InvalidJsonIndex(String)
SerdeError(Error)
IOError(Error)
Utf8Error(FromUtf8Error)
NestedError(Box<dyn StdError + Send + Sync + 'static>)
Unimplemented
Other(String)
Trait Implementations§
Source§impl Debug for RenderErrorReason
impl Debug for RenderErrorReason
Source§impl Display for RenderErrorReason
impl Display for RenderErrorReason
Source§impl Error for RenderErrorReason
impl Error for RenderErrorReason
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 RenderErrorReason
impl From<Error> for RenderErrorReason
Source§fn from(source: SerdeError) -> Self
fn from(source: SerdeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for RenderErrorReason
impl From<Error> for RenderErrorReason
Source§impl From<FromUtf8Error> for RenderErrorReason
impl From<FromUtf8Error> for RenderErrorReason
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<RenderError> for RenderErrorReason
impl From<RenderError> for RenderErrorReason
Source§fn from(e: RenderError) -> Self
fn from(e: RenderError) -> Self
Converts to this type from the input type.
Source§impl From<RenderErrorReason> for RenderError
impl From<RenderErrorReason> for RenderError
Source§fn from(e: RenderErrorReason) -> RenderError
fn from(e: RenderErrorReason) -> RenderError
Converts to this type from the input type.
Source§impl From<TemplateError> for RenderErrorReason
impl From<TemplateError> for RenderErrorReason
Source§fn from(source: TemplateError) -> Self
fn from(source: TemplateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RenderErrorReason
impl !RefUnwindSafe for RenderErrorReason
impl Send for RenderErrorReason
impl Sync for RenderErrorReason
impl Unpin for RenderErrorReason
impl !UnwindSafe for RenderErrorReason
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