pub enum ToolArgumentKind {
String,
Number,
Boolean,
Json,
Array,
Object,
FileRef,
ImageRef,
AudioRef,
Custom,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ToolArgumentKind
impl Clone for ToolArgumentKind
Source§fn clone(&self) -> ToolArgumentKind
fn clone(&self) -> ToolArgumentKind
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 ToolArgumentKind
impl Debug for ToolArgumentKind
Source§impl Display for ToolArgumentKind
impl Display for ToolArgumentKind
Source§impl FromStr for ToolArgumentKind
impl FromStr for ToolArgumentKind
Source§type Err = ToolCallError
type Err = ToolCallError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<ToolArgumentKind, <ToolArgumentKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<ToolArgumentKind, <ToolArgumentKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ToolArgumentKind
impl Hash for ToolArgumentKind
Source§impl Ord for ToolArgumentKind
impl Ord for ToolArgumentKind
Source§fn cmp(&self, other: &ToolArgumentKind) -> Ordering
fn cmp(&self, other: &ToolArgumentKind) -> 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 ToolArgumentKind
impl PartialEq for ToolArgumentKind
Source§fn eq(&self, other: &ToolArgumentKind) -> bool
fn eq(&self, other: &ToolArgumentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ToolArgumentKind
impl PartialOrd for ToolArgumentKind
impl Copy for ToolArgumentKind
impl Eq for ToolArgumentKind
impl StructuralPartialEq for ToolArgumentKind
Auto Trait Implementations§
impl Freeze for ToolArgumentKind
impl RefUnwindSafe for ToolArgumentKind
impl Send for ToolArgumentKind
impl Sync for ToolArgumentKind
impl Unpin for ToolArgumentKind
impl UnsafeUnpin for ToolArgumentKind
impl UnwindSafe for ToolArgumentKind
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