pub struct ToolInvocationParametersValue {
pub description: Option<String>,
pub parameter_type: ToolParameterType,
pub value: Option<Value>,
}Fields§
§description: Option<String>Human-readable description of the parameter
parameter_type: ToolParameterType§value: Option<Value>Implementations§
Source§impl ToolInvocationParametersValue
impl ToolInvocationParametersValue
pub fn new( parameter_type: ToolParameterType, value: Option<Value>, ) -> ToolInvocationParametersValue
Trait Implementations§
Source§impl Clone for ToolInvocationParametersValue
impl Clone for ToolInvocationParametersValue
Source§fn clone(&self) -> ToolInvocationParametersValue
fn clone(&self) -> ToolInvocationParametersValue
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 Default for ToolInvocationParametersValue
impl Default for ToolInvocationParametersValue
Source§fn default() -> ToolInvocationParametersValue
fn default() -> ToolInvocationParametersValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolInvocationParametersValue
impl<'de> Deserialize<'de> for ToolInvocationParametersValue
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 PartialEq for ToolInvocationParametersValue
impl PartialEq for ToolInvocationParametersValue
Source§fn eq(&self, other: &ToolInvocationParametersValue) -> bool
fn eq(&self, other: &ToolInvocationParametersValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolInvocationParametersValue
Auto Trait Implementations§
impl Freeze for ToolInvocationParametersValue
impl RefUnwindSafe for ToolInvocationParametersValue
impl Send for ToolInvocationParametersValue
impl Sync for ToolInvocationParametersValue
impl Unpin for ToolInvocationParametersValue
impl UnsafeUnpin for ToolInvocationParametersValue
impl UnwindSafe for ToolInvocationParametersValue
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