pub enum TransformerOutput {
Scalar(f64),
Series(Vec<(f64, f64)>),
Text(String),
}Expand description
The result produced by running a transformer script.
Variants§
Scalar(f64)
A single computed number (e.g. integral, average, max).
Series(Vec<(f64, f64)>)
A derived time series of (x, y) pairs (e.g. derivative, smoothed data).
Text(String)
A textual result (e.g. statistical summary).
Trait Implementations§
Source§impl CandidType for TransformerOutput
impl CandidType for TransformerOutput
Source§impl Clone for TransformerOutput
impl Clone for TransformerOutput
Source§fn clone(&self) -> TransformerOutput
fn clone(&self) -> TransformerOutput
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 TransformerOutput
impl Debug for TransformerOutput
Source§impl<'de> Deserialize<'de> for TransformerOutput
impl<'de> Deserialize<'de> for TransformerOutput
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 TransformerOutput
impl RefUnwindSafe for TransformerOutput
impl Send for TransformerOutput
impl Sync for TransformerOutput
impl Unpin for TransformerOutput
impl UnsafeUnpin for TransformerOutput
impl UnwindSafe for TransformerOutput
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