pub struct CallableInvocationResult {
pub success: bool,
pub output: Option<String>,
pub error: Option<String>,
pub child_execution_id: Option<ExecutionId>,
pub duration_ms: u64,
pub token_usage: Option<TokenUsage>,
}Expand description
CallableInvocationResult - Result of a callable invocation @see packages/enact-schemas/src/execution.schemas.ts - callableInvocationResultSchema
Fields§
§success: boolWhether the invocation succeeded
output: Option<String>Output (if successful)
error: Option<String>Error message (if failed)
child_execution_id: Option<ExecutionId>Child execution ID (for SpawnMode::Child)
duration_ms: u64Duration in milliseconds
token_usage: Option<TokenUsage>Token usage
Implementations§
Trait Implementations§
Source§impl Clone for CallableInvocationResult
impl Clone for CallableInvocationResult
Source§fn clone(&self) -> CallableInvocationResult
fn clone(&self) -> CallableInvocationResult
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 CallableInvocationResult
impl Debug for CallableInvocationResult
Source§impl<'de> Deserialize<'de> for CallableInvocationResult
impl<'de> Deserialize<'de> for CallableInvocationResult
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 CallableInvocationResult
impl RefUnwindSafe for CallableInvocationResult
impl Send for CallableInvocationResult
impl Sync for CallableInvocationResult
impl Unpin for CallableInvocationResult
impl UnsafeUnpin for CallableInvocationResult
impl UnwindSafe for CallableInvocationResult
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