pub struct IntentResult {
pub intent_id: String,
pub status: ExecutionStatus,
pub output: Option<Value>,
pub error: Option<ExecutionError>,
pub started_at_ns: u128,
pub finished_at_ns: u128,
pub runner_meta: RunnerMetadata,
pub audit_ref: AuditRef,
}Expand description
Result of intent execution
Fields§
§intent_id: StringID of the original intent
status: ExecutionStatusExecution status
output: Option<Value>Success output (if status is Ok)
error: Option<ExecutionError>Error details (if status is Error/Denied/Timeout/Killed)
started_at_ns: u128When execution started (nanoseconds)
finished_at_ns: u128When execution finished (nanoseconds)
runner_meta: RunnerMetadataRuntime metadata from the executor
audit_ref: AuditRefReference to audit log entry
Implementations§
Source§impl IntentResult
impl IntentResult
Sourcepub fn success(
intent_id: String,
output: Value,
started_at_ns: u128,
finished_at_ns: u128,
runner_meta: RunnerMetadata,
audit_ref: String,
) -> Self
pub fn success( intent_id: String, output: Value, started_at_ns: u128, finished_at_ns: u128, runner_meta: RunnerMetadata, audit_ref: String, ) -> Self
Create a successful result
Trait Implementations§
Source§impl Clone for IntentResult
impl Clone for IntentResult
Source§fn clone(&self) -> IntentResult
fn clone(&self) -> IntentResult
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 IntentResult
impl Debug for IntentResult
Source§impl<'de> Deserialize<'de> for IntentResult
impl<'de> Deserialize<'de> for IntentResult
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 IntentResult
impl RefUnwindSafe for IntentResult
impl Send for IntentResult
impl Sync for IntentResult
impl Unpin for IntentResult
impl UnsafeUnpin for IntentResult
impl UnwindSafe for IntentResult
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