pub struct MovingAverageUpdate {
pub symbol: String,
pub indicator_type: String,
pub period: i32,
pub value: f64,
pub timestamp: DateTime<Utc>,
}Expand description
Moving average update for real-time indicator streaming.
Fields§
§symbol: StringStock symbol
indicator_type: StringIndicator type (e.g., “SMA”, “EMA”)
period: i32Period for the moving average
value: f64Calculated value
timestamp: DateTime<Utc>Timestamp of the calculation
Trait Implementations§
Source§impl Clone for MovingAverageUpdate
impl Clone for MovingAverageUpdate
Source§fn clone(&self) -> MovingAverageUpdate
fn clone(&self) -> MovingAverageUpdate
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 MovingAverageUpdate
impl Debug for MovingAverageUpdate
Source§impl<'de> Deserialize<'de> for MovingAverageUpdate
impl<'de> Deserialize<'de> for MovingAverageUpdate
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 MovingAverageUpdate
impl RefUnwindSafe for MovingAverageUpdate
impl Send for MovingAverageUpdate
impl Sync for MovingAverageUpdate
impl Unpin for MovingAverageUpdate
impl UnsafeUnpin for MovingAverageUpdate
impl UnwindSafe for MovingAverageUpdate
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