pub struct IndexKeyPart {
pub column: String,
pub sub_path: Option<Vec<String>>,
pub direction: IndexDirection,
pub value_type: ValueType,
pub nulls: Option<NullsOrder>,
pub collation: Option<String>,
}Fields§
§column: String§sub_path: Option<Vec<String>>Optional path within property value (for JSON, future Ref, etc.)
direction: IndexDirection§value_type: ValueType§nulls: Option<NullsOrder>§collation: Option<String>Implementations§
Source§impl IndexKeyPart
impl IndexKeyPart
pub fn asc<S: Into<String>>(col: S, value_type: ValueType) -> Self
pub fn desc<S: Into<String>>(col: S, value_type: ValueType) -> Self
Sourcepub fn from_path(
path: &PathExpr,
direction: IndexDirection,
value_type: ValueType,
) -> Self
pub fn from_path( path: &PathExpr, direction: IndexDirection, value_type: ValueType, ) -> Self
Create from a PathExpr (handles multi-step paths)
Sourcepub fn from_flat_path(
path: &str,
direction: IndexDirection,
value_type: ValueType,
) -> Self
pub fn from_flat_path( path: &str, direction: IndexDirection, value_type: ValueType, ) -> Self
Create from a flat path string (e.g., “context.session_id”)
Trait Implementations§
Source§impl Clone for IndexKeyPart
impl Clone for IndexKeyPart
Source§fn clone(&self) -> IndexKeyPart
fn clone(&self) -> IndexKeyPart
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 IndexKeyPart
impl Debug for IndexKeyPart
Source§impl<'de> Deserialize<'de> for IndexKeyPart
impl<'de> Deserialize<'de> for IndexKeyPart
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 Hash for IndexKeyPart
impl Hash for IndexKeyPart
Source§impl PartialEq for IndexKeyPart
impl PartialEq for IndexKeyPart
Source§impl Serialize for IndexKeyPart
impl Serialize for IndexKeyPart
impl Eq for IndexKeyPart
impl StructuralPartialEq for IndexKeyPart
Auto Trait Implementations§
impl Freeze for IndexKeyPart
impl RefUnwindSafe for IndexKeyPart
impl Send for IndexKeyPart
impl Sync for IndexKeyPart
impl Unpin for IndexKeyPart
impl UnsafeUnpin for IndexKeyPart
impl UnwindSafe for IndexKeyPart
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,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.