pub struct IntermediateQuery {
pub name: String,
pub return_type: String,
pub returns_list: bool,
pub nullable: bool,
pub arguments: Vec<IntermediateArgument>,
pub description: Option<String>,
pub sql_source: Option<String>,
pub auto_params: Option<IntermediateAutoParams>,
pub deprecated: Option<IntermediateDeprecation>,
pub jsonb_column: Option<String>,
}Expand description
Query definition in intermediate format
Fields§
§name: StringQuery name (e.g., “users”)
return_type: StringReturn type name (e.g., “User”)
returns_list: boolReturns a list?
nullable: boolResult is nullable?
arguments: Vec<IntermediateArgument>Query arguments
description: Option<String>Query description (from docstring)
sql_source: Option<String>SQL source (table/view name)
auto_params: Option<IntermediateAutoParams>Auto-generated parameters config
deprecated: Option<IntermediateDeprecation>Deprecation info (from @deprecated directive)
jsonb_column: Option<String>JSONB column name for extracting data (e.g., “data”) Used for tv_* (denormalized JSONB tables) pattern
Trait Implementations§
Source§impl Clone for IntermediateQuery
impl Clone for IntermediateQuery
Source§fn clone(&self) -> IntermediateQuery
fn clone(&self) -> IntermediateQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntermediateQuery
impl Debug for IntermediateQuery
Source§impl<'de> Deserialize<'de> for IntermediateQuery
impl<'de> Deserialize<'de> for IntermediateQuery
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
Source§impl PartialEq for IntermediateQuery
impl PartialEq for IntermediateQuery
Source§impl Serialize for IntermediateQuery
impl Serialize for IntermediateQuery
impl Eq for IntermediateQuery
impl StructuralPartialEq for IntermediateQuery
Auto Trait Implementations§
impl Freeze for IntermediateQuery
impl RefUnwindSafe for IntermediateQuery
impl Send for IntermediateQuery
impl Sync for IntermediateQuery
impl Unpin for IntermediateQuery
impl UnwindSafe for IntermediateQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.