pub enum FallbackAction {
Retry,
RetryWithMessages(Vec<Message>),
SwitchProvider(String),
Complete(ChatResponse),
Abort,
}Expand description
Fallback 动作
Variants§
Trait Implementations§
Source§impl Clone for FallbackAction
impl Clone for FallbackAction
Source§fn clone(&self) -> FallbackAction
fn clone(&self) -> FallbackAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FallbackAction
impl RefUnwindSafe for FallbackAction
impl Send for FallbackAction
impl Sync for FallbackAction
impl Unpin for FallbackAction
impl UnsafeUnpin for FallbackAction
impl UnwindSafe for FallbackAction
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