pub enum RecordValue {
Scalar(f32),
DateTime(DateTime<Local>),
Array1(Vec<f32>),
Array2(Vec<f32>, [usize; 2]),
Array3(Vec<f32>, [usize; 3]),
String(String),
}
Expand description
Represents possible types of values that can be stored in a Record
.
This enum provides a type-safe way to store different kinds of data in a record, including numerical values, arrays, strings, and timestamps.
§Variants
Scalar(f32)
- A single floating-point value, typically used for metricsDateTime(DateTime<Local>)
- A timestamp with local timezoneArray1(Vec<f32>)
- A 1-dimensional array of floating-point valuesArray2(Vec<f32>, [usize; 2])
- A 2-dimensional array with shape informationArray3(Vec<f32>, [usize; 3])
- A 3-dimensional array with shape informationString(String)
- A text value
Variants§
Scalar(f32)
A single floating-point value, typically used for metrics like loss or accuracy.
DateTime(DateTime<Local>)
A timestamp with local timezone, useful for logging events.
Array1(Vec<f32>)
A 1-dimensional array of floating-point values.
Array2(Vec<f32>, [usize; 2])
A 2-dimensional array with shape information.
Array3(Vec<f32>, [usize; 3])
A 3-dimensional array with shape information.
String(String)
A text value, useful for storing labels or descriptions.
Trait Implementations§
Source§impl Clone for RecordValue
impl Clone for RecordValue
Source§fn clone(&self) -> RecordValue
fn clone(&self) -> RecordValue
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 moreAuto Trait Implementations§
impl Freeze for RecordValue
impl RefUnwindSafe for RecordValue
impl Send for RecordValue
impl Sync for RecordValue
impl Unpin for RecordValue
impl UnwindSafe for RecordValue
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