pub struct QueryDef {
pub name: String,
pub params: Vec<QueryParam>,
pub return_type: Option<ReturnType>,
pub body: String,
pub is_execute: bool,
}Expand description
A named query definition
Fields§
§name: StringQuery name (function name)
params: Vec<QueryParam>Parameters with types
return_type: Option<ReturnType>Return type (None for execute-only queries).
body: StringThe QAIL query body.
is_execute: boolWhether this is an execute (write) rather than query (read).
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
Auto Trait Implementations§
impl Freeze 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