pub enum PromptSpecError {
Neither,
Both,
}Expand description
Why an agent’s prompt configuration is unusable.
Variants§
Neither
Neither prompt nor prompt_file was given.
Both
Both forms were given, so which one applies is undefined.
Trait Implementations§
Source§impl Clone for PromptSpecError
impl Clone for PromptSpecError
impl Copy for PromptSpecError
Source§impl Debug for PromptSpecError
impl Debug for PromptSpecError
Source§impl Display for PromptSpecError
impl Display for PromptSpecError
impl Eq for PromptSpecError
Source§impl Error for PromptSpecError
impl Error for PromptSpecError
1.30.0 · 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 PartialEq for PromptSpecError
impl PartialEq for PromptSpecError
impl StructuralPartialEq for PromptSpecError
Auto Trait Implementations§
impl Freeze for PromptSpecError
impl RefUnwindSafe for PromptSpecError
impl Send for PromptSpecError
impl Sync for PromptSpecError
impl Unpin for PromptSpecError
impl UnsafeUnpin for PromptSpecError
impl UnwindSafe for PromptSpecError
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