pub struct QueryDef {
pub name: String,
pub table: String,
pub fields: Vec<QbeField>,
}Expand description
A query definition: source table plus QBE columns.
Fields§
§name: StringQuery name (unique in its database, case-insensitive).
table: StringSource table (whitelisted against the database).
fields: Vec<QbeField>QBE columns in grid order. The list may be any subset in any
order of the source’s fields: shown names resolve by name and
must be unique (case-insensitive) and known, or execution
answers a precise EngineError.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryDef
impl<'de> Deserialize<'de> for QueryDef
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 Eq for QueryDef
impl StructuralPartialEq for QueryDef
Auto Trait Implementations§
impl Forget for QueryDef
impl Freeze for QueryDef
impl Move for QueryDef
impl RefUnwindSafe for QueryDef
impl Send for QueryDef
impl Sync for QueryDef
impl Unpin for QueryDef
impl UnsafeUnpin for QueryDef
impl UnwindSafe for QueryDef
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