pub struct QailCmd {
pub action: Action,
pub table: String,
pub columns: Vec<Column>,
pub joins: Vec<Join>,
pub cages: Vec<Cage>,
pub distinct: bool,
}Expand description
The primary command structure representing a parsed QAIL query.
Fields§
§action: ActionThe action to perform (GET, SET, DEL, ADD)
table: StringTarget table name
columns: Vec<Column>Columns to select/return
joins: Vec<Join>Joins to other tables
cages: Vec<Cage>Cages (filters, sorts, limits, payloads)
distinct: boolWhether to use DISTINCT in SELECT
Implementations§
Source§impl QailCmd
impl QailCmd
Sourcepub fn set(table: impl Into<String>) -> Self
pub fn set(table: impl Into<String>) -> Self
Create a new SET (update) command for the given table.
Sourcepub fn del(table: impl Into<String>) -> Self
pub fn del(table: impl Into<String>) -> Self
Create a new DEL (delete) command for the given table.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QailCmd
impl<'de> Deserialize<'de> for QailCmd
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 QailCmd
Auto Trait Implementations§
impl Freeze for QailCmd
impl RefUnwindSafe for QailCmd
impl Send for QailCmd
impl Sync for QailCmd
impl Unpin for QailCmd
impl UnwindSafe for QailCmd
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