pub struct PartialOutput<T> {
pub value: JsonValue,
pub typed: Option<T>,
}Expand description
A partial structured output published while streaming.
Fields§
§value: JsonValueThe repaired partial JSON value.
typed: Option<T>The typed value, when the partial JSON already satisfies the schema.
Trait Implementations§
Source§impl<T: Clone> Clone for PartialOutput<T>
impl<T: Clone> Clone for PartialOutput<T>
Source§fn clone(&self) -> PartialOutput<T>
fn clone(&self) -> PartialOutput<T>
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<T: Debug> Debug for PartialOutput<T>
impl<T: Debug> Debug for PartialOutput<T>
Source§impl<T: PartialEq> PartialEq for PartialOutput<T>
impl<T: PartialEq> PartialEq for PartialOutput<T>
impl<T: PartialEq> StructuralPartialEq for PartialOutput<T>
Auto Trait Implementations§
impl<T> Freeze for PartialOutput<T>
impl<T> RefUnwindSafe for PartialOutput<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for PartialOutput<T>
impl<T> Sync for PartialOutput<T>
impl<T> Unpin for PartialOutput<T>
impl<T> UnsafeUnpin for PartialOutput<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for PartialOutput<T>where
Option<T>: UnwindSafe,
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