pub struct FundingRateHistory {
pub symbol: Option<String>,
pub funding_rate: Option<f64>,
pub timestamp: Option<i64>,
pub datetime: Option<String>,
pub raw: Value,
}Expand description
One historical funding-rate sample (each row of fetchFundingRateHistory).
Mirrors the TS FundingRateHistory interface. Distinct from
FundingRate, which is the live snapshot with next/previous rates.
Fields§
§symbol: Option<String>§funding_rate: Option<f64>§timestamp: Option<i64>§datetime: Option<String>§raw: ValueImplementations§
Source§impl FundingRateHistory
impl FundingRateHistory
pub fn from_value(v: Value) -> Self
Trait Implementations§
Source§impl Clone for FundingRateHistory
impl Clone for FundingRateHistory
Source§fn clone(&self) -> FundingRateHistory
fn clone(&self) -> FundingRateHistory
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 moreSource§impl Debug for FundingRateHistory
impl Debug for FundingRateHistory
Source§impl Default for FundingRateHistory
impl Default for FundingRateHistory
Source§fn default() -> FundingRateHistory
fn default() -> FundingRateHistory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FundingRateHistory
impl RefUnwindSafe for FundingRateHistory
impl Send for FundingRateHistory
impl Sync for FundingRateHistory
impl Unpin for FundingRateHistory
impl UnsafeUnpin for FundingRateHistory
impl UnwindSafe for FundingRateHistory
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