pub struct ColumnConfig {
pub name: String,
pub in_place: bool,
pub cast_type: ColumnType,
pub indexes: Vec<Index>,
pub mode: ColumnMode,
}Fields§
§name: String§in_place: bool§cast_type: ColumnType§indexes: Vec<Index>§mode: ColumnModeImplementations§
Source§impl ColumnConfig
impl ColumnConfig
Sourcepub fn build(name: impl Into<String>) -> Self
pub fn build(name: impl Into<String>) -> Self
Builds a field with the following defaults:
Type: Utf8Str, Mode: EncryptedDuplicate In Place: false
Sourcepub fn casts_as(self, field_type: ColumnType) -> Self
pub fn casts_as(self, field_type: ColumnType) -> Self
Consumes self and sets the field_type to the given value
Sourcepub fn add_index(self, index: Index) -> Self
pub fn add_index(self, index: Index) -> Self
Consumes self and adds the given index to the list of indexes
pub fn mode(self, mode: ColumnMode) -> Self
pub fn supports_operator(&self, op: &Operator) -> bool
pub fn supported_operations(&self) -> Vec<Operator>
pub fn index_for_operator(&self, op: &Operator) -> Option<&Index>
pub fn index_for_sort(&self) -> Option<&Index>
Sourcepub fn sort_indexes_by_type(&mut self)
pub fn sort_indexes_by_type(&mut self)
Sorts indexes by type. Indexes are sorted in place.
pub fn has_unique_index_with_downcase(&self) -> bool
pub fn into_match_index(self) -> Option<Index>
pub fn into_ore_index(self) -> Option<Index>
pub fn into_unique_index(self) -> Option<Index>
pub fn into_ste_vec_index(self) -> Option<Index>
Trait Implementations§
Source§impl Clone for ColumnConfig
impl Clone for ColumnConfig
Source§fn clone(&self) -> ColumnConfig
fn clone(&self) -> ColumnConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnConfig
impl Debug for ColumnConfig
Source§impl<'de> Deserialize<'de> for ColumnConfig
impl<'de> Deserialize<'de> for ColumnConfig
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
Source§impl PartialEq<String> for ColumnConfig
impl PartialEq<String> for ColumnConfig
Source§impl PartialEq for ColumnConfig
impl PartialEq for ColumnConfig
Source§impl Serialize for ColumnConfig
impl Serialize for ColumnConfig
impl ListEntry for ColumnConfig
Auto Trait Implementations§
impl Freeze for ColumnConfig
impl RefUnwindSafe for ColumnConfig
impl Send for ColumnConfig
impl Sync for ColumnConfig
impl Unpin for ColumnConfig
impl UnwindSafe for ColumnConfig
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