pub struct KnowledgeInvocationResult {
pub knowledge_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 a knowledge invocation. Same shape as
ToolInvocationResult so clients can dispatch on the
invocation_id without knowing which registry served the call.
Fields§
§knowledge_id: String§invocation_id: String§output: Value§settlement_tx: Option<String>§amount_paid: u128§completed_at: u64Trait Implementations§
Source§impl Clone for KnowledgeInvocationResult
impl Clone for KnowledgeInvocationResult
Source§fn clone(&self) -> KnowledgeInvocationResult
fn clone(&self) -> KnowledgeInvocationResult
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 KnowledgeInvocationResult
impl Debug for KnowledgeInvocationResult
Source§impl<'de> Deserialize<'de> for KnowledgeInvocationResult
impl<'de> Deserialize<'de> for KnowledgeInvocationResult
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 KnowledgeInvocationResult
impl RefUnwindSafe for KnowledgeInvocationResult
impl Send for KnowledgeInvocationResult
impl Sync for KnowledgeInvocationResult
impl Unpin for KnowledgeInvocationResult
impl UnsafeUnpin for KnowledgeInvocationResult
impl UnwindSafe for KnowledgeInvocationResult
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