Skip to main content

NewRunDraft

Struct NewRunDraft 

Source
pub struct NewRunDraft {
Show 39 fields pub driver: Option<TuneDriver>, pub template: Option<String>, pub tagname: Option<String>, pub server: Option<String>, pub bridge_host: Option<String>, pub process_type: Option<ProcessType>, pub controller_type: Option<ControllerType>, pub relay_amp: Option<f32>, pub cycles_skip: Option<u32>, pub cycles_count: Option<u32>, pub noise_protection_secs: Option<u32>, pub mrft_delay: Option<u32>, pub poll_interval_ms: Option<u64>, pub timeout_secs: Option<u64>, pub op_timeout_secs: Option<u64>, pub restore_timeout_secs: Option<u64>, pub direction: Option<ControllerDirection>, pub tag_overrides: Option<TagOverrides>, pub source_driver: Option<TuneDriver>, pub source_direction: Option<ControllerDirection>, pub pv_range_high: Option<f32>, pub pv_range_low: Option<f32>, pub mv_range_high: Option<f32>, pub mv_range_low: Option<f32>, pub source_pv_range_high: Option<f32>, pub source_pv_range_low: Option<f32>, pub source_mv_range_high: Option<f32>, pub source_mv_range_low: Option<f32>, pub tag_sources: Option<DraftTagSources>, pub value_sources: Option<DraftValueSources>, pub sim_gain: Option<f32>, pub sim_tau: Option<f32>, pub sim_dead_time: Option<f32>, pub sim_noise: Option<f32>, pub sim_seed: Option<u64>, pub sim_initial_pv: Option<f32>, pub sim_initial_mv: Option<f32>, pub write_pid: Option<ResponseLevel>, pub yes: Option<bool>,
}
Expand description

The editable state of the New Tune form.

Fields are optional because the form is allowed to be incomplete while it is being edited. The frontend sends the complete shape on each save, using null for a cleared numeric or enum field. Notes are intentionally absent: they describe one run, not a reusable draft.

Fields§

§driver: Option<TuneDriver>§template: Option<String>§tagname: Option<String>§server: Option<String>§bridge_host: Option<String>§process_type: Option<ProcessType>§controller_type: Option<ControllerType>§relay_amp: Option<f32>§cycles_skip: Option<u32>§cycles_count: Option<u32>§noise_protection_secs: Option<u32>§mrft_delay: Option<u32>§poll_interval_ms: Option<u64>§timeout_secs: Option<u64>§op_timeout_secs: Option<u64>§restore_timeout_secs: Option<u64>§direction: Option<ControllerDirection>§tag_overrides: Option<TagOverrides>§source_driver: Option<TuneDriver>

Driver context for the saved direction/range values. New drafts keep this alongside source metadata; older drafts use it to infer whether legacy values are OPC fixed overrides or simulator values.

§source_direction: Option<ControllerDirection>

Simulator-specific direction/range values. These are draft-only and never go into a run request when the OPC DA driver is active.

§pv_range_high: Option<f32>§pv_range_low: Option<f32>§mv_range_high: Option<f32>§mv_range_low: Option<f32>§source_pv_range_high: Option<f32>§source_pv_range_low: Option<f32>§source_mv_range_high: Option<f32>§source_mv_range_low: Option<f32>§tag_sources: Option<DraftTagSources>

Draft-only source selectors for tag names and direction/range values.

§value_sources: Option<DraftValueSources>§sim_gain: Option<f32>§sim_tau: Option<f32>§sim_dead_time: Option<f32>§sim_noise: Option<f32>§sim_seed: Option<u64>§sim_initial_pv: Option<f32>§sim_initial_mv: Option<f32>§write_pid: Option<ResponseLevel>§yes: Option<bool>

Trait Implementations§

Source§

impl Clone for NewRunDraft

Source§

fn clone(&self) -> NewRunDraft

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl ComposeSchema for NewRunDraft

Source§

fn compose(generics: Vec<RefOr<Schema>>) -> RefOr<Schema>

Source§

impl Debug for NewRunDraft

Source§

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

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

impl<'de> Deserialize<'de> for NewRunDraft

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 PartialEq for NewRunDraft

Source§

fn eq(&self, other: &NewRunDraft) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for NewRunDraft

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
Source§

impl StructuralPartialEq for NewRunDraft

Source§

impl ToSchema for NewRunDraft

Source§

fn name() -> Cow<'static, str>

Return name of the schema. Read more
Source§

fn schemas(schemas: &mut Vec<(String, RefOr<Schema>)>)

Implement reference [utoipa::openapi::schema::Schema]s for this type. 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<T> PartialSchema for T
where T: ComposeSchema + ?Sized,

§

fn schema() -> RefOr<Schema>

Return ref or schema of implementing type that can then be used to construct combined schemas.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more