pub enum MintKind {
Reasoning,
EncryptedReasoning,
Block,
Output,
Tool,
Text,
}Expand description
What kind of part a minted identity was fabricated for.
The kind partitions minted keys per subsystem so independent minters need no coordination. This is bookkeeping, not a public contract: the key is opaque, so overlapping kinds could at most confuse a debugger, never a consumer or a serializer.
Variants§
Reasoning
Reasoning blocks on constant-id wires (gemini REST, ollama,
chat-compat reasoning_content, candle).
EncryptedReasoning
Encrypted/opaque reasoning payloads on id-less wires (openrouter’s
reasoning.encrypted detail). A distinct kind from MintKind::Reasoning so
a whole encrypted block can never restate — and replace — the text
block accumulating under the wire’s constant reasoning key.
Block
Content blocks on index-as-id wires (anthropic, bedrock).
Output
OpenAI Responses output_index fallback for delta events lacking
item_id.
Tool
Tool-call fragments whose wire omits the tool-call id.
Text
Text blocks opened by a bare Message on wires that never announce
text-block boundaries.
Implementations§
Source§impl MintKind
impl MintKind
Sourcepub fn for_wire_index(self, index: u64) -> StreamPartId
pub fn for_wire_index(self, index: u64) -> StreamPartId
The minted key for a wire-supplied index (anthropic’s content-block index pattern). Unsigned by contract: signed wire index types must be converted at the adapter boundary, so a negative index is a decode error there rather than a divergent identity here.
Trait Implementations§
impl Copy for MintKind
impl Eq for MintKind
impl StructuralPartialEq for MintKind
Auto Trait Implementations§
impl Freeze for MintKind
impl RefUnwindSafe for MintKind
impl Send for MintKind
impl Sync for MintKind
impl Unpin for MintKind
impl UnsafeUnpin for MintKind
impl UnwindSafe for MintKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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