pub struct QueryDefinition {
pub return_type: String,
pub return_array: bool,
pub sql_source: String,
pub description: Option<String>,
pub args: Vec<ArgumentDefinition>,
}Expand description
Query definition in TOML
Fields§
§return_type: StringReturn type name
return_array: boolWhether query returns an array
sql_source: StringSQL source for the query
description: Option<String>Query description
args: Vec<ArgumentDefinition>Query arguments
Trait Implementations§
Source§impl Clone for QueryDefinition
impl Clone for QueryDefinition
Source§fn clone(&self) -> QueryDefinition
fn clone(&self) -> QueryDefinition
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 QueryDefinition
impl Debug for QueryDefinition
Source§impl Default for QueryDefinition
impl Default for QueryDefinition
Source§impl<'de> Deserialize<'de> for QueryDefinitionwhere
QueryDefinition: Default,
impl<'de> Deserialize<'de> for QueryDefinitionwhere
QueryDefinition: Default,
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 QueryDefinition
impl RefUnwindSafe for QueryDefinition
impl Send for QueryDefinition
impl Sync for QueryDefinition
impl Unpin for QueryDefinition
impl UnwindSafe for QueryDefinition
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