Enum msql_srv::ValueInner[][src]

pub enum ValueInner<'a> {
    NULL,
    Bytes(&'a [u8]),
    Int(i64),
    UInt(u64),
    Double(f64),
    Date(&'a [u8]),
    Time(&'a [u8]),
    Datetime(&'a [u8]),
}
Expand description

A representation of a concrete, typed MySQL value.

Variants

NULL

The MySQL NULL value.

Bytes(&'a [u8])

An untyped sequence of bytes (usually a text type or MYSQL_TYPE_BLOB).

Int(i64)

A signed integer.

UInt(u64)

An unsigned integer.

Double(f64)

A floating point number.

Date(&'a [u8])

A binary encoding of a MYSQL_TYPE_DATE.

Time(&'a [u8])

A binary encoding of a MYSQL_TYPE_TIME.

Datetime(&'a [u8])

A binary encoding of a MYSQL_TYPE_TIMESTAMP or MYSQL_TYPE_DATETIME.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.