#[repr(C)]pub struct FundingSettlement {
pub trader_id: TraderId,
pub instrument_id: InstrumentId,
pub account_id: AccountId,
pub rate: Decimal,
pub settlement_price: Price,
pub currency: Currency,
pub event_id: UUID4,
pub ts_event: UnixNanos,
pub ts_init: UnixNanos,
}Expand description
Represents a funding settlement for a perpetual swap instrument.
Fields§
§trader_id: TraderIdThe trader ID associated with the event.
instrument_id: InstrumentIdThe instrument ID for the settlement.
account_id: AccountIdThe account ID receiving the settlement.
rate: DecimalThe funding rate applied for the settlement.
settlement_price: PriceThe mark or settlement price used to value open positions.
currency: CurrencyThe currency for resulting funding payments.
event_id: UUID4The unique identifier for the event.
ts_event: UnixNanosUNIX timestamp (nanoseconds) when the event occurred.
ts_init: UnixNanosUNIX timestamp (nanoseconds) when the event was initialized.
Implementations§
Source§impl FundingSettlement
impl FundingSettlement
Sourcepub const fn new(
trader_id: TraderId,
instrument_id: InstrumentId,
account_id: AccountId,
rate: Decimal,
settlement_price: Price,
currency: Currency,
event_id: UUID4,
ts_event: UnixNanos,
ts_init: UnixNanos,
) -> Self
pub const fn new( trader_id: TraderId, instrument_id: InstrumentId, account_id: AccountId, rate: Decimal, settlement_price: Price, currency: Currency, event_id: UUID4, ts_event: UnixNanos, ts_init: UnixNanos, ) -> Self
Creates a new FundingSettlement instance.
Trait Implementations§
Source§impl Clone for FundingSettlement
impl Clone for FundingSettlement
Source§fn clone(&self) -> FundingSettlement
fn clone(&self) -> FundingSettlement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FundingSettlement
Source§impl Debug for FundingSettlement
impl Debug for FundingSettlement
Source§impl<'de> Deserialize<'de> for FundingSettlement
impl<'de> Deserialize<'de> for FundingSettlement
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 HasTsInit for FundingSettlement
impl HasTsInit for FundingSettlement
Source§impl PartialEq for FundingSettlement
impl PartialEq for FundingSettlement
Source§fn eq(&self, other: &FundingSettlement) -> bool
fn eq(&self, other: &FundingSettlement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FundingSettlement
impl Serialize for FundingSettlement
impl StructuralPartialEq for FundingSettlement
Auto Trait Implementations§
impl Freeze for FundingSettlement
impl RefUnwindSafe for FundingSettlement
impl Send for FundingSettlement
impl Sync for FundingSettlement
impl Unpin for FundingSettlement
impl UnsafeUnpin for FundingSettlement
impl UnwindSafe for FundingSettlement
Blanket Implementations§
impl<T> Allocation for T
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