#[non_exhaustive]pub struct Observation {
pub count: Option<i64>,
pub timespan: Option<Box<Timespan>>,
pub value: Option<String>,
}Expand description
Observation
A record of an observed value or event that captures the timing and frequency of its occurrence. Used to track when values/events were first detected, last detected, and their total occurrence count.
[] Category: | Name: observation
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.count: Option<i64>Count
Integer representing the total number of times this specific value/event was observed across all occurrences. Helps establish prevalence and patterns.
recommended
timespan: Option<Box<Timespan>>Time Span
The time window when the value or event was first observed. It is used to analyze activity patterns, detect trends, or correlate events within a specific timeframe.
recommended
value: Option<String>Value
The specific value, event, indicator or data point that was observed and recorded. This is the core piece of information being tracked.
required
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
Source§fn clone(&self) -> Observation
fn clone(&self) -> Observation
Returns a duplicate of the value. Read more
1.0.0 · 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 Observation
impl Debug for Observation
Source§impl Default for Observation
impl Default for Observation
Source§fn default() -> Observation
fn default() -> Observation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Observationwhere
Observation: Default,
impl<'de> Deserialize<'de> for Observationwhere
Observation: Default,
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 Observation
impl PartialEq for Observation
Source§impl Serialize for Observation
impl Serialize for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Freeze for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnwindSafe for Observation
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