pub enum FinalExecutionStatus {
NotStarted,
Started,
Failure(TxExecutionError),
SuccessValue(String),
}
Expand description
FinalExecutionStatus
JSON schema
{
"oneOf": [
{
"description": "The execution has not yet started.",
"type": "string",
"enum": [
"NotStarted"
]
},
{
"description": "The execution has started and still going.",
"type": "string",
"enum": [
"Started"
]
},
{
"description": "The execution has failed with the given error.",
"type": "object",
"required": [
"Failure"
],
"properties": {
"Failure": {
"$ref": "#/components/schemas/TxExecutionError"
}
},
"additionalProperties": false
},
{
"description": "The execution has succeeded and returned some value or an empty vec encoded in base64.",
"type": "object",
"required": [
"SuccessValue"
],
"properties": {
"SuccessValue": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
Variants§
NotStarted
The execution has not yet started.
Started
The execution has started and still going.
Failure(TxExecutionError)
The execution has failed with the given error.
SuccessValue(String)
The execution has succeeded and returned some value or an empty vec encoded in base64.
Trait Implementations§
Source§impl Clone for FinalExecutionStatus
impl Clone for FinalExecutionStatus
Source§fn clone(&self) -> FinalExecutionStatus
fn clone(&self) -> FinalExecutionStatus
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 FinalExecutionStatus
impl Debug for FinalExecutionStatus
Source§impl<'de> Deserialize<'de> for FinalExecutionStatus
impl<'de> Deserialize<'de> for FinalExecutionStatus
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<&FinalExecutionStatus> for FinalExecutionStatus
impl From<&FinalExecutionStatus> for FinalExecutionStatus
Source§fn from(value: &FinalExecutionStatus) -> Self
fn from(value: &FinalExecutionStatus) -> Self
Converts to this type from the input type.
Source§impl From<TxExecutionError> for FinalExecutionStatus
impl From<TxExecutionError> for FinalExecutionStatus
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 FinalExecutionStatus
impl RefUnwindSafe for FinalExecutionStatus
impl Send for FinalExecutionStatus
impl Sync for FinalExecutionStatus
impl Unpin for FinalExecutionStatus
impl UnwindSafe for FinalExecutionStatus
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