Rust

Undocumented.

Contents

Rust
pub const BIG_INT: &str = "bigint"

A big integer.

Rust
pub const BOOLEAN: &str = "boolean"

A boolean.

Rust
pub const DATETIME: &str = "datetime"

A datetime.

Rust
pub const DEFAULT_VARCHAR_SIZE: i64 = 255

The size of a varchar given none (Column::DEFAULT_VARCHAR_SIZE).

Rust
pub const EMAIL: &str = "email"

An email string.

Rust
pub const ENUM: &str = "enum"

An enum string.

Rust
pub const FLOAT: &str = "double"

A float.

Rust
pub const FORMAT_SIZES: &[(&str, i64)] = &[(EMAIL, 254), (ENUM, super::LENGTH_KEY), (IP, 39), (URL, 2000)]

Format shorthands and their sizes (Column::FORMAT_SIZES).

Rust
pub const INTEGER: &str = "integer"

An integer.

Rust
pub const IP: &str = "ip"

An IP string.

Rust
pub const LINE: &str = "linestring"

A line.

Rust
pub const LONGTEXT: &str = "longtext"

A LONGTEXT string.

Rust
pub const MEDIUMTEXT: &str = "mediumtext"

A MEDIUMTEXT string.

Rust
pub const OBJECT: &str = "object"

An object.

Rust
pub const POINT: &str = "point"

A point.

Rust
pub const POLYGON: &str = "polygon"

A polygon.

Rust
pub const RELATIONSHIP: &str = "relationship"

A relationship.

Rust
pub const SIZES: &[(&str, i64)] = &[(TEXT, 65535), (MEDIUMTEXT, 16_777_215), (LONGTEXT, 2_147_483_647)]

Sizes fixed by the type (Column::SIZES).

Rust
pub const STRING: &str = "string"

A string.

Rust
pub const TEXT: &str = "text"

A TEXT string.

Rust
pub const URL: &str = "url"

A URL string.

Rust
pub const VARCHAR: &str = "varchar"

A VARCHAR string.

Rust
pub const VECTOR: &str = "vector"

A vector.