pub struct SubmitResponse {
pub success: bool,
pub transaction_hash: Option<String>,
pub status: Option<String>,
pub block_number: Option<String>,
pub gas_used: Option<String>,
pub signer: Option<String>,
pub chain_id: Option<u64>,
pub error: Option<String>,
}Expand description
Response from POST /agent/submit.
Fields§
§success: booltrue if submission succeeded.
transaction_hash: Option<String>The transaction hash.
status: Option<String>"success", "reverted", "pending", or "failed".
block_number: Option<String>Block number (if confirmed).
gas_used: Option<String>Gas used (if confirmed).
signer: Option<String>Address that signed the transaction.
chain_id: Option<u64>Chain ID.
error: Option<String>Error message if submission failed.
Trait Implementations§
Source§impl Clone for SubmitResponse
impl Clone for SubmitResponse
Source§fn clone(&self) -> SubmitResponse
fn clone(&self) -> SubmitResponse
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 SubmitResponse
impl Debug for SubmitResponse
Source§impl<'de> Deserialize<'de> for SubmitResponse
impl<'de> Deserialize<'de> for SubmitResponse
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 SubmitResponse
impl RefUnwindSafe for SubmitResponse
impl Send for SubmitResponse
impl Sync for SubmitResponse
impl Unpin for SubmitResponse
impl UnsafeUnpin for SubmitResponse
impl UnwindSafe for SubmitResponse
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