pub struct ConstructionParseRequest {
pub network_identifier: NetworkIdentifier,
pub signed: bool,
pub transaction: String,
}
Expand description
ConstructionParseRequest : ConstructionParseRequest is the input to the /construction/parse
endpoint. It allows the caller to parse either an unsigned or signed transaction.
Fields§
§network_identifier: NetworkIdentifier
§signed: bool
Signed is a boolean indicating whether the transaction is signed.
transaction: String
This must be either the unsigned transaction blob returned by /construction/payloads
or the signed transaction blob returned by /construction/combine
.
Implementations§
source§impl ConstructionParseRequest
impl ConstructionParseRequest
sourcepub fn new(
network_identifier: NetworkIdentifier,
signed: bool,
transaction: String
) -> ConstructionParseRequest
pub fn new( network_identifier: NetworkIdentifier, signed: bool, transaction: String ) -> ConstructionParseRequest
ConstructionParseRequest is the input to the /construction/parse
endpoint. It allows the caller to parse either an unsigned or signed transaction.
Trait Implementations§
source§impl Clone for ConstructionParseRequest
impl Clone for ConstructionParseRequest
source§fn clone(&self) -> ConstructionParseRequest
fn clone(&self) -> ConstructionParseRequest
Returns a copy 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 ConstructionParseRequest
impl Debug for ConstructionParseRequest
source§impl Default for ConstructionParseRequest
impl Default for ConstructionParseRequest
source§fn default() -> ConstructionParseRequest
fn default() -> ConstructionParseRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConstructionParseRequest
impl<'de> Deserialize<'de> for ConstructionParseRequest
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 PartialEq<ConstructionParseRequest> for ConstructionParseRequest
impl PartialEq<ConstructionParseRequest> for ConstructionParseRequest
source§fn eq(&self, other: &ConstructionParseRequest) -> bool
fn eq(&self, other: &ConstructionParseRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConstructionParseRequest
impl Serialize for ConstructionParseRequest
impl Eq for ConstructionParseRequest
impl StructuralEq for ConstructionParseRequest
impl StructuralPartialEq for ConstructionParseRequest
Auto Trait Implementations§
impl RefUnwindSafe for ConstructionParseRequest
impl Send for ConstructionParseRequest
impl Sync for ConstructionParseRequest
impl Unpin for ConstructionParseRequest
impl UnwindSafe for ConstructionParseRequest
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