pub struct ActionResult {
pub call_id: String,
pub started_at_ms: u64,
pub finished_at_ms: u64,
pub output: Value,
pub before: Option<Observation>,
pub after: Option<Observation>,
pub evidence: Vec<AssetRef>,
pub execution: Option<ActionExecution>,
}Expand description
Result of a succeeded action (spine §4.2). Every action returns state
deltas: before/after observations plus evidence references.
Fields§
§call_id: StringThe caller-generated action id (device.execute params.id).
started_at_ms: u64Dispatch timestamp (ms since epoch).
finished_at_ms: u64Terminal timestamp (ms since epoch).
output: ValueAction output (e.g. findElement → { element: UiNodeRef }).
before: Option<Observation>World snapshot before the action, when captured.
after: Option<Observation>World snapshot after the action, when captured.
evidence: Vec<AssetRef>Evidence produced by the action.
execution: Option<ActionExecution>The execution mode the provider reports having used.
Trait Implementations§
Source§impl Clone for ActionResult
impl Clone for ActionResult
Source§fn clone(&self) -> ActionResult
fn clone(&self) -> ActionResult
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 ActionResult
impl Debug for ActionResult
Source§impl<'de> Deserialize<'de> for ActionResult
impl<'de> Deserialize<'de> for ActionResult
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 JsonSchema for ActionResult
impl JsonSchema for ActionResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ActionResult
impl PartialEq for ActionResult
Source§impl Serialize for ActionResult
impl Serialize for ActionResult
impl StructuralPartialEq for ActionResult
Auto Trait Implementations§
impl Freeze for ActionResult
impl RefUnwindSafe for ActionResult
impl Send for ActionResult
impl Sync for ActionResult
impl Unpin for ActionResult
impl UnsafeUnpin for ActionResult
impl UnwindSafe for ActionResult
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