pub struct SessionVwapInput {
pub high: f64,
pub low: f64,
pub close: f64,
pub volume: f64,
pub is_session_start: bool,
}Expand description
Input tuple wrapper for SessionVwap.
Fields§
§high: f64Bar high price.
low: f64Bar low price.
close: f64Bar close price.
volume: f64Bar traded volume.
is_session_start: boolFlag indicating whether this bar begins a new trading session.
Trait Implementations§
Source§impl Clone for SessionVwapInput
impl Clone for SessionVwapInput
impl Copy for SessionVwapInput
Source§impl Debug for SessionVwapInput
impl Debug for SessionVwapInput
Source§impl<'de> Deserialize<'de> for SessionVwapInput
impl<'de> Deserialize<'de> for SessionVwapInput
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
Source§impl From<SessionVwapInput> for (f64, f64, f64, f64, bool)
impl From<SessionVwapInput> for (f64, f64, f64, f64, bool)
Source§fn from(input: SessionVwapInput) -> Self
fn from(input: SessionVwapInput) -> Self
Converts to this type from the input type.
Source§impl Next<SessionVwapInput> for SessionVwap
impl Next<SessionVwapInput> for SessionVwap
type Output = SessionVwapState
Source§fn next(&mut self, input: SessionVwapInput) -> Self::Output
fn next(&mut self, input: SessionVwapInput) -> Self::Output
Process the next input and return the updated output.
Source§impl PartialEq for SessionVwapInput
impl PartialEq for SessionVwapInput
Source§impl Serialize for SessionVwapInput
impl Serialize for SessionVwapInput
impl StructuralPartialEq for SessionVwapInput
Auto Trait Implementations§
impl Forget for SessionVwapInput
impl Freeze for SessionVwapInput
impl Move for SessionVwapInput
impl RefUnwindSafe for SessionVwapInput
impl Send for SessionVwapInput
impl Sync for SessionVwapInput
impl Unpin for SessionVwapInput
impl UnsafeUnpin for SessionVwapInput
impl UnwindSafe for SessionVwapInput
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
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>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.