pub struct BatchBroadcastResponse {
pub action: String,
pub status: String,
pub request_id: Option<String>,
pub batch_size: Option<usize>,
pub hashes: Vec<String>,
pub failed: Vec<TxErrorResponse>,
}Expand description
Response to a JSON-encoded transaction broadcast via WebSocket.
Two-phase protocol:
- Phase 1:
status: "accepted"withbatch_size(immediate ack) - Phase 2:
status: "completed"|"partial"|"failed"withhashesandfailed
Fields§
§action: String§status: String§request_id: Option<String>§batch_size: Option<usize>Batch size (present in “accepted” ack)
hashes: Vec<String>Transaction hashes (present in final response)
failed: Vec<TxErrorResponse>Failed transactions (present in final response)
Trait Implementations§
Source§impl Clone for BatchBroadcastResponse
impl Clone for BatchBroadcastResponse
Source§fn clone(&self) -> BatchBroadcastResponse
fn clone(&self) -> BatchBroadcastResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BatchBroadcastResponse
impl Debug for BatchBroadcastResponse
Source§impl<'de> Deserialize<'de> for BatchBroadcastResponse
impl<'de> Deserialize<'de> for BatchBroadcastResponse
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 BatchBroadcastResponse
impl RefUnwindSafe for BatchBroadcastResponse
impl Send for BatchBroadcastResponse
impl Sync for BatchBroadcastResponse
impl Unpin for BatchBroadcastResponse
impl UnsafeUnpin for BatchBroadcastResponse
impl UnwindSafe for BatchBroadcastResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more