pub struct SqliteSourceBuilder { /* private fields */ }Expand description
Builder for SqliteSource.
Implementations§
Source§impl SqliteSourceBuilder
impl SqliteSourceBuilder
Sourcepub fn with_tables(self, tables: Vec<String>) -> Self
pub fn with_tables(self, tables: Vec<String>) -> Self
Set monitored tables.
Sourcepub fn with_table_keys(self, table_keys: Vec<TableKeyConfig>) -> Self
pub fn with_table_keys(self, table_keys: Vec<TableKeyConfig>) -> Self
Set configured table keys.
Sourcepub fn with_rest_api(self, config: RestApiConfig) -> Self
pub fn with_rest_api(self, config: RestApiConfig) -> Self
Enable REST API.
Sourcepub fn start_from(self, start_from: StartFrom) -> Self
pub fn start_from(self, start_from: StartFrom) -> Self
Set initial start behavior.
Sourcepub fn with_dispatch_mode(self, mode: DispatchMode) -> Self
pub fn with_dispatch_mode(self, mode: DispatchMode) -> Self
Set dispatch mode.
Sourcepub fn with_dispatch_buffer_capacity(self, capacity: usize) -> Self
pub fn with_dispatch_buffer_capacity(self, capacity: usize) -> Self
Set dispatch buffer capacity.
Sourcepub fn with_bootstrap_provider(
self,
provider: impl BootstrapProvider + 'static,
) -> Self
pub fn with_bootstrap_provider( self, provider: impl BootstrapProvider + 'static, ) -> Self
Set bootstrap provider.
Sourcepub fn auto_start(self, auto_start: bool) -> Self
pub fn auto_start(self, auto_start: bool) -> Self
Set source auto-start.
Sourcepub fn build(self) -> Result<SqliteSource>
pub fn build(self) -> Result<SqliteSource>
Build source.
Auto Trait Implementations§
impl Freeze for SqliteSourceBuilder
impl !RefUnwindSafe for SqliteSourceBuilder
impl Send for SqliteSourceBuilder
impl Sync for SqliteSourceBuilder
impl Unpin for SqliteSourceBuilder
impl UnsafeUnpin for SqliteSourceBuilder
impl !UnwindSafe for SqliteSourceBuilder
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