pub struct ModulatorWrite {
pub kind: String,
pub magnitude_percent: f32,
pub effect_duration_bursts: u16,
pub rest_bursts: u16,
pub graded: bool,
pub full_scale_potential: Option<f32>,
}Expand description
Request body shape shared by create and update. Serde is used by the API layer.
Fields§
§kind: String§magnitude_percent: f32§effect_duration_bursts: u16§rest_bursts: u16§graded: bool§full_scale_potential: Option<f32>Implementations§
Source§impl ModulatorWrite
impl ModulatorWrite
pub fn into_instance( self, driver_cortical_id: CorticalID, ) -> EvoResult<ModulatorInstance>
Trait Implementations§
Source§impl Clone for ModulatorWrite
impl Clone for ModulatorWrite
Source§impl Debug for ModulatorWrite
impl Debug for ModulatorWrite
Source§impl<'de> Deserialize<'de> for ModulatorWrite
impl<'de> Deserialize<'de> for ModulatorWrite
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 ModulatorWrite
impl RefUnwindSafe for ModulatorWrite
impl Send for ModulatorWrite
impl Sync for ModulatorWrite
impl Unpin for ModulatorWrite
impl UnsafeUnpin for ModulatorWrite
impl UnwindSafe for ModulatorWrite
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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