Enum ToolArgumentKind
pub enum ToolArgumentKind {
String,
Number,
Boolean,
Json,
Array,
Object,
FileRef,
ImageRef,
AudioRef,
Custom,
}Variants§
Implementations§
§impl ToolArgumentKind
impl ToolArgumentKind
pub const ALL: &'static [ToolArgumentKind]
pub const fn as_str(self) -> &'static str
Trait Implementations§
§impl Clone for ToolArgumentKind
impl Clone for ToolArgumentKind
§fn clone(&self) -> ToolArgumentKind
fn clone(&self) -> ToolArgumentKind
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 more§impl Debug for ToolArgumentKind
impl Debug for ToolArgumentKind
§impl Display for ToolArgumentKind
impl Display for ToolArgumentKind
§impl FromStr for ToolArgumentKind
impl FromStr for ToolArgumentKind
§type Err = ToolCallError
type Err = ToolCallError
The associated error which can be returned from parsing.
§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 more§impl Hash for ToolArgumentKind
impl Hash for ToolArgumentKind
§impl Ord for ToolArgumentKind
impl Ord for ToolArgumentKind
§fn cmp(&self, other: &ToolArgumentKind) -> Ordering
fn cmp(&self, other: &ToolArgumentKind) -> Ordering
1.21.0 · 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
§impl PartialEq for ToolArgumentKind
impl PartialEq for ToolArgumentKind
§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