pub struct ToolCallId(/* private fields */);Expand description
Type-safe wrapper for a tool call ID.
Implementations§
Source§impl ToolCallId
impl ToolCallId
Sourcepub fn new() -> ToolCallId
pub fn new() -> ToolCallId
Create a new tool call ID.
Sourcepub fn from_string(s: impl Into<String>) -> ToolCallId
pub fn from_string(s: impl Into<String>) -> ToolCallId
Create from an existing string.
Trait Implementations§
Source§impl AsRef<str> for ToolCallId
impl AsRef<str> for ToolCallId
Source§impl Clone for ToolCallId
impl Clone for ToolCallId
Source§fn clone(&self) -> ToolCallId
fn clone(&self) -> ToolCallId
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolCallId
impl Debug for ToolCallId
Source§impl Default for ToolCallId
impl Default for ToolCallId
Source§fn default() -> ToolCallId
fn default() -> ToolCallId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallId
impl<'de> Deserialize<'de> for ToolCallId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCallId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ToolCallId
impl Display for ToolCallId
Source§impl From<&str> for ToolCallId
impl From<&str> for ToolCallId
Source§fn from(s: &str) -> ToolCallId
fn from(s: &str) -> ToolCallId
Converts to this type from the input type.
Source§impl From<String> for ToolCallId
impl From<String> for ToolCallId
Source§fn from(s: String) -> ToolCallId
fn from(s: String) -> ToolCallId
Converts to this type from the input type.
Source§impl Hash for ToolCallId
impl Hash for ToolCallId
Source§impl PartialEq for ToolCallId
impl PartialEq for ToolCallId
Source§impl Serialize for ToolCallId
impl Serialize for ToolCallId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ToolCallId
impl StructuralPartialEq for ToolCallId
Auto Trait Implementations§
impl Freeze for ToolCallId
impl RefUnwindSafe for ToolCallId
impl Send for ToolCallId
impl Sync for ToolCallId
impl Unpin for ToolCallId
impl UnwindSafe for ToolCallId
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,
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
Compare self to
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> 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.