pub enum StructuredStreamUpdate {
Partial(Value),
Final(StructuredOutput),
}Expand description
An incremental update emitted by run_structured_stream.
Variants§
Partial(Value)
A best-effort, not-yet-validated object parsed from the partial
response as it streams in. Successive Partials grow toward the final
value; a consumer can render them as a live preview. Because the
underlying JSON is incomplete, a partial may contain truncated string
values and is never schema-validated.
Final(StructuredOutput)
The final, schema-validated structured output. Exactly one Final is
emitted on success and it is always the last item in the stream.
Trait Implementations§
Source§impl Clone for StructuredStreamUpdate
impl Clone for StructuredStreamUpdate
Source§fn clone(&self) -> StructuredStreamUpdate
fn clone(&self) -> StructuredStreamUpdate
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 StructuredStreamUpdate
impl RefUnwindSafe for StructuredStreamUpdate
impl Send for StructuredStreamUpdate
impl Sync for StructuredStreamUpdate
impl Unpin for StructuredStreamUpdate
impl UnsafeUnpin for StructuredStreamUpdate
impl UnwindSafe for StructuredStreamUpdate
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