pub struct OperatorFeeUpdate {
pub operator_fee_scalar: u32,
pub operator_fee_constant: u64,
}Expand description
The Operator Fee update type.
Fields§
§operator_fee_scalar: u32The operator fee scalar.
operator_fee_constant: u64The operator fee constant.
Implementations§
Source§impl OperatorFeeUpdate
impl OperatorFeeUpdate
Sourcepub fn apply(&self, config: &mut SystemConfig)
pub fn apply(&self, config: &mut SystemConfig)
Applies the update to the SystemConfig.
Trait Implementations§
Source§impl Clone for OperatorFeeUpdate
impl Clone for OperatorFeeUpdate
Source§fn clone(&self) -> OperatorFeeUpdate
fn clone(&self) -> OperatorFeeUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperatorFeeUpdate
impl Debug for OperatorFeeUpdate
Source§impl Default for OperatorFeeUpdate
impl Default for OperatorFeeUpdate
Source§fn default() -> OperatorFeeUpdate
fn default() -> OperatorFeeUpdate
Returns the “default value” for a type. Read more
Source§impl Hash for OperatorFeeUpdate
impl Hash for OperatorFeeUpdate
Source§impl PartialEq for OperatorFeeUpdate
impl PartialEq for OperatorFeeUpdate
Source§impl TryFrom<&SystemConfigLog> for OperatorFeeUpdate
impl TryFrom<&SystemConfigLog> for OperatorFeeUpdate
Source§type Error = OperatorFeeUpdateError
type Error = OperatorFeeUpdateError
The type returned in the event of a conversion error.
Source§fn try_from(
log: &SystemConfigLog,
) -> Result<OperatorFeeUpdate, <OperatorFeeUpdate as TryFrom<&SystemConfigLog>>::Error>
fn try_from( log: &SystemConfigLog, ) -> Result<OperatorFeeUpdate, <OperatorFeeUpdate as TryFrom<&SystemConfigLog>>::Error>
Performs the conversion.
impl Eq for OperatorFeeUpdate
impl StructuralPartialEq for OperatorFeeUpdate
Auto Trait Implementations§
impl Freeze for OperatorFeeUpdate
impl RefUnwindSafe for OperatorFeeUpdate
impl Send for OperatorFeeUpdate
impl Sync for OperatorFeeUpdate
impl Unpin for OperatorFeeUpdate
impl UnwindSafe for OperatorFeeUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more