pub struct Selection {
pub predicate: Predicate,
pub order_by: Option<Vec<OrderByItem>>,
pub limit: Option<u64>,
}Fields§
§predicate: Predicate§order_by: Option<Vec<OrderByItem>>§limit: Option<u64>Implementations§
Source§impl Selection
impl Selection
Sourcepub fn assume_null(&self, columns: &[String]) -> Self
pub fn assume_null(&self, columns: &[String]) -> Self
Transform the selection to assume the given columns are NULL. This filters out ORDER BY items that reference missing columns.
Sourcepub fn referenced_columns(&self) -> Vec<String>
pub fn referenced_columns(&self) -> Vec<String>
Collect all column names referenced in this selection (WHERE + ORDER BY).
For JSON paths like licensing.territory, returns the column name (licensing),
not the JSON path step (territory).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Selection
impl<'de> Deserialize<'de> for Selection
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
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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