pub struct IRQuery {
pub name: String,
pub return_type: String,
pub returns_list: bool,
pub nullable: bool,
pub arguments: Vec<IRArgument>,
pub sql_source: Option<String>,
pub description: Option<String>,
pub auto_params: AutoParams,
}Expand description
IR Query definition.
Fields§
§name: StringQuery name (e.g., “users”, “user”).
return_type: StringReturn type name.
returns_list: boolDoes this return a list?
nullable: boolIs return value nullable?
arguments: Vec<IRArgument>Query arguments.
sql_source: Option<String>SQL source (table/view).
description: Option<String>Query description.
auto_params: AutoParamsAuto-wired parameters (where, orderBy, limit, offset).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IRQuery
impl<'de> Deserialize<'de> for IRQuery
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 IRQuery
Auto Trait Implementations§
impl Freeze for IRQuery
impl RefUnwindSafe for IRQuery
impl Send for IRQuery
impl Sync for IRQuery
impl Unpin for IRQuery
impl UnsafeUnpin for IRQuery
impl UnwindSafe for IRQuery
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