pub struct TuneRunFilter {
pub loop_id: Option<i64>,
pub demo_session_id: Option<i64>,
pub process_type: Option<ProcessType>,
pub controller_type: Option<ControllerType>,
pub outcome: Option<TuneOutcome>,
pub driver: Option<TuneDriver>,
pub opc_server: Option<String>,
pub bridge_host: Option<String>,
pub started_after: Option<DateTime<Utc>>,
pub started_before: Option<DateTime<Utc>>,
pub template_name: Option<String>,
pub template_origin: Option<TemplateOrigin>,
}Expand description
Filter criteria for TuneRunRow::list/TuneRunRow::count. Every field is optional;
the all-None default matches every run. Build one with TuneRunFilter::default and
the with_* methods, e.g. TuneRunFilter::default().with_outcome(TuneOutcome::Failed).
Fields§
§loop_id: Option<i64>§demo_session_id: Option<i64>§process_type: Option<ProcessType>§controller_type: Option<ControllerType>§outcome: Option<TuneOutcome>§driver: Option<TuneDriver>§opc_server: Option<String>Exact match against the stored opc_server column. See
TuneRunRow::record_connection.
bridge_host: Option<String>Exact match against the stored bridge_host column. See
TuneRunRow::record_connection.
started_after: Option<DateTime<Utc>>Matches runs with started_at >= started_after (inclusive).
started_before: Option<DateTime<Utc>>Matches runs with started_at <= started_before (inclusive).
template_name: Option<String>§template_origin: Option<TemplateOrigin>Implementations§
Source§impl TuneRunFilter
impl TuneRunFilter
pub fn with_demo_session_id(self, demo_session_id: i64) -> TuneRunFilter
pub fn with_loop_id(self, loop_id: i64) -> TuneRunFilter
pub fn with_process_type(self, process_type: ProcessType) -> TuneRunFilter
pub fn with_controller_type( self, controller_type: ControllerType, ) -> TuneRunFilter
pub fn with_outcome(self, outcome: TuneOutcome) -> TuneRunFilter
pub fn with_driver(self, driver: TuneDriver) -> TuneRunFilter
pub fn with_opc_server(self, opc_server: impl Into<String>) -> TuneRunFilter
pub fn with_bridge_host(self, bridge_host: impl Into<String>) -> TuneRunFilter
pub fn with_started_after(self, started_after: DateTime<Utc>) -> TuneRunFilter
pub fn with_started_before(self, started_before: DateTime<Utc>) -> TuneRunFilter
pub fn with_template_name( self, template_name: impl Into<String>, ) -> TuneRunFilter
pub fn with_template_origin( self, template_origin: TemplateOrigin, ) -> TuneRunFilter
Trait Implementations§
Source§impl Clone for TuneRunFilter
impl Clone for TuneRunFilter
Source§fn clone(&self) -> TuneRunFilter
fn clone(&self) -> TuneRunFilter
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 TuneRunFilter
impl Debug for TuneRunFilter
Source§impl Default for TuneRunFilter
impl Default for TuneRunFilter
Source§fn default() -> TuneRunFilter
fn default() -> TuneRunFilter
Returns the “default value” for a type. Read more
Source§impl PartialEq for TuneRunFilter
impl PartialEq for TuneRunFilter
Source§fn eq(&self, other: &TuneRunFilter) -> bool
fn eq(&self, other: &TuneRunFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TuneRunFilter
Auto Trait Implementations§
impl Freeze for TuneRunFilter
impl RefUnwindSafe for TuneRunFilter
impl Send for TuneRunFilter
impl Sync for TuneRunFilter
impl Unpin for TuneRunFilter
impl UnsafeUnpin for TuneRunFilter
impl UnwindSafe for TuneRunFilter
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