pub struct PyPropertyPathSpec {
pub path: String,
pub mode: PyPropertyPathMode,
pub weight: Option<f32>,
}Expand description
A single registered property-FTS path with its extraction mode.
Fields§
§path: StringJSON path to the property (must start with $.).
mode: PyPropertyPathModeWhether to treat this path as a scalar or recursively walk it.
weight: Option<f32>Optional BM25 weight multiplier for this path.
Trait Implementations§
Source§impl Clone for PyPropertyPathSpec
impl Clone for PyPropertyPathSpec
Source§fn clone(&self) -> PyPropertyPathSpec
fn clone(&self) -> PyPropertyPathSpec
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 PyPropertyPathSpec
impl Debug for PyPropertyPathSpec
Source§impl<'de> Deserialize<'de> for PyPropertyPathSpec
impl<'de> Deserialize<'de> for PyPropertyPathSpec
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 From<PyPropertyPathSpec> for FtsPropertyPathSpec
impl From<PyPropertyPathSpec> for FtsPropertyPathSpec
Source§fn from(value: PyPropertyPathSpec) -> Self
fn from(value: PyPropertyPathSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PyPropertyPathSpec
impl PartialEq for PyPropertyPathSpec
Source§impl Serialize for PyPropertyPathSpec
impl Serialize for PyPropertyPathSpec
impl StructuralPartialEq for PyPropertyPathSpec
Auto Trait Implementations§
impl Freeze for PyPropertyPathSpec
impl RefUnwindSafe for PyPropertyPathSpec
impl Send for PyPropertyPathSpec
impl Sync for PyPropertyPathSpec
impl Unpin for PyPropertyPathSpec
impl UnsafeUnpin for PyPropertyPathSpec
impl UnwindSafe for PyPropertyPathSpec
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