pub struct ToolCallId(/* private fields */);Expand description
Typed SDK identifier for ToolCallId. Use this newtype at public boundaries instead of a raw string; constructing or cloning it is data-only and performs no side effects.
Implementations§
Source§impl ToolCallId
impl ToolCallId
Sourcepub fn new(value: impl Into<String>) -> Self
pub fn new(value: impl Into<String>) -> Self
Creates a new domain::ids value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
§Panics
Panics if constructor invariants fail, such as invalid identifier
text or constructor-specific bounds. Use a fallible constructor such as
try_new when one is available for untrusted input.
Trait Implementations§
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 (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 ToolCallId
impl Debug for ToolCallId
Source§impl<'de> Deserialize<'de> for ToolCallId
impl<'de> Deserialize<'de> for ToolCallId
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 Display for ToolCallId
impl Display for ToolCallId
Source§impl From<&str> for ToolCallId
impl From<&str> for ToolCallId
Source§impl From<ToolCallId> for EntityId
impl From<ToolCallId> for EntityId
Source§fn from(value: ToolCallId) -> Self
fn from(value: ToolCallId) -> Self
Converts to this type from the input type.
Source§impl Hash for ToolCallId
impl Hash for ToolCallId
Source§impl Ord for ToolCallId
impl Ord for ToolCallId
Source§fn cmp(&self, other: &ToolCallId) -> Ordering
fn cmp(&self, other: &ToolCallId) -> Ordering
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
Source§impl PartialEq for ToolCallId
impl PartialEq for ToolCallId
Source§fn eq(&self, other: &ToolCallId) -> bool
fn eq(&self, other: &ToolCallId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ToolCallId
impl PartialOrd for ToolCallId
Source§impl Serialize for ToolCallId
impl Serialize for ToolCallId
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 UnsafeUnpin 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