Expand description
Adapters from Lightstreamer ItemUpdate to presentation-layer DTOs
Adapters from Lightstreamer ItemUpdate to the presentation-layer DTOs.
The presentation DTOs stay transport-agnostic: they expose pure
from_fields(..) constructors that take plain field maps. This module is the
only place that depends on lightstreamer_rs; it reads an ItemUpdate and
feeds the extracted metadata / field maps into those pure constructors.
Both a Result-returning function (for callers that want to observe parse
failures) and the From<&ItemUpdate> conversions (which degrade to a default
on failure, preserving the previous streaming behaviour) are provided per
type.
Functionsยง
- account_
data_ from_ item_ update - Converts a Lightstreamer
ItemUpdateinto anAccountData. - chart_
data_ from_ item_ update - Converts a Lightstreamer
ItemUpdateinto aChartData. - market_
data_ from_ item_ update - Converts a Lightstreamer
ItemUpdateinto aPresentationMarketData. - price_
data_ from_ item_ update - Converts a Lightstreamer
ItemUpdateinto aPriceData. - trade_
data_ from_ item_ update - Converts a Lightstreamer
ItemUpdateinto aTradeData.