pub struct ChunkParts<R> {
pub reasoning: Option<String>,
pub reasoning_signature: Option<String>,
pub text: Option<String>,
pub tool_events: Vec<RawStreamingChoice<R>>,
}Expand description
What one wire chunk (or one wire part, for parts-array wires) carried, declared by the adapter with no lifecycle events of its own.
Fields§
§reasoning: Option<String>Reasoning content accumulating under the wire’s constant minted key.
reasoning_signature: Option<String>A wire-carried signature closing the reasoning block (gemini’s
thoughtSignature) — the one authoritative close these wires spell.
text: Option<String>Visible text content.
tool_events: Vec<RawStreamingChoice<R>>Tool-call events in wire order — whole calls, fragments, or input ends, prebuilt by the adapter (keys and ids are wire policy, not lifecycle). Emitted after the boundary close, in the canonical slot.
Trait Implementations§
Source§impl<R: Default> Default for ChunkParts<R>
impl<R: Default> Default for ChunkParts<R>
Source§fn default() -> ChunkParts<R>
fn default() -> ChunkParts<R>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<R> Freeze for ChunkParts<R>
impl<R> RefUnwindSafe for ChunkParts<R>where
R: RefUnwindSafe,
impl<R> Send for ChunkParts<R>where
R: Send,
impl<R> Sync for ChunkParts<R>where
R: Sync,
impl<R> Unpin for ChunkParts<R>where
R: Unpin,
impl<R> UnsafeUnpin for ChunkParts<R>
impl<R> UnwindSafe for ChunkParts<R>where
R: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more