Field

Type Alias Field 

Source
pub type Field<'a> = Value<MemContext<'a>>;
Expand description

Value of or reference to a field value

Aliased Type§

pub enum Field<'a> {
    Nothing,
    Integer(i32),
    Float(f32),
    Text(&'a Latin1Str),
    Boolean(bool),
    BigInt(i64),
    VarChar(&'a Latin1Str),
}

Variants§

§

Nothing

The NULL value

§

Integer(i32)

A 32 bit integer

§

Float(f32)

A 32 bit IEEE floating point number

§

Text(&'a Latin1Str)

A string

§

Boolean(bool)

A boolean

§

BigInt(i64)

A 64 bit integer

§

VarChar(&'a Latin1Str)

A (XML?) string

Trait Implementations§

Source§

impl<'a> ToSql for Field<'a>

Source§

impl<'a> TryFrom<BaseHandle<Buffer<'a>, Value<FileContext>>> for Field<'a>

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: Handle<'a, FDBFieldValue>) -> Result<Self, Self::Error>

Performs the conversion.