pub struct ToolCallId<T: ?Sized + AsRef<str> = String>(/* private fields */);Expand description
Identifies one tool call within a thread.
This is the id field on RAP invocations and callbacks. It
originates from the model provider’s tool-call stream (e.g. Bedrock
tooluse_... IDs) or, for runtime-synthesized calls (thread spawns,
subscription events), from a minted UUID. Treat the contents as
opaque; formats are provider-controlled.
Implementations§
Source§impl<T: AsRef<str>> ToolCallId<T>
impl<T: AsRef<str>> ToolCallId<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwrap into the underlying storage.
Trait Implementations§
Source§impl<T: AsRef<str> + Deref<Target = str>> Borrow<ToolCallId<str>> for ToolCallId<T>
impl<T: AsRef<str> + Deref<Target = str>> Borrow<ToolCallId<str>> for ToolCallId<T>
Source§impl<T: ?Sized + AsRef<str> + Deref<Target = str>> Deref for ToolCallId<T>
impl<T: ?Sized + AsRef<str> + Deref<Target = str>> Deref for ToolCallId<T>
Source§type Target = ToolCallId<str>
type Target = ToolCallId<str>
The resulting type after dereferencing.
Source§fn deref(&self) -> &ToolCallId<str>
fn deref(&self) -> &ToolCallId<str>
Dereferences the value.
Source§impl<'de, T: AsRef<str> + Deserialize<'de>> Deserialize<'de> for ToolCallId<T>
impl<'de, T: AsRef<str> + Deserialize<'de>> Deserialize<'de> for ToolCallId<T>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<T: ?Sized + AsRef<str>> Eq for ToolCallId<T>
Source§impl<T: ?Sized + AsRef<str>> Ord for ToolCallId<T>
impl<T: ?Sized + AsRef<str>> Ord for ToolCallId<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<A: ?Sized + AsRef<str>, B: ?Sized + AsRef<str>> PartialEq<ToolCallId<B>> for ToolCallId<A>
impl<A: ?Sized + AsRef<str>, B: ?Sized + AsRef<str>> PartialEq<ToolCallId<B>> for ToolCallId<A>
Source§impl<A: ?Sized + AsRef<str>, B: ?Sized + AsRef<str>> PartialOrd<ToolCallId<B>> for ToolCallId<A>
impl<A: ?Sized + AsRef<str>, B: ?Sized + AsRef<str>> PartialOrd<ToolCallId<B>> for ToolCallId<A>
Source§impl ToOwned for ToolCallId<str>
impl ToOwned for ToolCallId<str>
Source§type Owned = ToolCallId
type Owned = ToolCallId
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl<T> Freeze for ToolCallId<T>
impl<T> RefUnwindSafe for ToolCallId<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for ToolCallId<T>
impl<T> Sync for ToolCallId<T>
impl<T> Unpin for ToolCallId<T>
impl<T> UnsafeUnpin for ToolCallId<T>where
T: UnsafeUnpin + ?Sized,
impl<T> UnwindSafe for ToolCallId<T>where
T: UnwindSafe + ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.