[][src]Enum assembly_data::fdb::common::Value

pub enum Value<T: Context> {
    Nothing,
    Integer(i32),
    Float(f32),
    Text(T::String),
    Boolean(bool),
    BigInt(T::I64),
    VarChar(T::XML),
}

A single field value in the database

This is a generic enum that is the template for all other Field types in this crate.

Variants

Nothing

The NULL value

Integer(i32)

A 32 bit integer

Float(f32)

A 32 bit IEEE floating point number

Text(T::String)

A string

Boolean(bool)

A boolean

BigInt(T::I64)

A 64 bit integer

VarChar(T::XML)

A (XML?) string

Implementations

impl<T: Context> Value<T>[src]

pub fn into_opt_integer(self) -> Option<i32>[src]

Returns Some with the value if the field contains an Value::Integer.

pub fn into_opt_float(self) -> Option<f32>[src]

Returns Some with the value if the field contains a Value::Float.

pub fn into_opt_text(self) -> Option<T::String>[src]

Returns Some with the value if the field contains a Value::Text.

pub fn into_opt_boolean(self) -> Option<bool>[src]

Returns Some with the value if the field contains a Value::Boolean.

pub fn into_opt_big_int(self) -> Option<T::I64>[src]

Returns Some with the value if the field contains a Value::BigInt.

pub fn into_opt_varchar(self) -> Option<T::XML>[src]

Returns Some with the value if the field contains a Value::VarChar.

Trait Implementations

impl<T: Context> Clone for Value<T> where
    T::String: Clone,
    T::XML: Clone,
    T::I64: Clone
[src]

impl<T: Context> Copy for Value<T> where
    T::String: Copy,
    T::XML: Copy,
    T::I64: Copy
[src]

impl<T: Debug + Context> Debug for Value<T> where
    T::String: Debug,
    T::I64: Debug,
    T::XML: Debug
[src]

impl<T: Context, '_> From<&'_ Value<T>> for ValueType[src]

impl<T: PartialEq + Context> PartialEq<Value<T>> for Value<T> where
    T::String: PartialEq,
    T::I64: PartialEq,
    T::XML: PartialEq
[src]

impl<T: Context> StructuralPartialEq for Value<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Value<T> where
    <T as Context>::I64: RefUnwindSafe,
    <T as Context>::String: RefUnwindSafe,
    <T as Context>::XML: RefUnwindSafe
[src]

impl<T> Send for Value<T> where
    <T as Context>::I64: Send,
    <T as Context>::String: Send,
    <T as Context>::XML: Send
[src]

impl<T> Sync for Value<T> where
    <T as Context>::I64: Sync,
    <T as Context>::String: Sync,
    <T as Context>::XML: Sync
[src]

impl<T> Unpin for Value<T> where
    <T as Context>::I64: Unpin,
    <T as Context>::String: Unpin,
    <T as Context>::XML: Unpin
[src]

impl<T> UnwindSafe for Value<T> where
    <T as Context>::I64: UnwindSafe,
    <T as Context>::String: UnwindSafe,
    <T as Context>::XML: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.