Resolver

Trait Resolver 

Source
pub trait Resolver {
    // Provided method
    fn build_fields(&self, attr: &str) -> Vec<Field> { ... }
}
Expand description

A Resolver is type that can build and return an IntoIterator of Datadog Search Syntax Fields. These are intended to be passed along to Filter methods as pre-parsed field types which can be used to determine which logic is necessary to match against.

Provided Methods§

Source

fn build_fields(&self, attr: &str) -> Vec<Field>

Builds fields, and returns an iterator. Takes a immutable ref to self to allow for recursion when building filters. A type that implements Resolver + Filter and needs to update an internal cache when building fields should use interior mutability.

Implementors§