pub struct MongoAttributes {
pub host: String,
pub database: String,
pub username: String,
pub password: String,
pub collection_name: String,
pub max_retry: i32,
pub retry_interval_sec: i32,
}Expand description
Configuration for delivering stream batches to a MongoDB database.
Fields§
§host: StringDatabase host (connection string or hostname).
database: StringDatabase name.
username: StringUsername used to authenticate.
password: StringPassword used to authenticate.
collection_name: StringDestination collection for inserted documents.
max_retry: i32Maximum number of retry attempts for a failed write.
retry_interval_sec: i32Seconds to wait between retry attempts.
Trait Implementations§
Source§impl Clone for MongoAttributes
impl Clone for MongoAttributes
Source§fn clone(&self) -> MongoAttributes
fn clone(&self) -> MongoAttributes
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 MongoAttributes
impl Debug for MongoAttributes
Source§impl<'de> Deserialize<'de> for MongoAttributes
impl<'de> Deserialize<'de> for MongoAttributes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MongoAttributes
impl RefUnwindSafe for MongoAttributes
impl Send for MongoAttributes
impl Sync for MongoAttributes
impl Unpin for MongoAttributes
impl UnsafeUnpin for MongoAttributes
impl UnwindSafe for MongoAttributes
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