Skip to main content

CHAR

Constant CHAR 

Source
pub const CHAR: TypeMarker;
Expand description

Specifies a CHAR column type.

CHAR stores fixed-length character strings. Use #[column(CHAR(8))] to declare its required physical length. The same marker on Vec<String> declares an array of bounded CHAR elements.

See: https://www.postgresql.org/docs/current/datatype-character.html