Skip to main content

EegMetadata

Struct EegMetadata 

Source
pub struct EegMetadata {
Show 25 fields pub task_name: Option<String>, pub task_description: Option<String>, pub sampling_frequency: f64, pub eeg_channel_count: Option<u32>, pub eog_channel_count: Option<u32>, pub ecg_channel_count: Option<u32>, pub emg_channel_count: Option<u32>, pub misc_channel_count: Option<u32>, pub trigger_channel_count: Option<u32>, pub eeg_placement_scheme: Option<String>, pub eeg_reference: Option<String>, pub eeg_ground: Option<String>, pub recording_duration: Option<f64>, pub recording_type: Option<String>, pub power_line_frequency: Option<f64>, pub software_filters: Option<Value>, pub hardware_filters: Option<Value>, pub manufacturer: Option<String>, pub manufacturers_model_name: Option<String>, pub cap_manufacturer: Option<String>, pub cap_manufacturers_model_name: Option<String>, pub institution_name: Option<String>, pub institutional_department_name: Option<String>, pub institution_address: Option<String>, pub subject_artifact_description: Option<String>,
}
Expand description

Fields§

§task_name: Option<String>

Name of the task.

§task_description: Option<String>

Description of the task.

§sampling_frequency: f64

Sampling frequency of the EEG recording in Hz.

§eeg_channel_count: Option<u32>

Number of EEG channels.

§eog_channel_count: Option<u32>

Number of EOG channels.

§ecg_channel_count: Option<u32>

Number of ECG channels.

§emg_channel_count: Option<u32>

Number of EMG channels.

§misc_channel_count: Option<u32>

Number of miscellaneous channels.

§trigger_channel_count: Option<u32>

Number of trigger channels.

§eeg_placement_scheme: Option<String>

EEG placement scheme (e.g., “10-20”, “10-10”, “10-5”).

§eeg_reference: Option<String>

EEG reference electrode(s).

§eeg_ground: Option<String>

EEG ground electrode.

§recording_duration: Option<f64>

Duration of the recording in seconds.

§recording_type: Option<String>

Type of recording: “continuous”, “epoched”, “discontinuous”.

§power_line_frequency: Option<f64>

Power line frequency in Hz (50 or 60).

§software_filters: Option<Value>

Software filters applied.

§hardware_filters: Option<Value>

Hardware filters applied.

§manufacturer: Option<String>

Manufacturer of the EEG system.

§manufacturers_model_name: Option<String>

Manufacturer’s model name.

§cap_manufacturer: Option<String>

Name of the cap (if applicable).

§cap_manufacturers_model_name: Option<String>

Cap model.

§institution_name: Option<String>

Institutional department name.

§institutional_department_name: Option<String>

Institutional department name.

§institution_address: Option<String>

Address of the institution.

§subject_artifact_description: Option<String>

Subject artifact description.

Implementations§

Source§

impl EegMetadata

Source

pub fn from_metadata(md: &BidsMetadata) -> Option<Self>

Try to extract EEG metadata from a generic BidsMetadata.

Source

pub fn total_channel_count(&self) -> u32

Get the total channel count.

Trait Implementations§

Source§

impl Clone for EegMetadata

Source§

fn clone(&self) -> EegMetadata

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EegMetadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EegMetadata

Source§

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 Serialize for EegMetadata

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,