pub struct ActionResult {
pub status: ActionStatus,
pub output: HashMap<String, Value>,
pub output_hash: String,
pub error: Option<String>,
pub atp_consumed: f64,
pub resource_consumed: HashMap<String, f64>,
pub attestations: Vec<WitnessAttestation>,
}Expand description
Result of an action execution.
Fields§
§status: ActionStatusCurrent status
output: HashMap<String, Value>Result data
output_hash: StringSHA-256 of output (for chain integrity)
error: Option<String>Error message on failure
atp_consumed: f64Actual ATP consumed
resource_consumed: HashMap<String, f64>Actual resources consumed
attestations: Vec<WitnessAttestation>Witness attestations on the result
Trait Implementations§
Source§impl Clone for ActionResult
impl Clone for ActionResult
Source§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
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