Struct beaker::GlobalConfig
source · pub struct GlobalConfig { /* private fields */ }Implementations§
source§impl GlobalConfig
impl GlobalConfig
sourcepub fn gas_price(&self) -> &String
pub fn gas_price(&self) -> &String
Gas price used for calculating fee
fee = ceil(gas_limit * gas_price)
gas_limit will be simulated if left unchecked
sourcepub fn gas_adjustment(&self) -> &f64
pub fn gas_adjustment(&self) -> &f64
Adjusting gas_limit from simulated gas as a safety factor to make sure gas_limit is enought for the tx.
When user doesn’t specify gas_limit, gas_limit = simulated_gas * gas_adjustment,
while simulated_gas is simulated gas consumption for the tx.
sourcepub fn account_prefix(&self) -> &String
pub fn account_prefix(&self) -> &String
Prefix for the address
sourcepub fn derivation_path(&self) -> &String
pub fn derivation_path(&self) -> &String
BIP-32 derivation path used for creating account from mnemonic
Trait Implementations§
source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
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 GlobalConfig
impl Debug for GlobalConfig
source§impl Default for GlobalConfig
impl Default for GlobalConfig
source§impl<'de> Deserialize<'de> for GlobalConfig
impl<'de> Deserialize<'de> for GlobalConfig
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 GetDataDocs for GlobalConfig
impl GetDataDocs for GlobalConfig
fn get_data_docs() -> Vec<DataDoc>
Auto Trait Implementations§
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.