Enum barrel::types::WrappedDefault[][src]

pub enum WrappedDefault<'outer> {
Show 13 variants AnyText(&'outer str), Integer(i64), Float(f32), Double(f64), UUID(String), Boolean(bool), Date(SystemTime), Binary(&'outer [u8]), Foreign(Box<Type>), Custom(&'static str), Array(Vec<Type>), Function(AutogenFunction), Null,
}

Variants

AnyText(&'outer str)

Any text information

Tuple Fields of AnyText

0: &'outer str
Integer(i64)

Simple integer

Tuple Fields of Integer

0: i64
Float(f32)

Floating point number

Tuple Fields of Float

0: f32
Double(f64)

Like Float but ~ ~ d o u b l e p r e c i s i o n ~ ~

Tuple Fields of Double

0: f64
UUID(String)

A unique identifier type

Tuple Fields of UUID

0: String
Boolean(bool)

True or False

Tuple Fields of Boolean

0: bool

Date And Time

Tuple Fields of Date

0: SystemTime
Binary(&'outer [u8])

Tuple Fields of Binary

0: &'outer [u8]
Foreign(Box<Type>)

Foreign key to other table

Tuple Fields of Foreign

0: Box<Type>
Custom(&'static str)

Tuple Fields of Custom

0: &'static str
Array(Vec<Type>)

Any of the above, but many of them

Tuple Fields of Array

0: Vec<Type>
Function(AutogenFunction)

A function to call

Tuple Fields of Function

0: AutogenFunction
Null

Nothing

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

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

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

Converts the given value to a String. 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.