pub enum IndexKeyFragment {
Field(FieldSourceKey),
Lower(FieldSourceKey),
Upper(FieldSourceKey),
Trim(FieldSourceKey),
LowerTrim(FieldSourceKey),
Date(FieldSourceKey),
Year(FieldSourceKey),
Month(FieldSourceKey),
Day(FieldSourceKey),
}Expand description
One ordered index key component.
Variants§
Field(FieldSourceKey)
Direct field key.
Lower(FieldSourceKey)
Lower-cased text expression.
Upper(FieldSourceKey)
Upper-cased text expression.
Trim(FieldSourceKey)
Trimmed text expression.
LowerTrim(FieldSourceKey)
Lower-cased and trimmed text expression.
Date(FieldSourceKey)
Date extraction expression.
Year(FieldSourceKey)
Year extraction expression.
Month(FieldSourceKey)
Month extraction expression.
Day(FieldSourceKey)
Day extraction expression.
Implementations§
Source§impl IndexKeyFragment
impl IndexKeyFragment
Sourcepub const fn field(&self) -> &FieldSourceKey
pub const fn field(&self) -> &FieldSourceKey
Borrow the field source key consumed by this component.
Trait Implementations§
Source§impl CandidType for IndexKeyFragment
impl CandidType for IndexKeyFragment
Source§impl Clone for IndexKeyFragment
impl Clone for IndexKeyFragment
Source§fn clone(&self) -> IndexKeyFragment
fn clone(&self) -> IndexKeyFragment
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 moreSource§impl Debug for IndexKeyFragment
impl Debug for IndexKeyFragment
Source§impl<'de> Deserialize<'de> for IndexKeyFragment
impl<'de> Deserialize<'de> for IndexKeyFragment
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexKeyFragment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexKeyFragment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexKeyFragment
Source§impl PartialEq for IndexKeyFragment
impl PartialEq for IndexKeyFragment
Source§impl Serialize for IndexKeyFragment
impl Serialize for IndexKeyFragment
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IndexKeyFragment
Auto Trait Implementations§
impl Freeze for IndexKeyFragment
impl RefUnwindSafe for IndexKeyFragment
impl Send for IndexKeyFragment
impl Sync for IndexKeyFragment
impl Unpin for IndexKeyFragment
impl UnsafeUnpin for IndexKeyFragment
impl UnwindSafe for IndexKeyFragment
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.