pub struct StreamProgress {
pub provider: String,
pub frame_index: usize,
pub done: bool,
pub content_chars: usize,
pub thinking_chars: usize,
pub tool_call_count: usize,
pub accumulated_tool_call_count: usize,
}Expand description
Provider-neutral progress for a streamed provider frame.
Fields§
§provider: String§frame_index: usize§done: bool§content_chars: usize§thinking_chars: usize§tool_call_count: usize§accumulated_tool_call_count: usizeTrait Implementations§
Source§impl Clone for StreamProgress
impl Clone for StreamProgress
Source§fn clone(&self) -> StreamProgress
fn clone(&self) -> StreamProgress
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 StreamProgress
impl Debug for StreamProgress
Source§impl<'de> Deserialize<'de> for StreamProgress
impl<'de> Deserialize<'de> for StreamProgress
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
Source§impl PartialEq for StreamProgress
impl PartialEq for StreamProgress
Source§impl Serialize for StreamProgress
impl Serialize for StreamProgress
impl StructuralPartialEq for StreamProgress
Auto Trait Implementations§
impl Freeze for StreamProgress
impl RefUnwindSafe for StreamProgress
impl Send for StreamProgress
impl Sync for StreamProgress
impl Unpin for StreamProgress
impl UnsafeUnpin for StreamProgress
impl UnwindSafe for StreamProgress
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