pub struct AnnotationTimeline { /* private fields */ }Expand description
Deterministic annotation schedule and research-only retention.
Implementations§
Source§impl AnnotationTimeline
impl AnnotationTimeline
pub fn new(limits: AnnotationLimits) -> Self
pub fn add( &mut self, annotation: StrategyAnnotation, advanced_through: Option<NaiveDateTime>, ) -> Result<(), AnnotationError>
pub fn pending_causal(&self) -> &[StrategyAnnotation]
pub fn research_only(&self) -> &[StrategyAnnotation]
pub fn total_count(&self) -> usize
Trait Implementations§
Source§impl Clone for AnnotationTimeline
impl Clone for AnnotationTimeline
Source§fn clone(&self) -> AnnotationTimeline
fn clone(&self) -> AnnotationTimeline
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 moreAuto Trait Implementations§
impl Freeze for AnnotationTimeline
impl RefUnwindSafe for AnnotationTimeline
impl Send for AnnotationTimeline
impl Sync for AnnotationTimeline
impl Unpin for AnnotationTimeline
impl UnsafeUnpin for AnnotationTimeline
impl UnwindSafe for AnnotationTimeline
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