pub struct AnnotationUpsert {
pub source_key: String,
pub stream_id: Uuid,
pub time: DateTime<Utc>,
pub category: String,
pub text: String,
pub standard_curve_id: Option<Uuid>,
}Expand description
One source-authored annotation to register. source_key identifies the
annotation within the source system; registration is idempotent per
(source_system, source_key), so a full-content pass re-asserting the same
key updates in place rather than duplicating.
The API resolves the site and parameter from the stream’s pairing; an
annotation on an unpaired stream is reported back as unpaired and is
re-asserted on a later cycle once the stream is paired.
Fields§
§source_key: String§stream_id: Uuid§time: DateTime<Utc>The instant the annotation covers; the API stores it as a point annotation (start_time == end_time).
category: String§text: String§standard_curve_id: Option<Uuid>The standard curve the source applied to produce the annotated value. The API freezes an
annotation’s curve and text once stored with one, reporting later edits as frozen.
Trait Implementations§
Source§impl Clone for AnnotationUpsert
impl Clone for AnnotationUpsert
Source§fn clone(&self) -> AnnotationUpsert
fn clone(&self) -> AnnotationUpsert
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 AnnotationUpsert
impl Debug for AnnotationUpsert
Source§impl<'de> Deserialize<'de> for AnnotationUpsert
impl<'de> Deserialize<'de> for AnnotationUpsert
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
Auto Trait Implementations§
impl Freeze for AnnotationUpsert
impl RefUnwindSafe for AnnotationUpsert
impl Send for AnnotationUpsert
impl Sync for AnnotationUpsert
impl Unpin for AnnotationUpsert
impl UnsafeUnpin for AnnotationUpsert
impl UnwindSafe for AnnotationUpsert
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