pub enum ChatHistoryError {
ConversationNotFound(i64),
MessageNotFound(i64),
InvalidRole(String),
Database(String),
}Expand description
Errors that can occur in chat history operations.
Variants§
Trait Implementations§
Source§impl Debug for ChatHistoryError
impl Debug for ChatHistoryError
Source§impl Display for ChatHistoryError
impl Display for ChatHistoryError
Source§impl Error for ChatHistoryError
impl Error for ChatHistoryError
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()
Auto Trait Implementations§
impl Freeze for ChatHistoryError
impl RefUnwindSafe for ChatHistoryError
impl Send for ChatHistoryError
impl Sync for ChatHistoryError
impl Unpin for ChatHistoryError
impl UnwindSafe for ChatHistoryError
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