pub struct LiveData {
pub timestamp: String,
pub data: Vec<Vec<f32>>,
}Expand description
Represents live data recorded from MEA devices.
Each LiveData instance contains:
- A timestamp string in RFC3339 format
- A 2D array of electrode data where:
- The outer vector contains 32 electrodes
- Each inner vector contains 4096 samples per electrode
§Example
use finalspark_rs::LiveData;
fn process_data(data: LiveData) {
println!("Timestamp: {}", data.timestamp);
println!("Number of electrodes: {}", data.data.len());
println!("Samples per electrode: {}", data.data[0].len());
}Fields§
§timestamp: StringThe timestamp of when the data was recorded (RFC3339 format)
data: Vec<Vec<f32>>The electrode data as a 2D array [32][4096]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LiveData
impl<'de> Deserialize<'de> for LiveData
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 LiveData
impl RefUnwindSafe for LiveData
impl Send for LiveData
impl Sync for LiveData
impl Unpin for LiveData
impl UnwindSafe for LiveData
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