#[non_exhaustive]pub struct Stream {
pub id: i32,
pub name: String,
pub stream_type: StreamType,
pub datapool: String,
pub description: String,
pub n_datasets: Option<u64>,
pub n_datapoints: Option<u64>,
pub cold_bytes: Option<u64>,
pub hot_bytes: Option<u64>,
pub plugin: Option<String>,
pub plugin_args: Option<String>,
pub extra: Value,
}Expand description
MarpleDB stream metadata.
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.id: i32Stream id.
name: StringStream name.
stream_type: StreamTypeStream type.
datapool: StringOwning datapool.
description: StringStream description.
n_datasets: Option<u64>Number of datasets, if known.
n_datapoints: Option<u64>Number of datapoints, if known.
cold_bytes: Option<u64>Cold-storage byte size, if known.
hot_bytes: Option<u64>Hot-storage byte size, if known.
plugin: Option<String>Import plugin name for file streams.
plugin_args: Option<String>Import plugin arguments for file streams.
extra: ValueAdditional stream fields returned by the API.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stream
impl<'de> Deserialize<'de> for Stream
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 Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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