#[non_exhaustive]pub struct MongodbSourceConfig {
pub include_objects: Option<MongodbCluster>,
pub exclude_objects: Option<MongodbCluster>,
pub max_concurrent_backfill_tasks: i32,
/* private fields */
}
Expand description
MongoDB source configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.include_objects: Option<MongodbCluster>
MongoDB collections to include in the stream.
exclude_objects: Option<MongodbCluster>
MongoDB collections to exclude from the stream.
max_concurrent_backfill_tasks: i32
Optional. Maximum number of concurrent backfill tasks. The number should be non-negative and less than or equal to 50. If not set (or set to 0), the system’s default value is used
Implementations§
Source§impl MongodbSourceConfig
impl MongodbSourceConfig
pub fn new() -> Self
Sourcepub fn set_include_objects<T>(self, v: T) -> Selfwhere
T: Into<MongodbCluster>,
pub fn set_include_objects<T>(self, v: T) -> Selfwhere
T: Into<MongodbCluster>,
Sets the value of include_objects.
Sourcepub fn set_or_clear_include_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<MongodbCluster>,
pub fn set_or_clear_include_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<MongodbCluster>,
Sets or clears the value of include_objects.
Sourcepub fn set_exclude_objects<T>(self, v: T) -> Selfwhere
T: Into<MongodbCluster>,
pub fn set_exclude_objects<T>(self, v: T) -> Selfwhere
T: Into<MongodbCluster>,
Sets the value of exclude_objects.
Sourcepub fn set_or_clear_exclude_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<MongodbCluster>,
pub fn set_or_clear_exclude_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<MongodbCluster>,
Sets or clears the value of exclude_objects.
Sourcepub fn set_max_concurrent_backfill_tasks<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_concurrent_backfill_tasks<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_concurrent_backfill_tasks.
Trait Implementations§
Source§impl Clone for MongodbSourceConfig
impl Clone for MongodbSourceConfig
Source§fn clone(&self) -> MongodbSourceConfig
fn clone(&self) -> MongodbSourceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 MongodbSourceConfig
impl Debug for MongodbSourceConfig
Source§impl Default for MongodbSourceConfig
impl Default for MongodbSourceConfig
Source§fn default() -> MongodbSourceConfig
fn default() -> MongodbSourceConfig
Returns the “default value” for a type. Read more
Source§impl Message for MongodbSourceConfig
impl Message for MongodbSourceConfig
Source§impl PartialEq for MongodbSourceConfig
impl PartialEq for MongodbSourceConfig
impl StructuralPartialEq for MongodbSourceConfig
Auto Trait Implementations§
impl Freeze for MongodbSourceConfig
impl RefUnwindSafe for MongodbSourceConfig
impl Send for MongodbSourceConfig
impl Sync for MongodbSourceConfig
impl Unpin for MongodbSourceConfig
impl UnwindSafe for MongodbSourceConfig
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