Skip to main content

DataEngineConfigBuilder

Struct DataEngineConfigBuilder 

Source
pub struct DataEngineConfigBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> DataEngineConfigBuilder<S>

Source

pub fn build(self) -> DataEngineConfig
where S: IsComplete,

Finish building and return the requested object

Source

pub fn time_bars_build_with_no_updates( self, value: bool, ) -> DataEngineConfigBuilder<SetTimeBarsBuildWithNoUpdates<S>>
where S::TimeBarsBuildWithNoUpdates: IsUnset,

Optional (Some / Option setters). Default: true.

If time bar aggregators will build and emit bars with no new market updates.

Source

pub fn maybe_time_bars_build_with_no_updates( self, value: Option<bool>, ) -> DataEngineConfigBuilder<SetTimeBarsBuildWithNoUpdates<S>>
where S::TimeBarsBuildWithNoUpdates: IsUnset,

Optional (Some / Option setters). Default: true.

If time bar aggregators will build and emit bars with no new market updates.

Source

pub fn time_bars_timestamp_on_close( self, value: bool, ) -> DataEngineConfigBuilder<SetTimeBarsTimestampOnClose<S>>
where S::TimeBarsTimestampOnClose: IsUnset,

Optional (Some / Option setters). Default: true.

If time bar aggregators will timestamp ts_event on bar close. If False, then will timestamp on bar open.

Source

pub fn maybe_time_bars_timestamp_on_close( self, value: Option<bool>, ) -> DataEngineConfigBuilder<SetTimeBarsTimestampOnClose<S>>
where S::TimeBarsTimestampOnClose: IsUnset,

Optional (Some / Option setters). Default: true.

If time bar aggregators will timestamp ts_event on bar close. If False, then will timestamp on bar open.

Source

pub fn time_bars_skip_first_non_full_bar( self, value: bool, ) -> DataEngineConfigBuilder<SetTimeBarsSkipFirstNonFullBar<S>>
where S::TimeBarsSkipFirstNonFullBar: IsUnset,

Optional (Some / Option setters). Default: false.

If time bar aggregators will skip emitting a bar if the aggregation starts mid-interval.

Source

pub fn maybe_time_bars_skip_first_non_full_bar( self, value: Option<bool>, ) -> DataEngineConfigBuilder<SetTimeBarsSkipFirstNonFullBar<S>>
where S::TimeBarsSkipFirstNonFullBar: IsUnset,

Optional (Some / Option setters). Default: false.

If time bar aggregators will skip emitting a bar if the aggregation starts mid-interval.

Source

pub fn time_bars_interval_type( self, value: BarIntervalType, ) -> DataEngineConfigBuilder<SetTimeBarsIntervalType<S>>
where S::TimeBarsIntervalType: IsUnset,

Optional (Some / Option setters). Default: BarIntervalType::LeftOpen.

Determines the type of interval used for time aggregation.

  • LeftOpen: start time is excluded and end time is included (default).
  • RightOpen: start time is included and end time is excluded.
Source

pub fn maybe_time_bars_interval_type( self, value: Option<BarIntervalType>, ) -> DataEngineConfigBuilder<SetTimeBarsIntervalType<S>>
where S::TimeBarsIntervalType: IsUnset,

Optional (Some / Option setters). Default: BarIntervalType::LeftOpen.

Determines the type of interval used for time aggregation.

  • LeftOpen: start time is excluded and end time is included (default).
  • RightOpen: start time is included and end time is excluded.
Source

pub fn time_bars_build_delay( self, value: u64, ) -> DataEngineConfigBuilder<SetTimeBarsBuildDelay<S>>
where S::TimeBarsBuildDelay: IsUnset,

Optional (Some / Option setters). Default: 0.

The time delay (microseconds) before building and emitting a bar.

Source

pub fn maybe_time_bars_build_delay( self, value: Option<u64>, ) -> DataEngineConfigBuilder<SetTimeBarsBuildDelay<S>>
where S::TimeBarsBuildDelay: IsUnset,

Optional (Some / Option setters). Default: 0.

The time delay (microseconds) before building and emitting a bar.

Source

pub fn time_bars_origins( self, value: HashMap<BarAggregation, Duration>, ) -> DataEngineConfigBuilder<SetTimeBarsOrigins<S>>
where S::TimeBarsOrigins: IsUnset,

Optional (Some / Option setters). Default: <HashMap<BarAggregation, Duration> as Default>::default().

A dictionary mapping time bar aggregations to their origin time offsets.

Source

pub fn maybe_time_bars_origins( self, value: Option<HashMap<BarAggregation, Duration>>, ) -> DataEngineConfigBuilder<SetTimeBarsOrigins<S>>
where S::TimeBarsOrigins: IsUnset,

Optional (Some / Option setters). Default: <HashMap<BarAggregation, Duration> as Default>::default().

A dictionary mapping time bar aggregations to their origin time offsets.

Source

pub fn validate_data_sequence( self, value: bool, ) -> DataEngineConfigBuilder<SetValidateDataSequence<S>>
where S::ValidateDataSequence: IsUnset,

Optional (Some / Option setters). Default: false.

If data objects timestamp sequencing will be validated and handled.

Source

pub fn maybe_validate_data_sequence( self, value: Option<bool>, ) -> DataEngineConfigBuilder<SetValidateDataSequence<S>>
where S::ValidateDataSequence: IsUnset,

Optional (Some / Option setters). Default: false.

If data objects timestamp sequencing will be validated and handled.

Source

pub fn buffer_deltas( self, value: bool, ) -> DataEngineConfigBuilder<SetBufferDeltas<S>>
where S::BufferDeltas: IsUnset,

Optional (Some / Option setters). Default: false.

If order book deltas should be buffered until the F_LAST flag is set for a delta.

Source

pub fn maybe_buffer_deltas( self, value: Option<bool>, ) -> DataEngineConfigBuilder<SetBufferDeltas<S>>
where S::BufferDeltas: IsUnset,

Optional (Some / Option setters). Default: false.

If order book deltas should be buffered until the F_LAST flag is set for a delta.

Source

pub fn external_clients( self, value: Vec<ClientId>, ) -> DataEngineConfigBuilder<SetExternalClients<S>>
where S::ExternalClients: IsUnset,

Optional (Some / Option setters). The client IDs declared for external stream processing. The data engine will not attempt to send data commands to these client IDs.

Source

pub fn maybe_external_clients( self, value: Option<Vec<ClientId>>, ) -> DataEngineConfigBuilder<SetExternalClients<S>>
where S::ExternalClients: IsUnset,

Optional (Some / Option setters). The client IDs declared for external stream processing. The data engine will not attempt to send data commands to these client IDs.

Source

pub fn debug(self, value: bool) -> DataEngineConfigBuilder<SetDebug<S>>
where S::Debug: IsUnset,

Optional (Some / Option setters). Default: false.

If debug mode is active (will provide extra debug logging).

Source

pub fn maybe_debug( self, value: Option<bool>, ) -> DataEngineConfigBuilder<SetDebug<S>>
where S::Debug: IsUnset,

Optional (Some / Option setters). Default: false.

If debug mode is active (will provide extra debug logging).

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Ungil for T
where T: Send,