pub struct StableSurgeHookState {
pub hook_type: String,
pub amp: BigInt,
pub surge_threshold_percentage: BigInt,
pub max_surge_fee_percentage: BigInt,
}
Expand description
Stable surge hook state
Fields§
§hook_type: String
Hook type
amp: BigInt
Amplification parameter
surge_threshold_percentage: BigInt
Surge threshold percentage (scaled 18)
max_surge_fee_percentage: BigInt
Maximum surge fee percentage (scaled 18)
Trait Implementations§
Source§impl Clone for StableSurgeHookState
impl Clone for StableSurgeHookState
Source§fn clone(&self) -> StableSurgeHookState
fn clone(&self) -> StableSurgeHookState
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 StableSurgeHookState
impl Debug for StableSurgeHookState
Source§impl Default for StableSurgeHookState
impl Default for StableSurgeHookState
Source§impl<'de> Deserialize<'de> for StableSurgeHookState
impl<'de> Deserialize<'de> for StableSurgeHookState
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 HookStateBase for StableSurgeHookState
impl HookStateBase for StableSurgeHookState
Source§impl PartialEq for StableSurgeHookState
impl PartialEq for StableSurgeHookState
Source§impl Serialize for StableSurgeHookState
impl Serialize for StableSurgeHookState
impl StructuralPartialEq for StableSurgeHookState
Auto Trait Implementations§
impl Freeze for StableSurgeHookState
impl RefUnwindSafe for StableSurgeHookState
impl Send for StableSurgeHookState
impl Sync for StableSurgeHookState
impl Unpin for StableSurgeHookState
impl UnwindSafe for StableSurgeHookState
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