pub struct GetGasPrice<'a> { /* private fields */ }Expand description
Builder for [Client::get_gas_price]
[`Client::get_gas_price`]: super::Client::get_gas_priceImplementations§
Source§impl<'a> GetGasPrice<'a>
impl<'a> GetGasPrice<'a>
pub fn new(client: &'a Client) -> Self
pub fn chain<V>(self, value: V) -> Selfwhere
V: TryInto<GetGasPriceChain>,
Sourcepub async fn send(self) -> Result<ResponseValue<GasPriceResponse>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<GasPriceResponse>, Error<()>>
Sends a GET request to /v1/transaction/{chain}/gas-price
Trait Implementations§
Source§impl<'a> Clone for GetGasPrice<'a>
impl<'a> Clone for GetGasPrice<'a>
Source§fn clone(&self) -> GetGasPrice<'a>
fn clone(&self) -> GetGasPrice<'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 moreAuto Trait Implementations§
impl<'a> Freeze for GetGasPrice<'a>
impl<'a> !RefUnwindSafe for GetGasPrice<'a>
impl<'a> Send for GetGasPrice<'a>
impl<'a> Sync for GetGasPrice<'a>
impl<'a> Unpin for GetGasPrice<'a>
impl<'a> !UnwindSafe for GetGasPrice<'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