Struct celestia_types::blob::GasPrice
source · pub struct GasPrice(/* private fields */);
Expand description
GasPrice represents the amount to be paid per gas unit.
Fee is set by multiplying GasPrice by GasLimit, which is determined by the blob sizes.
If no value is provided, then this will be serialized to -1.0
which means the node that
receives the request will calculate the GasPrice for given blob.
Read more about the mechanisms of fees and gas usage in submitting data blobs
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for GasPrice
impl<'de> Deserialize<'de> for GasPrice
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 GasPrice
impl PartialEq for GasPrice
impl Copy for GasPrice
impl StructuralPartialEq for GasPrice
Auto Trait Implementations§
impl Freeze for GasPrice
impl RefUnwindSafe for GasPrice
impl Send for GasPrice
impl Sync for GasPrice
impl Unpin for GasPrice
impl UnwindSafe for GasPrice
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