pub enum LlmConfigError {
MissingProvider,
MissingBaseUrl,
MissingModel,
}Expand description
Error returned when building an LlmConfig without required fields.
Variants§
MissingProvider
No provider was configured.
MissingBaseUrl
No base URL was configured.
MissingModel
No model name was configured.
Trait Implementations§
Source§impl Clone for LlmConfigError
impl Clone for LlmConfigError
Source§fn clone(&self) -> LlmConfigError
fn clone(&self) -> LlmConfigError
Returns a duplicate 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 LlmConfigError
impl Debug for LlmConfigError
Source§impl Display for LlmConfigError
impl Display for LlmConfigError
Source§impl Error for LlmConfigError
impl Error for LlmConfigError
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 LlmConfigError
impl PartialEq for LlmConfigError
impl Eq for LlmConfigError
impl StructuralPartialEq for LlmConfigError
Auto Trait Implementations§
impl Freeze for LlmConfigError
impl RefUnwindSafe for LlmConfigError
impl Send for LlmConfigError
impl Sync for LlmConfigError
impl Unpin for LlmConfigError
impl UnsafeUnpin for LlmConfigError
impl UnwindSafe for LlmConfigError
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