pub struct SendTransactionResponse {
pub status: SendTransactionStatus,
pub hash: String,
pub latest_ledger: u32,
pub latest_ledger_close_time: String,
/* private fields */
}
Expand description
Response to send_transaction
Fields§
§status: SendTransactionStatus
The current status of the transaction by hash.
hash: String
Transaction hash (as a hex-encoded string)
latest_ledger: u32
The sequence number of the latest ledger known to Stellar RPC at the time it handled the request.
latest_ledger_close_time: String
The unix timestamp of the close time of the latest ledger known to Stellar RPC at the time it handled the request.
Implementations§
Source§impl SendTransactionResponse
impl SendTransactionResponse
Sourcepub fn to_error_result(&self) -> Option<TransactionResult>
pub fn to_error_result(&self) -> Option<TransactionResult>
(optional) If the transaction status is SendTransactionStatus::Error, this will be a TransactionResult struct containing details on why stellar-core rejected the transaction.
Sourcepub fn to_diagnostic_events(&self) -> Option<Vec<DiagnosticEvent>>
pub fn to_diagnostic_events(&self) -> Option<Vec<DiagnosticEvent>>
(optional) If the transaction status is SendTransactionStatus::Error, this field may
be present with Vec<DiagnosticEvent>
. Each DiagnosticEvent is containing details on
why stellar-core rejected the transaction.
Trait Implementations§
Source§impl Debug for SendTransactionResponse
impl Debug for SendTransactionResponse
Source§impl<'de> Deserialize<'de> for SendTransactionResponse
impl<'de> Deserialize<'de> for SendTransactionResponse
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 SendTransactionResponse
impl RefUnwindSafe for SendTransactionResponse
impl Send for SendTransactionResponse
impl Sync for SendTransactionResponse
impl Unpin for SendTransactionResponse
impl UnwindSafe for SendTransactionResponse
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