Trait diesel::row::Field[][src]

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

The name of the current field

Returns None if it’s an unnamed field

Get the value representing the current field in the raw representation as it is transmitted by the database

Provided methods

Checks whether this field is null or not.

Implementors