pub struct StreamingUpdate {
pub item_name: Option<String>,
pub item_pos: usize,
pub is_snapshot: bool,
pub fields: HashMap<String, Option<String>>,
pub changed_fields: HashMap<String, Option<String>>,
}streaming only.Expand description
One Lightstreamer item update, owned and free of borrowed schema state.
This is the boundary type between lightstreamer-rs and this crate’s
presentation DTOs. It is deliberately constructible by hand so that the
field parsers can be exercised from captured IG payloads without a live
session — the streaming crate’s own ItemUpdate cannot be built outside
that crate.
A None field value means the server said the field has no value
(FieldValue::Null); Some("") means it sent an empty one. The two are
different answers and are kept apart.
Fields§
§item_name: Option<String>The item name the subscription declared for this position, when it
declared one. None for a server-resolved item group, where the
protocol never transmits names.
item_pos: usizeThe item’s 1-based position within the subscription.
is_snapshot: boolWhether this update carries snapshot content rather than a live change.
fields: HashMap<String, Option<String>>The complete state of the item after this update, keyed by field name.
changed_fields: HashMap<String, Option<String>>Only the fields this update actually carried a value for.
Trait Implementations§
Source§impl Clone for StreamingUpdate
impl Clone for StreamingUpdate
Source§fn clone(&self) -> StreamingUpdate
fn clone(&self) -> StreamingUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamingUpdate
impl Debug for StreamingUpdate
Source§impl Default for StreamingUpdate
impl Default for StreamingUpdate
Source§fn default() -> StreamingUpdate
fn default() -> StreamingUpdate
Source§impl<'de> Deserialize<'de> for StreamingUpdate
impl<'de> Deserialize<'de> for StreamingUpdate
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>,
Source§impl Display for StreamingUpdate
impl Display for StreamingUpdate
impl Eq for StreamingUpdate
Source§impl From<&ItemUpdate> for StreamingUpdate
impl From<&ItemUpdate> for StreamingUpdate
Source§fn from(update: &ItemUpdate) -> Self
fn from(update: &ItemUpdate) -> Self
Source§impl From<&StreamingUpdate> for PriceData
impl From<&StreamingUpdate> for PriceData
Source§fn from(update: &StreamingUpdate) -> Self
fn from(update: &StreamingUpdate) -> Self
Source§impl From<&StreamingUpdate> for PresentationMarketData
impl From<&StreamingUpdate> for PresentationMarketData
Source§fn from(update: &StreamingUpdate) -> Self
fn from(update: &StreamingUpdate) -> Self
Source§impl From<&StreamingUpdate> for ChartData
impl From<&StreamingUpdate> for ChartData
Source§fn from(update: &StreamingUpdate) -> Self
fn from(update: &StreamingUpdate) -> Self
Source§impl From<&StreamingUpdate> for TradeData
impl From<&StreamingUpdate> for TradeData
Source§fn from(update: &StreamingUpdate) -> Self
fn from(update: &StreamingUpdate) -> Self
Source§impl From<&StreamingUpdate> for AccountData
impl From<&StreamingUpdate> for AccountData
Source§fn from(update: &StreamingUpdate) -> Self
fn from(update: &StreamingUpdate) -> Self
Source§impl PartialEq for StreamingUpdate
impl PartialEq for StreamingUpdate
Source§impl Serialize for StreamingUpdate
impl Serialize for StreamingUpdate
impl StructuralPartialEq for StreamingUpdate
Auto Trait Implementations§
impl Freeze for StreamingUpdate
impl RefUnwindSafe for StreamingUpdate
impl Send for StreamingUpdate
impl Sync for StreamingUpdate
impl Unpin for StreamingUpdate
impl UnsafeUnpin for StreamingUpdate
impl UnwindSafe for StreamingUpdate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more