pub struct DataStream {
pub id: Uuid,
pub source_system: String,
pub source_key: String,
pub source_name: Option<String>,
pub source_path: Option<String>,
pub metadata: Value,
pub site_parameter_id: Option<Uuid>,
pub measurement_type: Option<String>,
pub is_active: bool,
pub last_data_time: Option<DateTime<Utc>>,
pub last_window_digest: Option<String>,
pub replicates: Option<Vec<ColumnAssignment>>,
}Fields§
§id: Uuid§source_system: String§source_key: String§source_name: Option<String>§source_path: Option<String>§metadata: Value§site_parameter_id: Option<Uuid>§measurement_type: Option<String>Stream-level default for readings.measurement_type (‘continuous’ | ‘spot’ | ‘derived’). None defers to the API’s sensor-frequency resolution.
is_active: bool§last_data_time: Option<DateTime<Utc>>§last_window_digest: Option<String>Content digest of the last cleanly-applied windowed pass, as claimed by the sync client. Absent on APIs that predate the handshake; the client then sends full windows.
replicates: Option<Vec<ColumnAssignment>>The authoritative replicate column-to-index mapping, present on the
register and list responses for a stream declaring a replicate family.
Absent on an API that predates it; the same list is then read out of
metadata.replicates.
Trait Implementations§
Source§impl Clone for DataStream
impl Clone for DataStream
Source§fn clone(&self) -> DataStream
fn clone(&self) -> DataStream
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 DataStream
impl Debug for DataStream
Source§impl<'de> Deserialize<'de> for DataStream
impl<'de> Deserialize<'de> for DataStream
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 DataStream
impl RefUnwindSafe for DataStream
impl Send for DataStream
impl Sync for DataStream
impl Unpin for DataStream
impl UnsafeUnpin for DataStream
impl UnwindSafe for DataStream
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