Struct levana_perpswap_cosmos::contracts::market::delta_neutrality_fee::DeltaNeutralityFeeEvent
source · pub struct DeltaNeutralityFeeEvent {
pub amount: Signed<Collateral>,
pub total_funds_before: Collateral,
pub total_funds_after: Collateral,
pub reason: DeltaNeutralityFeeReason,
pub protocol_amount: Collateral,
}
Expand description
Event when a delta neutrality payment is made.
Fields§
§amount: Signed<Collateral>
Amount of the fee. Negative means paid to trader.
total_funds_before: Collateral
Fund size before
total_funds_after: Collateral
Fund size after
reason: DeltaNeutralityFeeReason
Action taken by trader
protocol_amount: Collateral
Amount taken for the protocol tax
Trait Implementations§
source§impl Clone for DeltaNeutralityFeeEvent
impl Clone for DeltaNeutralityFeeEvent
source§fn clone(&self) -> DeltaNeutralityFeeEvent
fn clone(&self) -> DeltaNeutralityFeeEvent
Returns a copy 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 From<DeltaNeutralityFeeEvent> for Event
impl From<DeltaNeutralityFeeEvent> for Event
source§fn from(src: DeltaNeutralityFeeEvent) -> Self
fn from(src: DeltaNeutralityFeeEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeltaNeutralityFeeEvent
impl RefUnwindSafe for DeltaNeutralityFeeEvent
impl Send for DeltaNeutralityFeeEvent
impl Sync for DeltaNeutralityFeeEvent
impl Unpin for DeltaNeutralityFeeEvent
impl UnwindSafe for DeltaNeutralityFeeEvent
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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