pub struct GasThresholds {
pub max_increase_percent: Option<f64>,
pub max_increase_absolute: Option<u64>,
}Expand description
Gas-related thresholds
Fields§
§max_increase_percent: Option<f64>Maximum allowed gas increase percentage
max_increase_absolute: Option<u64>Maximum allowed absolute gas increase
Trait Implementations§
Source§impl Clone for GasThresholds
impl Clone for GasThresholds
Source§fn clone(&self) -> GasThresholds
fn clone(&self) -> GasThresholds
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 Debug for GasThresholds
impl Debug for GasThresholds
Source§impl Default for GasThresholds
impl Default for GasThresholds
Source§fn default() -> GasThresholds
fn default() -> GasThresholds
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GasThresholds
impl<'de> Deserialize<'de> for GasThresholds
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
Auto Trait Implementations§
impl Freeze for GasThresholds
impl RefUnwindSafe for GasThresholds
impl Send for GasThresholds
impl Sync for GasThresholds
impl Unpin for GasThresholds
impl UnsafeUnpin for GasThresholds
impl UnwindSafe for GasThresholds
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