pub struct FallbackBlock {
pub from: FallbackModel,
pub to: FallbackModel,
}Expand description
Model fallback content block.
Marks the point in content where the response switched from one model
to another (e.g. when the primary model is overloaded). Blocks after this
marker were produced by the to model.
Fields§
§from: FallbackModelThe model the response is switching away from.
to: FallbackModelThe model now serving the response.
Trait Implementations§
Source§impl Clone for FallbackBlock
impl Clone for FallbackBlock
Source§fn clone(&self) -> FallbackBlock
fn clone(&self) -> FallbackBlock
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 FallbackBlock
impl Debug for FallbackBlock
Source§impl<'de> Deserialize<'de> for FallbackBlock
impl<'de> Deserialize<'de> for FallbackBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FallbackBlock
Source§impl PartialEq for FallbackBlock
impl PartialEq for FallbackBlock
Source§fn eq(&self, other: &FallbackBlock) -> bool
fn eq(&self, other: &FallbackBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FallbackBlock
impl Serialize for FallbackBlock
impl StructuralPartialEq for FallbackBlock
Auto Trait Implementations§
impl Freeze for FallbackBlock
impl RefUnwindSafe for FallbackBlock
impl Send for FallbackBlock
impl Sync for FallbackBlock
impl Unpin for FallbackBlock
impl UnsafeUnpin for FallbackBlock
impl UnwindSafe for FallbackBlock
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