pub trait Fielder {
// Required methods
fn visit_bool(&mut self, b: bool);
fn visit_float(&mut self, f: f64);
fn visit_int(&mut self, i: i64);
fn visit_string(&mut self, s: &str);
fn visit_null(&mut self);
}Expand description
A field visitor that may be implemented to iterate and visit all the
elements of a Row.
Required Methods§
Sourcefn visit_bool(&mut self, b: bool)
fn visit_bool(&mut self, b: bool)
Called for fields of type bool with the value of the field
Sourcefn visit_float(&mut self, f: f64)
fn visit_float(&mut self, f: f64)
Called for fields of type float with the value of the field
Sourcefn visit_string(&mut self, s: &str)
fn visit_string(&mut self, s: &str)
Called for fields of type String with the value of the field
Sourcefn visit_null(&mut self)
fn visit_null(&mut self)
Called for fields where the value of the field is missing. This method may be as simple as doing nothing but there are use cases where some operations are required.