Struct asink::mongo::MongoSink
[−]
[src]
pub struct MongoSink { /* fields omitted */ }
Sink with MongoDB backend
Each data send to this sink will be serialized into bson::Document
i.e. the data must be serialized into Document
.
Methods
impl MongoSink
[src]
fn new(host: String, port: u16, db: String, collection: String) -> Self
[src]
Constructs a new MongoSink
.
impl MongoSink
[src]
fn local(db: &str, collection: &str) -> Self
[src]
Connect to mongodb with default setting localhost:27017
Trait Implementations
impl Debug for MongoSink
[src]
impl Clone for MongoSink
[src]
fn clone(&self) -> MongoSink
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more