pub struct StreamingConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build_inner().
Implementations§
Source§impl<S: State> StreamingConfigBuilder<S>
impl<S: State> StreamingConfigBuilder<S>
Sourcepub fn writer_path(
self,
value: String,
) -> StreamingConfigBuilder<SetWriterPath<S>>where
S::WriterPath: IsUnset,
pub fn writer_path(
self,
value: String,
) -> StreamingConfigBuilder<SetWriterPath<S>>where
S::WriterPath: IsUnset,
Required.
Local directory the writer appends Feather files to.
Sourcepub fn catalog(
self,
value: DataCatalogConfig,
) -> StreamingConfigBuilder<SetCatalog<S>>where
S::Catalog: IsUnset,
pub fn catalog(
self,
value: DataCatalogConfig,
) -> StreamingConfigBuilder<SetCatalog<S>>where
S::Catalog: IsUnset,
Sourcepub fn maybe_catalog(
self,
value: Option<DataCatalogConfig>,
) -> StreamingConfigBuilder<SetCatalog<S>>where
S::Catalog: IsUnset,
pub fn maybe_catalog(
self,
value: Option<DataCatalogConfig>,
) -> StreamingConfigBuilder<SetCatalog<S>>where
S::Catalog: IsUnset,
Sourcepub fn flush_interval_ms(
self,
value: u64,
) -> StreamingConfigBuilder<SetFlushIntervalMs<S>>where
S::FlushIntervalMs: IsUnset,
pub fn flush_interval_ms(
self,
value: u64,
) -> StreamingConfigBuilder<SetFlushIntervalMs<S>>where
S::FlushIntervalMs: IsUnset,
Required.
Flush interval in milliseconds.
Sourcepub fn replace_existing(
self,
value: bool,
) -> StreamingConfigBuilder<SetReplaceExisting<S>>where
S::ReplaceExisting: IsUnset,
pub fn replace_existing(
self,
value: bool,
) -> StreamingConfigBuilder<SetReplaceExisting<S>>where
S::ReplaceExisting: IsUnset,
Required.
Whether to replace existing files.
Sourcepub fn rotation_config(
self,
value: RotationConfig,
) -> StreamingConfigBuilder<SetRotationConfig<S>>where
S::RotationConfig: IsUnset,
pub fn rotation_config(
self,
value: RotationConfig,
) -> StreamingConfigBuilder<SetRotationConfig<S>>where
S::RotationConfig: IsUnset,
Required.
Rotation configuration.
Sourcepub fn promotion_interval_ms(
self,
value: u64,
) -> StreamingConfigBuilder<SetPromotionIntervalMs<S>>where
S::PromotionIntervalMs: IsUnset,
pub fn promotion_interval_ms(
self,
value: u64,
) -> StreamingConfigBuilder<SetPromotionIntervalMs<S>>where
S::PromotionIntervalMs: IsUnset,
Sourcepub fn maybe_promotion_interval_ms(
self,
value: Option<u64>,
) -> StreamingConfigBuilder<SetPromotionIntervalMs<S>>where
S::PromotionIntervalMs: IsUnset,
pub fn maybe_promotion_interval_ms(
self,
value: Option<u64>,
) -> StreamingConfigBuilder<SetPromotionIntervalMs<S>>where
S::PromotionIntervalMs: IsUnset,
Sourcepub fn promote_on_close(
self,
value: bool,
) -> StreamingConfigBuilder<SetPromoteOnClose<S>>where
S::PromoteOnClose: IsUnset,
pub fn promote_on_close(
self,
value: bool,
) -> StreamingConfigBuilder<SetPromoteOnClose<S>>where
S::PromoteOnClose: IsUnset,
Sourcepub fn maybe_promote_on_close(
self,
value: Option<bool>,
) -> StreamingConfigBuilder<SetPromoteOnClose<S>>where
S::PromoteOnClose: IsUnset,
pub fn maybe_promote_on_close(
self,
value: Option<bool>,
) -> StreamingConfigBuilder<SetPromoteOnClose<S>>where
S::PromoteOnClose: IsUnset,
Sourcepub fn delete_feather_after_promotion(
self,
value: bool,
) -> StreamingConfigBuilder<SetDeleteFeatherAfterPromotion<S>>where
S::DeleteFeatherAfterPromotion: IsUnset,
pub fn delete_feather_after_promotion(
self,
value: bool,
) -> StreamingConfigBuilder<SetDeleteFeatherAfterPromotion<S>>where
S::DeleteFeatherAfterPromotion: IsUnset,
Sourcepub fn maybe_delete_feather_after_promotion(
self,
value: Option<bool>,
) -> StreamingConfigBuilder<SetDeleteFeatherAfterPromotion<S>>where
S::DeleteFeatherAfterPromotion: IsUnset,
pub fn maybe_delete_feather_after_promotion(
self,
value: Option<bool>,
) -> StreamingConfigBuilder<SetDeleteFeatherAfterPromotion<S>>where
S::DeleteFeatherAfterPromotion: IsUnset,
Sourcepub fn use_ts_event_for_ts_init(
self,
value: bool,
) -> StreamingConfigBuilder<SetUseTsEventForTsInit<S>>where
S::UseTsEventForTsInit: IsUnset,
pub fn use_ts_event_for_ts_init(
self,
value: bool,
) -> StreamingConfigBuilder<SetUseTsEventForTsInit<S>>where
S::UseTsEventForTsInit: IsUnset,
Sourcepub fn maybe_use_ts_event_for_ts_init(
self,
value: Option<bool>,
) -> StreamingConfigBuilder<SetUseTsEventForTsInit<S>>where
S::UseTsEventForTsInit: IsUnset,
pub fn maybe_use_ts_event_for_ts_init(
self,
value: Option<bool>,
) -> StreamingConfigBuilder<SetUseTsEventForTsInit<S>>where
S::UseTsEventForTsInit: IsUnset,
Sourcepub fn data_types(
self,
value: Vec<NautilusDataType>,
) -> StreamingConfigBuilder<SetDataTypes<S>>where
S::DataTypes: IsUnset,
pub fn data_types(
self,
value: Vec<NautilusDataType>,
) -> StreamingConfigBuilder<SetDataTypes<S>>where
S::DataTypes: IsUnset,
Sourcepub fn maybe_data_types(
self,
value: Option<Vec<NautilusDataType>>,
) -> StreamingConfigBuilder<SetDataTypes<S>>where
S::DataTypes: IsUnset,
pub fn maybe_data_types(
self,
value: Option<Vec<NautilusDataType>>,
) -> StreamingConfigBuilder<SetDataTypes<S>>where
S::DataTypes: IsUnset,
Sourcepub fn record_types(
self,
value: Vec<NautilusRecordType>,
) -> StreamingConfigBuilder<SetRecordTypes<S>>where
S::RecordTypes: IsUnset,
pub fn record_types(
self,
value: Vec<NautilusRecordType>,
) -> StreamingConfigBuilder<SetRecordTypes<S>>where
S::RecordTypes: IsUnset,
Sourcepub fn maybe_record_types(
self,
value: Option<Vec<NautilusRecordType>>,
) -> StreamingConfigBuilder<SetRecordTypes<S>>where
S::RecordTypes: IsUnset,
pub fn maybe_record_types(
self,
value: Option<Vec<NautilusRecordType>>,
) -> StreamingConfigBuilder<SetRecordTypes<S>>where
S::RecordTypes: IsUnset,
Sourcepub fn instrument_types(
self,
value: Vec<NautilusInstrumentType>,
) -> StreamingConfigBuilder<SetInstrumentTypes<S>>where
S::InstrumentTypes: IsUnset,
pub fn instrument_types(
self,
value: Vec<NautilusInstrumentType>,
) -> StreamingConfigBuilder<SetInstrumentTypes<S>>where
S::InstrumentTypes: IsUnset,
Sourcepub fn maybe_instrument_types(
self,
value: Option<Vec<NautilusInstrumentType>>,
) -> StreamingConfigBuilder<SetInstrumentTypes<S>>where
S::InstrumentTypes: IsUnset,
pub fn maybe_instrument_types(
self,
value: Option<Vec<NautilusInstrumentType>>,
) -> StreamingConfigBuilder<SetInstrumentTypes<S>>where
S::InstrumentTypes: IsUnset,
Sourcepub fn record_filters(
self,
value: Vec<StreamingRecordFilterConfig>,
) -> StreamingConfigBuilder<SetRecordFilters<S>>where
S::RecordFilters: IsUnset,
pub fn record_filters(
self,
value: Vec<StreamingRecordFilterConfig>,
) -> StreamingConfigBuilder<SetRecordFilters<S>>where
S::RecordFilters: IsUnset,
Sourcepub fn maybe_record_filters(
self,
value: Option<Vec<StreamingRecordFilterConfig>>,
) -> StreamingConfigBuilder<SetRecordFilters<S>>where
S::RecordFilters: IsUnset,
pub fn maybe_record_filters(
self,
value: Option<Vec<StreamingRecordFilterConfig>>,
) -> StreamingConfigBuilder<SetRecordFilters<S>>where
S::RecordFilters: IsUnset,
Sourcepub fn params(self, value: Params) -> StreamingConfigBuilder<SetParams<S>>where
S::Params: IsUnset,
pub fn params(self, value: Params) -> StreamingConfigBuilder<SetParams<S>>where
S::Params: IsUnset,
Sourcepub fn maybe_params(
self,
value: Option<Params>,
) -> StreamingConfigBuilder<SetParams<S>>where
S::Params: IsUnset,
pub fn maybe_params(
self,
value: Option<Params>,
) -> StreamingConfigBuilder<SetParams<S>>where
S::Params: IsUnset,
Source§impl<S: IsComplete> StreamingConfigBuilder<S>
impl<S: IsComplete> StreamingConfigBuilder<S>
Sourcepub fn build(self) -> ConfigResult<StreamingConfig>
pub fn build(self) -> ConfigResult<StreamingConfig>
Validates and builds the StreamingConfig.
§Errors
Returns an error if any field fails validation (see StreamingConfig::validate).
Auto Trait Implementations§
impl<S> Freeze for StreamingConfigBuilder<S>
impl<S> RefUnwindSafe for StreamingConfigBuilder<S>
impl<S> Send for StreamingConfigBuilder<S>
impl<S> Sync for StreamingConfigBuilder<S>
impl<S> Unpin for StreamingConfigBuilder<S>
impl<S> UnsafeUnpin for StreamingConfigBuilder<S>
impl<S> UnwindSafe for StreamingConfigBuilder<S>
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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