Skip to main content

Contextual

Trait Contextual 

Source
pub trait Contextual: Clone {
    // Required method
    fn get_condition(&self) -> Condition;

    // Provided methods
    fn filter_by_eval(
        contexts: Vec<Self>,
        dimension_data: &Map<String, Value>,
    ) -> Vec<Self> { ... }
    fn filter_exact_match(
        contexts: Vec<Self>,
        dimension_data: &Map<String, Value>,
    ) -> Vec<Self> { ... }
    fn filter_by_dimension(
        contexts: Vec<Self>,
        dimension_keys: &[String],
    ) -> Vec<Self> { ... }
}

Required Methods§

Provided Methods§

Source

fn filter_by_eval( contexts: Vec<Self>, dimension_data: &Map<String, Value>, ) -> Vec<Self>

Source

fn filter_exact_match( contexts: Vec<Self>, dimension_data: &Map<String, Value>, ) -> Vec<Self>

Source

fn filter_by_dimension( contexts: Vec<Self>, dimension_keys: &[String], ) -> Vec<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Contextual for superposition_types::database::models::cac::Context

Source§

impl Contextual for superposition_types::Context