pub struct OutputSpec {
pub name: String,
pub kind: DataKind,
pub channels: Vec<String>,
pub interpolation: Option<DataInterpolation>,
pub suggest: Option<Suggest>,
pub label: Option<String>,
pub description: Option<String>,
}Expand description
One output an extractor emits.
Fields§
§name: StringIts name, unique among the outputs.
kind: DataKindThe kind of data it holds.
channels: Vec<String>Channel names, for points and scalars.
interpolation: Option<DataInterpolation>How the values read between samples, for the sampled kinds; hold when left out.
suggest: Option<Suggest>How the output is usually used, for interfaces. The engine ignores it.
label: Option<String>The output’s name in an interface, plain text without control characters. The engine ignores it.
description: Option<String>What the output holds, for an interface, plain text without control characters. The engine ignores it.
Implementations§
Source§impl OutputSpec
impl OutputSpec
Sourcepub fn sample_width(&self) -> usize
pub fn sample_width(&self) -> usize
Numbers per sample of this output, channels times components; zero for words and intervals.
Sourcepub fn max_items(&self) -> usize
pub fn max_items(&self) -> usize
The most samples, words or intervals one data set of this output holds, from the data
limits (alpha2_model::MAX_DATA_VALUES counts numbers, not samples).
Trait Implementations§
Source§impl Clone for OutputSpec
impl Clone for OutputSpec
Source§impl Debug for OutputSpec
impl Debug for OutputSpec
Source§impl<'de> Deserialize<'de> for OutputSpec
impl<'de> Deserialize<'de> for OutputSpec
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
Source§impl PartialEq for OutputSpec
impl PartialEq for OutputSpec
Source§impl Serialize for OutputSpec
impl Serialize for OutputSpec
impl StructuralPartialEq for OutputSpec
Auto Trait Implementations§
impl Forget for OutputSpec
impl Freeze for OutputSpec
impl Move for OutputSpec
impl RefUnwindSafe for OutputSpec
impl Send for OutputSpecwhere
RawVecInner: Send,
impl Sync for OutputSpecwhere
RawVecInner: Sync,
impl Unpin for OutputSpec
impl UnsafeUnpin for OutputSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for OutputSpecwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more