Structsยง
- Char
- A marker type indicating that a Rust string should be interpreted as a
SqlScalarType::Char
. - Char
Length - The
length
of aSqlScalarType::Char
. - Invalid
Char Length Error - The error returned when constructing a
CharLength
from an invalid value. - Proto
Char Length
Enumsยง
- Char
White ๐Space - Controls how to handle trailing whitespace at the end of bpchar data.
Constantsยง
- MAX_
LENGTH ๐
Functionsยง
- format_
char_ ๐str - Returns
s
as aString
with options to enforce char and varchar semantics. - format_
str_ pad - Ensures that
s
has fewer thanlength
characters, and returns aString
version of it with blank padding so that its width islength
characters. - format_
str_ trim - Ensures that
s
has fewer thanlength
characters, and returns aString
version of it with all whitespace trimmed from the end.