pub struct ConstructionPayloadsRequest {
pub network_identifier: NetworkIdentifier,
pub operations: Vec<Operation>,
pub metadata: Option<Value>,
pub public_keys: Option<Vec<PublicKey>>,
}
Expand description
ConstructionPayloadsRequest : ConstructionPayloadsRequest is the request to /construction/payloads
. It contains the network, a slice of operations, and arbitrary metadata that was returned by the call to /construction/metadata
. Optionally, the request can also include an array of PublicKeys associated with the AccountIdentifiers returned in ConstructionPreprocessResponse.
Fields§
§network_identifier: NetworkIdentifier
§operations: Vec<Operation>
§metadata: Option<Value>
§public_keys: Option<Vec<PublicKey>>
Implementations§
source§impl ConstructionPayloadsRequest
impl ConstructionPayloadsRequest
sourcepub fn new(
network_identifier: NetworkIdentifier,
operations: Vec<Operation>
) -> ConstructionPayloadsRequest
pub fn new( network_identifier: NetworkIdentifier, operations: Vec<Operation> ) -> ConstructionPayloadsRequest
ConstructionPayloadsRequest is the request to /construction/payloads
. It contains the network, a slice of operations, and arbitrary metadata that was returned by the call to /construction/metadata
. Optionally, the request can also include an array of PublicKeys associated with the AccountIdentifiers returned in ConstructionPreprocessResponse.
Trait Implementations§
source§impl Clone for ConstructionPayloadsRequest
impl Clone for ConstructionPayloadsRequest
source§fn clone(&self) -> ConstructionPayloadsRequest
fn clone(&self) -> ConstructionPayloadsRequest
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 ConstructionPayloadsRequest
impl Debug for ConstructionPayloadsRequest
source§impl Default for ConstructionPayloadsRequest
impl Default for ConstructionPayloadsRequest
source§fn default() -> ConstructionPayloadsRequest
fn default() -> ConstructionPayloadsRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConstructionPayloadsRequest
impl<'de> Deserialize<'de> for ConstructionPayloadsRequest
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<ConstructionPayloadsRequest> for ConstructionPayloadsRequest
impl PartialEq<ConstructionPayloadsRequest> for ConstructionPayloadsRequest
source§fn eq(&self, other: &ConstructionPayloadsRequest) -> bool
fn eq(&self, other: &ConstructionPayloadsRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConstructionPayloadsRequest
impl StructuralEq for ConstructionPayloadsRequest
impl StructuralPartialEq for ConstructionPayloadsRequest
Auto Trait Implementations§
impl RefUnwindSafe for ConstructionPayloadsRequest
impl Send for ConstructionPayloadsRequest
impl Sync for ConstructionPayloadsRequest
impl Unpin for ConstructionPayloadsRequest
impl UnwindSafe for ConstructionPayloadsRequest
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