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

pub trait Field<'a, DB: Backend> {
    fn field_name(&self) -> Option<&'a str>;
fn value(&self) -> Option<RawValue<'a, DB>>; fn is_null(&self) -> bool { ... } }

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

fn field_name(&self) -> Option<&'a str>

The name of the current field

Returns None if it's an unnamed field

fn value(&self) -> Option<RawValue<'a, DB>>

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

Loading content...

Provided methods

fn is_null(&self) -> bool

Checks whether this field is null or not.

Loading content...


Loading content...