pub struct CostEstimationHints {
pub disabled: Option<bool>,
pub expected_signatures: Option<Vec<ExpectedSignatures>>,
}Expand description
CostEstimationHints : Hints to improve cost estimation precision of a prepared transaction
Fields§
§disabled: Option<bool>Disable cost estimation Default (not set) is false Optional
expected_signatures: Option<Vec<ExpectedSignatures>>Details on the keys that will be used to sign the transaction (how many and of which type). Signature size impacts the cost of the transaction. If empty, the signature sizes will be approximated with threshold-many signatures (where threshold is defined in the PartyToKeyMapping of the external party), using keys in the order they are registered. Empty list is equivalent to not providing this field Optional: can be empty
Implementations§
Source§impl CostEstimationHints
impl CostEstimationHints
Sourcepub fn new() -> CostEstimationHints
pub fn new() -> CostEstimationHints
Hints to improve cost estimation precision of a prepared transaction
Trait Implementations§
Source§impl Clone for CostEstimationHints
impl Clone for CostEstimationHints
Source§fn clone(&self) -> CostEstimationHints
fn clone(&self) -> CostEstimationHints
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 CostEstimationHints
impl Debug for CostEstimationHints
Source§impl Default for CostEstimationHints
impl Default for CostEstimationHints
Source§fn default() -> CostEstimationHints
fn default() -> CostEstimationHints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CostEstimationHints
impl<'de> Deserialize<'de> for CostEstimationHints
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 for CostEstimationHints
impl PartialEq for CostEstimationHints
Source§impl Serialize for CostEstimationHints
impl Serialize for CostEstimationHints
impl StructuralPartialEq for CostEstimationHints
Auto Trait Implementations§
impl Freeze for CostEstimationHints
impl RefUnwindSafe for CostEstimationHints
impl Send for CostEstimationHints
impl Sync for CostEstimationHints
impl Unpin for CostEstimationHints
impl UnsafeUnpin for CostEstimationHints
impl UnwindSafe for CostEstimationHints
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