pub struct ConstructionMetadataResponse {
pub metadata: Value,
pub suggested_fee: Option<Vec<Amount>>,
}
Expand description
ConstructionMetadataResponse : The ConstructionMetadataResponse returns network-specific metadata used for transaction construction. Optionally, the implementer can return the suggested fee associated with the transaction being constructed. The caller may use this info to adjust the intent of the transaction or to create a transaction with a different account that can pay the suggested fee. Suggested fee is an array in case fee payment must occur in multiple currencies.
Fields§
§metadata: Value
§suggested_fee: Option<Vec<Amount>>
Implementations§
source§impl ConstructionMetadataResponse
impl ConstructionMetadataResponse
sourcepub fn new(metadata: Value) -> ConstructionMetadataResponse
pub fn new(metadata: Value) -> ConstructionMetadataResponse
The ConstructionMetadataResponse returns network-specific metadata used for transaction construction. Optionally, the implementer can return the suggested fee associated with the transaction being constructed. The caller may use this info to adjust the intent of the transaction or to create a transaction with a different account that can pay the suggested fee. Suggested fee is an array in case fee payment must occur in multiple currencies.
Trait Implementations§
source§impl Clone for ConstructionMetadataResponse
impl Clone for ConstructionMetadataResponse
source§fn clone(&self) -> ConstructionMetadataResponse
fn clone(&self) -> ConstructionMetadataResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConstructionMetadataResponse
impl Debug for ConstructionMetadataResponse
source§impl Default for ConstructionMetadataResponse
impl Default for ConstructionMetadataResponse
source§fn default() -> ConstructionMetadataResponse
fn default() -> ConstructionMetadataResponse
source§impl<'de> Deserialize<'de> for ConstructionMetadataResponse
impl<'de> Deserialize<'de> for ConstructionMetadataResponse
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>,
source§impl PartialEq<ConstructionMetadataResponse> for ConstructionMetadataResponse
impl PartialEq<ConstructionMetadataResponse> for ConstructionMetadataResponse
source§fn eq(&self, other: &ConstructionMetadataResponse) -> bool
fn eq(&self, other: &ConstructionMetadataResponse) -> bool
self
and other
values to be equal, and is used
by ==
.