pub struct EmitState {
pub is_first_chunk: bool,
pub is_output_item_added: bool,
pub is_content_part_added: bool,
pub is_reasoning_added: bool,
pub is_function_call_item_added: bool,
pub is_completed: bool,
pub final_status: String,
pub incomplete_reason: Option<String>,
}Expand description
Booleans driving the streaming emit state machine.
Fields§
§is_first_chunk: bool§is_output_item_added: bool§is_content_part_added: bool§is_reasoning_added: bool§is_function_call_item_added: bool§is_completed: bool§final_status: StringFinal response status derived from finish_reason.
incomplete_reason: Option<String>Optional incomplete reason when final_status == "incomplete".
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmitState
impl RefUnwindSafe for EmitState
impl Send for EmitState
impl Sync for EmitState
impl Unpin for EmitState
impl UnsafeUnpin for EmitState
impl UnwindSafe for EmitState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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