pub struct GetOrderbookHeatmapResponseOwnedView(/* private fields */);Expand description
Self-contained, 'static owned view of a GetOrderbookHeatmapResponse message.
Wraps ::buffa::OwnedView<GetOrderbookHeatmapResponseView<'static>>: the decoded view and the ::buffa::bytes::Bytes buffer it borrows from travel together, so the handle is 'static and Send + Sync — suitable for async handlers, spawned tasks, and anywhere a 'static bound is required.
Field accessors return borrows tied to &self. Use Self::view to get the full GetOrderbookHeatmapResponseView when you need struct patterns, iteration helpers, or to pass the view to lifetime-parameterised code.
Implementations§
Source§impl GetOrderbookHeatmapResponseOwnedView
impl GetOrderbookHeatmapResponseOwnedView
Sourcepub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
pub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
Decode an owned view from a ::buffa::bytes::Bytes buffer.
The view borrows directly from the buffer’s data; the buffer is retained inside the returned handle.
§Errors
Returns ::buffa::DecodeError if the buffer contains invalid
protobuf data.
Sourcepub fn decode_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self, DecodeError>
pub fn decode_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self, DecodeError>
Decode with custom ::buffa::DecodeOptions (recursion limit,
max message size).
§Errors
Returns ::buffa::DecodeError if the buffer is invalid or
exceeds the configured limits.
Sourcepub fn from_owned(
msg: &GetOrderbookHeatmapResponse,
) -> Result<Self, DecodeError>
pub fn from_owned( msg: &GetOrderbookHeatmapResponse, ) -> Result<Self, DecodeError>
Build from an owned message via an encode → decode round-trip.
§Errors
Returns ::buffa::DecodeError if the re-encoded bytes are
somehow invalid (should not happen for well-formed messages).
Sourcepub fn view(&self) -> &GetOrderbookHeatmapResponseView<'_>
pub fn view(&self) -> &GetOrderbookHeatmapResponseView<'_>
Borrow the full GetOrderbookHeatmapResponseView with its lifetime tied to &self.
Sourcepub fn to_owned_message(
&self,
) -> Result<GetOrderbookHeatmapResponse, DecodeError>
pub fn to_owned_message( &self, ) -> Result<GetOrderbookHeatmapResponse, DecodeError>
Convert to the owned message type.
§Errors
Returns an error if re-materializing preserved unknown fields fails (e.g. the unknown-field limit is exceeded).
Sourcepub fn into_bytes(self) -> Bytes
pub fn into_bytes(self) -> Bytes
Consume the handle, returning the underlying bytes buffer.
Sourcepub fn symbol_id(&self) -> u32
pub fn symbol_id(&self) -> u32
Numeric spot market identifier returned for the requested market.
Field 1: symbol_id
Sourcepub fn interval(&self) -> EnumValue<HeatmapInterval>
pub fn interval(&self) -> EnumValue<HeatmapInterval>
Bucket interval used for the returned chain.
Field 2: interval
Sourcepub fn depth(&self) -> EnumValue<HeatmapDepth>
pub fn depth(&self) -> EnumValue<HeatmapDepth>
Top-N depth requested per side.
Field 3: depth
Sourcepub fn chain(&self) -> &MessageFieldView<HeatmapDeltaChainView<'_>>
pub fn chain(&self) -> &MessageFieldView<HeatmapDeltaChainView<'_>>
Always returned as snapshot + sparse deltas for the requested interval.
Field 4: chain
Sourcepub fn last_persisted_ts_sec(&self) -> u64
pub fn last_persisted_ts_sec(&self) -> u64
Latest finalized historical bucket timestamp in seconds since epoch (UTC).
Field 5: last_persisted_ts_sec
Sourcepub fn live_from_book_seq_end(&self) -> u64
pub fn live_from_book_seq_end(&self) -> u64
Book sequence anchor for realtime continuation; apply live updates where book_seq_end is greater than this value.
Field 6: live_from_book_seq_end
Sourcepub fn has_live_anchor(&self) -> bool
pub fn has_live_anchor(&self) -> bool
True when live_from_book_seq_end is available and can be used as a realtime continuation anchor.
Field 7: has_live_anchor
Sourcepub fn next_page_token(&self) -> &str
pub fn next_page_token(&self) -> &str
Opaque cursor for the next page. Empty when no more results exist.
Field 8: next_page_token
Sourcepub fn server_time_sec(&self) -> u64
pub fn server_time_sec(&self) -> u64
Server response time in seconds since epoch (UTC).
Field 10: server_time_sec
Sourcepub fn quantity_mode(&self) -> EnumValue<HeatmapQuantityMode>
pub fn quantity_mode(&self) -> EnumValue<HeatmapQuantityMode>
Quantity mode used for all qty_scaled values in the response.
Field 11: quantity_mode
Sourcepub fn live_bucket(&self) -> &MessageFieldView<HeatmapLiveBucketView<'_>>
pub fn live_bucket(&self) -> &MessageFieldView<HeatmapLiveBucketView<'_>>
Optional latest live bucket for the requested interval and depth. Present only when it is newer than the historical anchor and its quantity semantics match quantity_mode.
Field 12: live_bucket
Trait Implementations§
Source§impl AsRef<OwnedView<GetOrderbookHeatmapResponseView<'static>>> for GetOrderbookHeatmapResponseOwnedView
impl AsRef<OwnedView<GetOrderbookHeatmapResponseView<'static>>> for GetOrderbookHeatmapResponseOwnedView
Source§fn as_ref(&self) -> &OwnedView<GetOrderbookHeatmapResponseView<'static>>
fn as_ref(&self) -> &OwnedView<GetOrderbookHeatmapResponseView<'static>>
Source§impl Clone for GetOrderbookHeatmapResponseOwnedView
impl Clone for GetOrderbookHeatmapResponseOwnedView
Source§fn clone(&self) -> GetOrderbookHeatmapResponseOwnedView
fn clone(&self) -> GetOrderbookHeatmapResponseOwnedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more