pub enum Extracted {
Complete(Value),
Truncated(Value),
}Expand description
What extract_json returns when it can pull a JSON value out of the model
output.
Variants§
Complete(Value)
Parsed cleanly: the response is a complete JSON document as far as we can tell.
Truncated(Value)
Parsed only after closing unbalanced braces/brackets - the response
was cut off, so the Value is a PREFIX of what the model meant to
say. The caller must decide whether to trust a partial result.
Trait Implementations§
impl Eq for Extracted
impl StructuralPartialEq for Extracted
Auto Trait Implementations§
impl Freeze for Extracted
impl RefUnwindSafe for Extracted
impl Send for Extracted
impl Sync for Extracted
impl Unpin for Extracted
impl UnsafeUnpin for Extracted
impl UnwindSafe for Extracted
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.