Struct beaker::GlobalConfig
source · [−]pub struct GlobalConfig { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Debug for GlobalConfig
impl Debug for GlobalConfig
sourceimpl Default for GlobalConfig
impl Default for GlobalConfig
sourceimpl<'de> Deserialize<'de> for GlobalConfig
impl<'de> Deserialize<'de> for GlobalConfig
sourcefn 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
sourceimpl GetDataDocs for GlobalConfig
impl GetDataDocs for GlobalConfig
sourceimpl Serialize for GlobalConfig
impl Serialize for GlobalConfig
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
impl<T> NoneValue for T where
T: Default,
impl<T> NoneValue for T where
T: Default,
type NoneType = T
fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more