pub struct StrategyAnnotation { /* private fields */ }Expand description
One validated manual causal input or research-only record.
Implementations§
Source§impl StrategyAnnotation
impl StrategyAnnotation
pub fn new( annotation_id: AnnotationId, input_sequence: u64, created_at: NaiveDateTime, observed_through: NaiveDateTime, valid_from: Option<NaiveDateTime>, use_kind: AnnotationUse, symbol: impl Into<String>, source_series: Vec<SeriesId>, value: StrategyObservationValue, note: Option<String>, limits: AnnotationLimits, ) -> Result<Self, AnnotationError>
pub fn annotation_id(&self) -> &AnnotationId
pub fn input_sequence(&self) -> u64
pub fn created_at(&self) -> NaiveDateTime
pub fn observed_through(&self) -> NaiveDateTime
pub fn valid_from(&self) -> Option<NaiveDateTime>
pub fn use_kind(&self) -> AnnotationUse
pub fn symbol(&self) -> &str
pub fn source_series(&self) -> &[SeriesId]
pub fn value(&self) -> &StrategyObservationValue
pub fn note(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for StrategyAnnotation
impl Clone for StrategyAnnotation
Source§fn clone(&self) -> StrategyAnnotation
fn clone(&self) -> StrategyAnnotation
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 StrategyAnnotation
impl Debug for StrategyAnnotation
Source§impl<'de> Deserialize<'de> for StrategyAnnotation
impl<'de> Deserialize<'de> for StrategyAnnotation
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 PartialEq for StrategyAnnotation
impl PartialEq for StrategyAnnotation
Source§impl Serialize for StrategyAnnotation
impl Serialize for StrategyAnnotation
impl StructuralPartialEq for StrategyAnnotation
Auto Trait Implementations§
impl Freeze for StrategyAnnotation
impl RefUnwindSafe for StrategyAnnotation
impl Send for StrategyAnnotation
impl Sync for StrategyAnnotation
impl Unpin for StrategyAnnotation
impl UnsafeUnpin for StrategyAnnotation
impl UnwindSafe for StrategyAnnotation
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