Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use liwe::query::cli::parse_projection;
use liwe::query::{Projection, ProjectionBase};
use serde_yaml::Mapping;

pub fn parse_projection_replace(s: &str) -> Result<Projection, String> {
    parse_projection(s, ProjectionBase::Empty)
}

pub fn parse_projection_extend(s: &str) -> Result<Projection, String> {
    parse_projection(s, ProjectionBase::Document)
}

pub fn unused_warn() -> Mapping {
    Mapping::new()
}