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 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 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<ConstructionPayloadsRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConstructionPayloadsRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ConstructionPayloadsRequest
impl Serialize for ConstructionPayloadsRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ConstructionPayloadsRequest
impl StructuralPartialEq for ConstructionPayloadsRequest
Auto Trait Implementations§
impl Freeze for ConstructionPayloadsRequest
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