pub struct RbsQueryInfo {
pub func_name: String,
pub struct_name: Option<String>,
pub columns: Vec<ResolvedColumn>,
pub child_columns: Vec<ResolvedColumn>,
pub params: Vec<ResolvedParam>,
pub command: QueryCommand,
}Expand description
Per-query info for RBS generation.
Fields§
§func_name: String§struct_name: Option<String>§columns: Vec<ResolvedColumn>The row’s columns. For a :grouped query this holds the parent
columns only; the children live in Self::child_columns.
child_columns: Vec<ResolvedColumn>A :grouped query’s child-row columns, empty for every other command.
Carried as its own field rather than packed into columns behind an
in-band marker: a sentinel smuggled through a data field is how #173
leaked __unknown_col__ into user-visible output, and a full_type
that means “this is a child” rather than a type is the same shape of
mistake one refactor away from being read as a type.
params: Vec<ResolvedParam>§command: QueryCommandTrait Implementations§
Source§impl Clone for RbsQueryInfo
impl Clone for RbsQueryInfo
Source§fn clone(&self) -> RbsQueryInfo
fn clone(&self) -> RbsQueryInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RbsQueryInfo
impl Debug for RbsQueryInfo
Source§impl Default for RbsQueryInfo
impl Default for RbsQueryInfo
Source§fn default() -> RbsQueryInfo
fn default() -> RbsQueryInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RbsQueryInfo
impl RefUnwindSafe for RbsQueryInfo
impl Send for RbsQueryInfo
impl Sync for RbsQueryInfo
impl Unpin for RbsQueryInfo
impl UnsafeUnpin for RbsQueryInfo
impl UnwindSafe for RbsQueryInfo
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