pub enum RefusalFallbackScope {
Session,
Local,
Unknown(String),
}Expand description
Scope of a refusal-fallback model swap, carried by
ModelRefusalFallbackMessage::scope. Open — new scopes may ship on the
wire ahead of schema updates.
Variants§
Session
The main thread fell back; the session model is swapped.
Local
A subagent / side-question / background fork fell back; only that response used the fallback model, the session model is unchanged.
Unknown(String)
A scope not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for RefusalFallbackScope
impl Clone for RefusalFallbackScope
Source§fn clone(&self) -> RefusalFallbackScope
fn clone(&self) -> RefusalFallbackScope
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 moreSource§impl Debug for RefusalFallbackScope
impl Debug for RefusalFallbackScope
Source§impl<'de> Deserialize<'de> for RefusalFallbackScope
impl<'de> Deserialize<'de> for RefusalFallbackScope
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RefusalFallbackScope
impl Display for RefusalFallbackScope
impl Eq for RefusalFallbackScope
Source§impl From<&str> for RefusalFallbackScope
impl From<&str> for RefusalFallbackScope
Source§impl Hash for RefusalFallbackScope
impl Hash for RefusalFallbackScope
Source§impl PartialEq for RefusalFallbackScope
impl PartialEq for RefusalFallbackScope
Source§impl Serialize for RefusalFallbackScope
impl Serialize for RefusalFallbackScope
impl StructuralPartialEq for RefusalFallbackScope
Auto Trait Implementations§
impl Freeze for RefusalFallbackScope
impl RefUnwindSafe for RefusalFallbackScope
impl Send for RefusalFallbackScope
impl Sync for RefusalFallbackScope
impl Unpin for RefusalFallbackScope
impl UnsafeUnpin for RefusalFallbackScope
impl UnwindSafe for RefusalFallbackScope
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