pub struct InvocationArgs(/* private fields */);Implementations§
Source§impl InvocationArgs
impl InvocationArgs
pub fn from_value(value: Value) -> Result<Self, ToolError>
pub fn from_json_str(raw: &str) -> Result<Self, ToolError>
pub fn as_value(&self) -> &Value
pub fn into_value(self) -> Value
pub fn as_str(&self) -> Option<&str>
pub fn as_bool(&self) -> Option<bool>
pub fn as_f64(&self) -> Option<f64>
pub fn as_object(&self) -> Option<&Map<String, Value>>
pub fn to_context_variables(&self) -> Result<ContextVariables, ToolError>
pub fn validate_against_schema(&self, schema: &Value) -> Result<(), ToolError>
Trait Implementations§
Source§impl Clone for InvocationArgs
impl Clone for InvocationArgs
Source§fn clone(&self) -> InvocationArgs
fn clone(&self) -> InvocationArgs
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 InvocationArgs
impl Debug for InvocationArgs
Source§impl<'de> Deserialize<'de> for InvocationArgs
impl<'de> Deserialize<'de> for InvocationArgs
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 InvocationArgs
impl PartialEq for InvocationArgs
Source§impl Serialize for InvocationArgs
impl Serialize for InvocationArgs
impl StructuralPartialEq for InvocationArgs
Auto Trait Implementations§
impl Freeze for InvocationArgs
impl RefUnwindSafe for InvocationArgs
impl Send for InvocationArgs
impl Sync for InvocationArgs
impl Unpin for InvocationArgs
impl UnsafeUnpin for InvocationArgs
impl UnwindSafe for InvocationArgs
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