pub struct ColumnFlags { /* private fields */ }Expand description
Per-column flags packed into a u32. Stored verbatim in the run header.
Implementations§
Source§impl ColumnFlags
impl ColumnFlags
pub const NULLABLE: u32
pub const PRIMARY_KEY: u32
pub const ENCRYPTED: u32
Sourcepub const ENCRYPTED_INDEXABLE: u32
pub const ENCRYPTED_INDEXABLE: u32
Store HMAC(value) for equality or OPE for range so indexes work without decrypting.
Sourcepub const EMBEDDING_BINARY_QUANTIZED: u32
pub const EMBEDDING_BINARY_QUANTIZED: u32
Store 1 bit per dimension; similarity via popcount(XOR).
Sourcepub const AUTO_INCREMENT: u32
pub const AUTO_INCREMENT: u32
Engine-managed monotonic identity allocator. Valid only on a single
Int64 primary-key column per table (see Schema::validate_auto_increment).
On insert, when the column is omitted or Null, the engine assigns the
next counter value; an explicit Int64 value is honored and advances the
counter past it. Counters are 1-based, never reused, and independent of
the physical crate::rowid::RowId.
pub const fn empty() -> Self
pub const fn with(self, flag: u32) -> Self
pub const fn without(self, flag: u32) -> Self
pub const fn contains(&self, flag: u32) -> bool
pub const fn bits(&self) -> u32
Trait Implementations§
Source§impl Clone for ColumnFlags
impl Clone for ColumnFlags
Source§fn clone(&self) -> ColumnFlags
fn clone(&self) -> ColumnFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColumnFlags
Source§impl Debug for ColumnFlags
impl Debug for ColumnFlags
Source§impl Default for ColumnFlags
impl Default for ColumnFlags
Source§fn default() -> ColumnFlags
fn default() -> ColumnFlags
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ColumnFlags
impl<'de> Deserialize<'de> for ColumnFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ColumnFlags
Source§impl PartialEq for ColumnFlags
impl PartialEq for ColumnFlags
Source§fn eq(&self, other: &ColumnFlags) -> bool
fn eq(&self, other: &ColumnFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ColumnFlags
impl Serialize for ColumnFlags
impl StructuralPartialEq for ColumnFlags
Auto Trait Implementations§
impl Freeze for ColumnFlags
impl RefUnwindSafe for ColumnFlags
impl Send for ColumnFlags
impl Sync for ColumnFlags
impl Unpin for ColumnFlags
impl UnsafeUnpin for ColumnFlags
impl UnwindSafe for ColumnFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more