pub enum ExecutionStatusView {
Unknown,
Failure(TxExecutionError),
SuccessValue(String),
SuccessReceiptId(CryptoHash),
}
Expand description
ExecutionStatusView
JSON schema
{
"oneOf": [
{
"description": "The execution is pending or unknown.",
"type": "string",
"enum": [
"Unknown"
]
},
{
"description": "The execution has failed.",
"type": "object",
"required": [
"Failure"
],
"properties": {
"Failure": {
"$ref": "#/components/schemas/TxExecutionError"
}
},
"additionalProperties": false
},
{
"description": "The final action succeeded and returned some value or an empty vec encoded in base64.",
"type": "object",
"required": [
"SuccessValue"
],
"properties": {
"SuccessValue": {
"type": "string"
}
},
"additionalProperties": false
},
{
"description": "The final action of the receipt returned a promise or the signed transaction was converted\nto a receipt. Contains the receipt_id of the generated receipt.",
"type": "object",
"required": [
"SuccessReceiptId"
],
"properties": {
"SuccessReceiptId": {
"$ref": "#/components/schemas/CryptoHash"
}
},
"additionalProperties": false
}
]
}
Variants§
Unknown
The execution is pending or unknown.
Failure(TxExecutionError)
The execution has failed.
SuccessValue(String)
The final action succeeded and returned some value or an empty vec encoded in base64.
SuccessReceiptId(CryptoHash)
The final action of the receipt returned a promise or the signed transaction was converted to a receipt. Contains the receipt_id of the generated receipt.
Trait Implementations§
Source§impl Clone for ExecutionStatusView
impl Clone for ExecutionStatusView
Source§fn clone(&self) -> ExecutionStatusView
fn clone(&self) -> ExecutionStatusView
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 ExecutionStatusView
impl Debug for ExecutionStatusView
Source§impl<'de> Deserialize<'de> for ExecutionStatusView
impl<'de> Deserialize<'de> for ExecutionStatusView
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 From<&ExecutionStatusView> for ExecutionStatusView
impl From<&ExecutionStatusView> for ExecutionStatusView
Source§fn from(value: &ExecutionStatusView) -> Self
fn from(value: &ExecutionStatusView) -> Self
Converts to this type from the input type.
Source§impl From<CryptoHash> for ExecutionStatusView
impl From<CryptoHash> for ExecutionStatusView
Source§fn from(value: CryptoHash) -> Self
fn from(value: CryptoHash) -> Self
Converts to this type from the input type.
Source§impl From<TxExecutionError> for ExecutionStatusView
impl From<TxExecutionError> for ExecutionStatusView
Source§fn from(value: TxExecutionError) -> Self
fn from(value: TxExecutionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecutionStatusView
impl RefUnwindSafe for ExecutionStatusView
impl Send for ExecutionStatusView
impl Sync for ExecutionStatusView
impl Unpin for ExecutionStatusView
impl UnwindSafe for ExecutionStatusView
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