pub struct PriceZone { /* private fields */ }Expand description
One validated immutable price-zone snapshot.
Implementations§
Source§impl PriceZone
impl PriceZone
pub fn new( zone_id: ZoneId, side: ZoneSide, lower: f64, upper: f64, created_at: NaiveDateTime, touch_count: u32, state: ZoneState, source: ZoneSource, ) -> Result<Self, AnalysisError>
pub fn zone_id(&self) -> &ZoneId
pub fn side(&self) -> ZoneSide
pub fn lower(&self) -> f64
pub fn upper(&self) -> f64
pub fn created_at(&self) -> NaiveDateTime
pub fn touch_count(&self) -> u32
pub fn state(&self) -> ZoneState
pub fn source(&self) -> ZoneSource
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PriceZone
impl<'de> Deserialize<'de> for PriceZone
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
impl StructuralPartialEq for PriceZone
Auto Trait Implementations§
impl Freeze for PriceZone
impl RefUnwindSafe for PriceZone
impl Send for PriceZone
impl Sync for PriceZone
impl Unpin for PriceZone
impl UnsafeUnpin for PriceZone
impl UnwindSafe for PriceZone
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