pub struct NewTuneMvActuation {
pub sequence: i64,
pub kind: MvActuationKind,
pub commanded_at: DateTime<Utc>,
pub target_mv: f32,
pub previous_commanded_mv: Option<f32>,
pub tolerance: f32,
pub confirmation_due_at: DateTime<Utc>,
}Expand description
Input for TuneMvActuationRow::insert_pending.
commanded_at is the time the driver accepted the write, while
confirmation_due_at is the exact deadline selected by the actuation policy for this
command. Persisting both that deadline and tolerance makes historical evidence
interpretable even if the policy changes in a later release.
Fields§
§sequence: i64§kind: MvActuationKind§commanded_at: DateTime<Utc>§target_mv: f32§previous_commanded_mv: Option<f32>The immediately preceding commanded value used to derive the relay-step-aware
tolerance. None for the first command in a run and valid for either command kind.
tolerance: f32§confirmation_due_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for NewTuneMvActuation
impl Clone for NewTuneMvActuation
Source§fn clone(&self) -> NewTuneMvActuation
fn clone(&self) -> NewTuneMvActuation
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 NewTuneMvActuation
impl Debug for NewTuneMvActuation
Source§impl PartialEq for NewTuneMvActuation
impl PartialEq for NewTuneMvActuation
Source§fn eq(&self, other: &NewTuneMvActuation) -> bool
fn eq(&self, other: &NewTuneMvActuation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NewTuneMvActuation
Auto Trait Implementations§
impl Freeze for NewTuneMvActuation
impl RefUnwindSafe for NewTuneMvActuation
impl Send for NewTuneMvActuation
impl Sync for NewTuneMvActuation
impl Unpin for NewTuneMvActuation
impl UnsafeUnpin for NewTuneMvActuation
impl UnwindSafe for NewTuneMvActuation
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