pub trait Field<'a, DB: Backend> {
// Required methods
fn field_name(&self) -> Option<&str>;
fn value(&self) -> Option<DB::RawValue<'_>>;
// Provided method
fn is_null(&self) -> bool { ... }
}
Expand description
Represents a single field in a database row.
This trait allows retrieving information on the name of the column and on the value of the field.
Required Methods§
sourcefn field_name(&self) -> Option<&str>
fn field_name(&self) -> Option<&str>
The name of the current field
Returns None
if it’s an unnamed field