[][src]Struct mongodb_arrow_connector::writer::WriterConfig

pub struct WriterConfig<'a> {
    pub hostname: &'a str,
    pub port: Option<u16>,
    pub database: &'a str,
    pub collection: &'a str,
    pub write_mode: WriteMode,
    pub coerce_types: bool,
}

Configuration for the MongoDB writer

Fields

hostname: &'a str

The hostname to connect to

port: Option<u16>

An optional port, defaults to 27017

database: &'a str

The name of the database to write to

collection: &'a str

The name of the collection to write to

write_mode: WriteMode

The write mode, whether an existing collection should be appended to or overwritten

coerce_types: bool

Whether compatible types should be coerced, for example an Int8 type will be written to an Int32 as BSON doesn't have Int8

Auto Trait Implementations

impl<'a> RefUnwindSafe for WriterConfig<'a>

impl<'a> Send for WriterConfig<'a>

impl<'a> Sync for WriterConfig<'a>

impl<'a> Unpin for WriterConfig<'a>

impl<'a> UnwindSafe for WriterConfig<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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