pub struct InvalidPromptError {
pub message: String,
pub prompt: Option<JsonValue>,
pub cause: Option<BoxError>,
}Expand description
The prompt cannot be used with this provider.
Fields§
§message: StringWhat is wrong with the prompt.
prompt: Option<JsonValue>The offending prompt (or part of it) as JSON, if available.
cause: Option<BoxError>Underlying cause.
Implementations§
Trait Implementations§
Source§impl Debug for InvalidPromptError
impl Debug for InvalidPromptError
Source§impl Display for InvalidPromptError
impl Display for InvalidPromptError
Source§impl Error for InvalidPromptError
impl Error for InvalidPromptError
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<Box<InvalidPromptError>> for ProviderError
impl From<Box<InvalidPromptError>> for ProviderError
Source§fn from(error: Box<InvalidPromptError>) -> Self
fn from(error: Box<InvalidPromptError>) -> Self
Converts to this type from the input type.
Source§impl From<InvalidPromptError> for ProviderError
impl From<InvalidPromptError> for ProviderError
Source§fn from(error: InvalidPromptError) -> Self
fn from(error: InvalidPromptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InvalidPromptError
impl !UnwindSafe for InvalidPromptError
impl Freeze for InvalidPromptError
impl Send for InvalidPromptError
impl Sync for InvalidPromptError
impl Unpin for InvalidPromptError
impl UnsafeUnpin for InvalidPromptError
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