Trait oapi::OApiOperator[][src]

pub trait OApiOperator<T> {
    fn get(&self) -> Result<Vec<SparseValue<'_, T>>, SparseError>;
fn new(val: Vec<OperatorSelector<T>>) -> Self; }

OApi Operator trait

This trait is implemented by the operators. The operators allows to aggregate multiple part of a schema to form one.

Required methods

fn get(&self) -> Result<Vec<SparseValue<'_, T>>, SparseError>[src]

Get the values pointed by the operator

fn new(val: Vec<OperatorSelector<T>>) -> Self[src]

Create a operator providing values

Loading content...

Implementors

impl<T> OApiOperator<T> for AllOfSelect<T> where
    T: 'static + Serialize + DeserializeOwned + SparsableTrait
[src]

impl<T> OApiOperator<T> for AnyOfSelect<T> where
    T: 'static + Serialize + DeserializeOwned + SparsableTrait
[src]

impl<T> OApiOperator<T> for NotSelect<T> where
    T: 'static + Serialize + DeserializeOwned + SparsableTrait
[src]

impl<T> OApiOperator<T> for OneOfSelect<T> where
    T: 'static + Serialize + DeserializeOwned + SparsableTrait
[src]

Loading content...