pub trait Accessor {
// Required methods
fn get_string(&self, key: &str) -> Option<&str>;
fn get_int64(&self, key: &str) -> Option<i64>;
fn get_float64(&self, key: &str) -> Option<f64>;
}Expand description
An abstract view over a bag of typed attributes.
Required Methods§
Sourcefn get_string(&self, key: &str) -> Option<&str>
fn get_string(&self, key: &str) -> Option<&str>
Returns a string attribute, without converting other types.
Sourcefn get_int64(&self, key: &str) -> Option<i64>
fn get_int64(&self, key: &str) -> Option<i64>
Returns an integer attribute, without parsing strings.
Sourcefn get_float64(&self, key: &str) -> Option<f64>
fn get_float64(&self, key: &str) -> Option<f64>
Returns a floating-point attribute, without parsing strings.