pub struct TxResult {
pub block_name: String,
pub committed: bool,
pub failed_step: Option<usize>,
pub executed_steps: usize,
pub rollback_attempted: bool,
pub rollback_succeeded: bool,
pub rollback_steps: usize,
pub failure_reason: Option<String>,
pub rollback_errors: Vec<String>,
}Expand description
Execution result of a transaction-like block.
Fields§
§block_name: StringInput block name.
committed: boolTrue when all steps succeeded.
failed_step: Option<usize>First failed step index, if any.
executed_steps: usizeNumber of forward steps executed successfully.
rollback_attempted: boolWhether rollback phase started.
rollback_succeeded: boolWhether rollback phase ended without rollback errors.
rollback_steps: usizeNumber of rollback commands attempted.
failure_reason: Option<String>First-level failure summary for the forward phase.
rollback_errors: Vec<String>Rollback phase errors (can contain multiple entries).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxResult
impl<'de> Deserialize<'de> for TxResult
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 TxResult
impl JsonSchema for TxResult
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§fn always_inline_schema() -> bool
fn always_inline_schema() -> bool
👎Deprecated: Use
inline_schema() insteadOnly included for backward-compatibility - use
inline_schema() instead“. Read moreimpl Eq for TxResult
impl StructuralPartialEq for TxResult
Auto Trait Implementations§
impl Freeze for TxResult
impl RefUnwindSafe for TxResult
impl Send for TxResult
impl Sync for TxResult
impl Unpin for TxResult
impl UnsafeUnpin for TxResult
impl UnwindSafe for TxResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.