Struct rs_es::operations::common::Options
[−]
[src]
pub struct Options<'a>(pub Vec<(&'a str, OptionVal)>);
Every ES operation has a set of options
Methods
impl<'a> Options<'a>
[src]
fn new() -> Options<'a>
fn is_empty(&self) -> bool
fn push<O: Into<OptionVal>>(&mut self, key: &'a str, val: O)
Add a value
use rs_es::operations::common::Options; let mut options = Options::new(); options.push("a", 1); options.push("b", "2");