pub struct FundingRatesResponse {
pub correlation_id: UUID4,
pub client_id: ClientId,
pub instrument_id: InstrumentId,
pub data: BatchView<FundingRateUpdate>,
pub start: Option<UnixNanos>,
pub end: Option<UnixNanos>,
pub ts_init: UnixNanos,
pub params: Option<Params>,
}Fields§
§correlation_id: UUID4§client_id: ClientId§instrument_id: InstrumentId§data: BatchView<FundingRateUpdate>§start: Option<UnixNanos>§end: Option<UnixNanos>§ts_init: UnixNanos§params: Option<Params>Implementations§
Source§impl FundingRatesResponse
impl FundingRatesResponse
Sourcepub fn new(
correlation_id: UUID4,
client_id: ClientId,
instrument_id: InstrumentId,
data: impl Into<BatchView<FundingRateUpdate>>,
start: Option<UnixNanos>,
end: Option<UnixNanos>,
ts_init: UnixNanos,
params: Option<Params>,
) -> Self
pub fn new( correlation_id: UUID4, client_id: ClientId, instrument_id: InstrumentId, data: impl Into<BatchView<FundingRateUpdate>>, start: Option<UnixNanos>, end: Option<UnixNanos>, ts_init: UnixNanos, params: Option<Params>, ) -> Self
Creates a new FundingRatesResponse instance.
Accepts an owned vector, a shared buffer, or a batch view.
Trait Implementations§
Source§impl Clone for FundingRatesResponse
impl Clone for FundingRatesResponse
Source§impl Debug for FundingRatesResponse
impl Debug for FundingRatesResponse
Source§impl<'de> Deserialize<'de> for FundingRatesResponse
impl<'de> Deserialize<'de> for FundingRatesResponse
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
Auto Trait Implementations§
impl Freeze for FundingRatesResponse
impl RefUnwindSafe for FundingRatesResponse
impl Send for FundingRatesResponse
impl Sync for FundingRatesResponse
impl Unpin for FundingRatesResponse
impl UnsafeUnpin for FundingRatesResponse
impl UnwindSafe for FundingRatesResponse
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