pub struct DatasetSpec {
pub root: String,
pub filter: BTreeMap<String, Vec<String>>,
pub inputs: Vec<InputSpec>,
pub channels: Option<ChannelsSpec>,
pub participants: Option<ParticipantsSpec>,
}Expand description
Where a dataset lives and how to find and read its recordings.
Fields§
§root: String§filter: BTreeMap<String, Vec<String>>Keep only recordings whose entity takes one of the listed values.
inputs: Vec<InputSpec>The first input defines which recordings exist; later inputs must exist for each.
channels: Option<ChannelsSpec>What each channel is (region, hemisphere, tags), the same for every recording.
participants: Option<ParticipantsSpec>Information about each subject, for group statistics and machine learning.
Implementations§
Source§impl DatasetSpec
impl DatasetSpec
pub fn from_toml(text: &str) -> Result<Self, DatasetError>
Trait Implementations§
Source§impl Clone for DatasetSpec
impl Clone for DatasetSpec
Source§fn clone(&self) -> DatasetSpec
fn clone(&self) -> DatasetSpec
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 moreSource§impl Debug for DatasetSpec
impl Debug for DatasetSpec
Source§impl<'de> Deserialize<'de> for DatasetSpec
impl<'de> Deserialize<'de> for DatasetSpec
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 DatasetSpec
impl RefUnwindSafe for DatasetSpec
impl Send for DatasetSpec
impl Sync for DatasetSpec
impl Unpin for DatasetSpec
impl UnwindSafe for DatasetSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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