pub struct SubmitTxResponse {
pub events: Vec<LedgerEvent>,
pub id: String,
pub receipt: Option<TxReceipt>,
pub status: TxStatus,
pub tx_number: Option<u64>,
}Expand description
Response from submitting a transaction.
JSON schema
{
"description": "Response from submitting a transaction.",
"type": "object",
"required": [
"id",
"status"
],
"properties": {
"events": {
"description": "Events emitted by the transaction",
"type": "array",
"items": {
"$ref": "#/components/schemas/LedgerEvent"
}
},
"id": {
"description": "The transaction hash",
"type": "string"
},
"receipt": {
"$ref": "#/components/schemas/TxReceipt"
},
"status": {
"$ref": "#/components/schemas/TxStatus"
},
"tx_number": {
"description": "Transaction number (if processed)",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}Fields§
§events: Vec<LedgerEvent>Events emitted by the transaction
id: StringThe transaction hash
receipt: Option<TxReceipt>§status: TxStatus§tx_number: Option<u64>Transaction number (if processed)
Trait Implementations§
Source§impl Clone for SubmitTxResponse
impl Clone for SubmitTxResponse
Source§fn clone(&self) -> SubmitTxResponse
fn clone(&self) -> SubmitTxResponse
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 SubmitTxResponse
impl Debug for SubmitTxResponse
Source§impl<'de> Deserialize<'de> for SubmitTxResponse
impl<'de> Deserialize<'de> for SubmitTxResponse
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 SubmitTxResponse
impl RefUnwindSafe for SubmitTxResponse
impl Send for SubmitTxResponse
impl Sync for SubmitTxResponse
impl Unpin for SubmitTxResponse
impl UnsafeUnpin for SubmitTxResponse
impl UnwindSafe for SubmitTxResponse
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