pub enum PnlFidelity {
OneDay,
EighteenHours,
TwelveHours,
ThreeHours,
OneHour,
}Expand description
Sampling resolution for a PnL series.
Upstream rejects anything outside this set with
"the 'fidelity' value is unkonwn. Known values: '1d', '18h', '12h', '3h', '1h'"
(typo theirs).
Variants§
OneDay
One point per day (default).
EighteenHours
One point per 18 hours.
TwelveHours
One point per 12 hours.
ThreeHours
One point per 3 hours.
OneHour
One point per hour.
Trait Implementations§
Source§impl Clone for PnlFidelity
impl Clone for PnlFidelity
Source§fn clone(&self) -> PnlFidelity
fn clone(&self) -> PnlFidelity
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 moreimpl Copy for PnlFidelity
Source§impl Debug for PnlFidelity
impl Debug for PnlFidelity
Source§impl Default for PnlFidelity
impl Default for PnlFidelity
Source§fn default() -> PnlFidelity
fn default() -> PnlFidelity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PnlFidelity
impl<'de> Deserialize<'de> for PnlFidelity
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 Display for PnlFidelity
impl Display for PnlFidelity
impl Eq for PnlFidelity
Source§impl PartialEq for PnlFidelity
impl PartialEq for PnlFidelity
Source§impl Serialize for PnlFidelity
impl Serialize for PnlFidelity
impl StructuralPartialEq for PnlFidelity
Auto Trait Implementations§
impl Freeze for PnlFidelity
impl RefUnwindSafe for PnlFidelity
impl Send for PnlFidelity
impl Sync for PnlFidelity
impl Unpin for PnlFidelity
impl UnsafeUnpin for PnlFidelity
impl UnwindSafe for PnlFidelity
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>,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.