pub struct ToolInvocationResult {
pub tool_id: String,
pub invocation_id: String,
pub output: Value,
pub settlement_tx: Option<String>,
pub amount_paid: u128,
pub completed_at: u64,
}Expand description
Result of invoking a tool
Fields§
§tool_id: StringThe tool that was invoked
invocation_id: StringInvocation identifier for tracking
output: ValueThe output payload returned by the tool
settlement_tx: Option<String>Settlement transaction hash, if a payment was made. None for
free tools or for the in-process token transfer path (which
settles via the live TnzoToken ledger rather than a discrete
chain transaction).
amount_paid: u128Amount paid by the invoker in atto-TNZO. 0 for free tools.
completed_at: u64Unix timestamp when the invocation completed
Trait Implementations§
Source§impl Clone for ToolInvocationResult
impl Clone for ToolInvocationResult
Source§fn clone(&self) -> ToolInvocationResult
fn clone(&self) -> ToolInvocationResult
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 ToolInvocationResult
impl Debug for ToolInvocationResult
Source§impl<'de> Deserialize<'de> for ToolInvocationResult
impl<'de> Deserialize<'de> for ToolInvocationResult
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
Auto Trait Implementations§
impl Freeze for ToolInvocationResult
impl RefUnwindSafe for ToolInvocationResult
impl Send for ToolInvocationResult
impl Sync for ToolInvocationResult
impl Unpin for ToolInvocationResult
impl UnsafeUnpin for ToolInvocationResult
impl UnwindSafe for ToolInvocationResult
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