pub enum FilterValue {
String(String),
I64(i64),
F64(f64),
}Expand description
A bound parameter value for SQL queries.
Used internally by VectorFilter to hold typed values that are bound
via parameterized queries, preventing SQL injection.
Variants§
Implementations§
Source§impl FilterValue
impl FilterValue
Sourcepub fn to_boxed_sql(self) -> Box<dyn ToSql>
pub fn to_boxed_sql(self) -> Box<dyn ToSql>
Convert into a boxed ToSql trait object for rusqlite parameter binding.
Trait Implementations§
Source§impl Clone for FilterValue
impl Clone for FilterValue
Source§fn clone(&self) -> FilterValue
fn clone(&self) -> FilterValue
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 moreAuto Trait Implementations§
impl Freeze for FilterValue
impl RefUnwindSafe for FilterValue
impl Send for FilterValue
impl Sync for FilterValue
impl Unpin for FilterValue
impl UnwindSafe for FilterValue
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