mongodb-aggregations 0.1.0

A library for building MongoDB aggregations pipelines in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bson::Document;

pub enum StageLocation {
    First,
    Last,
    Any,
}

pub trait PipelineStage: Into<Document> {
    const NAME: &'static str;
    const LOCATION: StageLocation = StageLocation::Any;
}

mod add_fields;
pub use add_fields::AddFields;