#[non_exhaustive]pub struct ValidatedFilter {
pub clauses: Vec<String>,
pub params: Vec<Value>,
pub sort_clause: Option<String>,
}Expand description
Schema-validated filter, safe for SQL generation.
Produced by Filter::validate. Contains parameterized WHERE clauses
and an optional ORDER BY clause. Used by SelectBuilder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.clauses: Vec<String>WHERE clause fragments (joined with AND).
params: Vec<Value>Bind parameters corresponding to ? placeholders in clauses.
sort_clause: Option<String>Optional ORDER BY clause from the sort parameter.
Implementations§
Auto Trait Implementations§
impl Freeze for ValidatedFilter
impl RefUnwindSafe for ValidatedFilter
impl Send for ValidatedFilter
impl Sync for ValidatedFilter
impl Unpin for ValidatedFilter
impl UnsafeUnpin for ValidatedFilter
impl UnwindSafe for ValidatedFilter
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