pub struct ComputeGasParams<'a> {
pub account_balance: &'a Tokens,
pub message_balance: &'a Tokens,
pub is_special: bool,
pub is_tx_ordinary: bool,
pub is_in_msg_external: bool,
}Expand description
An input of GasLimitsPrices::compute_gas_params.
Fields§
§account_balance: &'a TokensAccount balance in native currency.
message_balance: &'a TokensMessage balance in native currency.
is_special: boolWhether the account is present in a fundamental addresses list.
is_tx_ordinary: boolWhether the gas is computed for an ordinary transaction.
is_in_msg_external: boolWhether the received message is external.
Trait Implementations§
Source§impl<'a> Clone for ComputeGasParams<'a>
impl<'a> Clone for ComputeGasParams<'a>
Source§fn clone(&self) -> ComputeGasParams<'a>
fn clone(&self) -> ComputeGasParams<'a>
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<'a> Debug for ComputeGasParams<'a>
impl<'a> Debug for ComputeGasParams<'a>
impl<'a> Copy for ComputeGasParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComputeGasParams<'a>
impl<'a> RefUnwindSafe for ComputeGasParams<'a>
impl<'a> Send for ComputeGasParams<'a>
impl<'a> Sync for ComputeGasParams<'a>
impl<'a> Unpin for ComputeGasParams<'a>
impl<'a> UnsafeUnpin for ComputeGasParams<'a>
impl<'a> UnwindSafe for ComputeGasParams<'a>
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