pub struct FundingRateData {
pub timestamp: u64,
pub index_price: f64,
pub interest_8h: f64,
pub interest_1h: f64,
pub prev_index_price: f64,
}Expand description
Funding rate data structure for historical funding rates
Fields§
§timestamp: u64Timestamp of the funding event
index_price: f64Index price at the time
interest_8h: f648h interest rate
interest_1h: f641h interest rate
prev_index_price: f64Previous index price
Implementations§
Trait Implementations§
Source§impl Clone for FundingRateData
impl Clone for FundingRateData
Source§fn clone(&self) -> FundingRateData
fn clone(&self) -> FundingRateData
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 FundingRateData
impl Debug for FundingRateData
Source§impl<'de> Deserialize<'de> for FundingRateData
impl<'de> Deserialize<'de> for FundingRateData
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 Display for FundingRateData
impl Display for FundingRateData
Auto Trait Implementations§
impl Freeze for FundingRateData
impl RefUnwindSafe for FundingRateData
impl Send for FundingRateData
impl Sync for FundingRateData
impl Unpin for FundingRateData
impl UnwindSafe for FundingRateData
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