pub struct StringTemplateError(/* private fields */);
Expand description
An error that can occur when formatting a prompt template. This is a wrapper around the underlying error type, as the underlying error type doesn’t have a stable API.
Trait Implementations§
Source§impl Clone for StringTemplateError
impl Clone for StringTemplateError
Source§fn clone(&self) -> StringTemplateError
fn clone(&self) -> StringTemplateError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StringTemplateError
impl Debug for StringTemplateError
Source§impl Display for StringTemplateError
impl Display for StringTemplateError
Source§impl Error for StringTemplateError
impl Error for StringTemplateError
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<StringTemplateError> for Error
impl From<StringTemplateError> for Error
Source§fn from(source: StringTemplateError) -> Self
fn from(source: StringTemplateError) -> Self
Converts to this type from the input type.
Source§impl From<StringTemplateError> for FormatAndExecuteError
impl From<StringTemplateError> for FormatAndExecuteError
Source§fn from(source: StringTemplateError) -> Self
fn from(source: StringTemplateError) -> Self
Converts to this type from the input type.
Source§impl From<StringTemplateError> for MapReduceChainError
impl From<StringTemplateError> for MapReduceChainError
Source§fn from(source: StringTemplateError) -> Self
fn from(source: StringTemplateError) -> Self
Converts to this type from the input type.
Source§impl From<StringTemplateError> for PromptTokensError
impl From<StringTemplateError> for PromptTokensError
Source§fn from(source: StringTemplateError) -> Self
fn from(source: StringTemplateError) -> Self
Converts to this type from the input type.
Source§impl<T> From<StringTemplateError> for SelfAskWithSearchAgentError<T>
impl<T> From<StringTemplateError> for SelfAskWithSearchAgentError<T>
Source§fn from(source: StringTemplateError) -> Self
fn from(source: StringTemplateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StringTemplateError
impl RefUnwindSafe for StringTemplateError
impl Send for StringTemplateError
impl Sync for StringTemplateError
impl Unpin for StringTemplateError
impl UnwindSafe for StringTemplateError
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