#[repr(u16)]pub enum ColumnFlag {
Nullable = 1,
CaseSensitive = 2,
Updateable = 8,
UpdateableUnknown = 16,
Identity = 32,
Computed = 128,
FixedLenClrType = 1_024,
SparseColumnSet = 2_048,
Encrypted = 4_096,
Hidden = 8_192,
Key = 16_384,
NullableUnknown = 32_768,
}Expand description
A setting a column can hold.
Variants§
Nullable = 1
The column can be null.
CaseSensitive = 2
Set for string columns with binary collation and always for the XML data type.
Updateable = 8
If column is writeable.
UpdateableUnknown = 16
Column modification status unknown.
Identity = 32
Column is an identity.
Computed = 128
Coulumn is computed.
FixedLenClrType = 1_024
Column is a fixed-length common language runtime user-defined type (CLR UDT).
SparseColumnSet = 2_048
Column is the special XML column for the sparse column set.
Encrypted = 4_096
Column is encrypted transparently and has to be decrypted to view the plaintext value. This flag is valid when the column encryption feature is negotiated between client and server and is turned on.
Hidden = 8_192
Column is part of a hidden primary key created to support a T-SQL SELECT statement containing FOR BROWSE.
Key = 16_384
Column is part of a primary key for the row and the T-SQL SELECT statement contains FOR BROWSE.
NullableUnknown = 32_768
It is unknown whether the column might be nullable.
Trait Implementations§
Source§impl BitAnd for ColumnFlag
impl BitAnd for ColumnFlag
Source§impl BitFlag for ColumnFlag
impl BitFlag for ColumnFlag
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for ColumnFlag
impl BitOr for ColumnFlag
Source§impl BitXor for ColumnFlag
impl BitXor for ColumnFlag
Source§impl Clone for ColumnFlag
impl Clone for ColumnFlag
Source§fn clone(&self) -> ColumnFlag
fn clone(&self) -> ColumnFlag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more