Skip to main content

RowAccess

Trait RowAccess 

Source
pub trait RowAccess {
    // Required method
    fn get(&self, path: &str) -> Option<Value>;
}
Expand description

Row abstraction: access to the fields of a sample.

Implementers map dotted paths (a.b.c) to the matching values. For simple flat structs a HashMap<String, Value> lookup is enough.

Required Methods§

Source

fn get(&self, path: &str) -> Option<Value>

Returns the value of the field path if present. None = no field with that name.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§