pub struct ChannelFilterSettings {
pub despike: bool,
pub remove_10hz: bool,
pub remove_11_9hz: bool,
pub highpass_hz: Option<f64>,
pub lowpass_hz: Option<f64>,
}Expand description
Filters of one channel, cleaned: true switches and positive cutoffs only.
Fields§
§despike: bool§remove_10hz: bool§remove_11_9hz: bool§highpass_hz: Option<f64>§lowpass_hz: Option<f64>Implementations§
Source§impl ChannelFilterSettings
impl ChannelFilterSettings
Sourcepub fn from_value(value: &Value) -> Self
pub fn from_value(value: &Value) -> Self
Cleans one channel’s settings the way the webapp does: switches count only when
they are exactly true, cutoffs only when finite and above 0; anything else
(missing, false, null, malformed) is off.
Trait Implementations§
Source§impl Clone for ChannelFilterSettings
impl Clone for ChannelFilterSettings
Source§fn clone(&self) -> ChannelFilterSettings
fn clone(&self) -> ChannelFilterSettings
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 ChannelFilterSettings
impl Debug for ChannelFilterSettings
Source§impl Default for ChannelFilterSettings
impl Default for ChannelFilterSettings
Source§fn default() -> ChannelFilterSettings
fn default() -> ChannelFilterSettings
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChannelFilterSettings
impl PartialEq for ChannelFilterSettings
impl StructuralPartialEq for ChannelFilterSettings
Auto Trait Implementations§
impl Freeze for ChannelFilterSettings
impl RefUnwindSafe for ChannelFilterSettings
impl Send for ChannelFilterSettings
impl Sync for ChannelFilterSettings
impl Unpin for ChannelFilterSettings
impl UnsafeUnpin for ChannelFilterSettings
impl UnwindSafe for ChannelFilterSettings
Blanket Implementations§
impl<T> Allocation for T
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