pub trait Field<'a, DB: Backend> {
fn field_name(&self) -> Option<&str>;
fn value(&self) -> Option<RawValue<'_, DB>>;
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 colum 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