pub struct NativeQuery {
pub query: String,
pub template_tags: HashMap<String, TemplateTag>,
pub collection: Option<String>,
}
Expand description
Represents a native SQL query
Fields§
§query: String
The SQL query string
Template tags for parameterized queries
collection: Option<String>
Collection of tables used in the query
Implementations§
Source§impl NativeQuery
impl NativeQuery
Trait Implementations§
Source§impl Clone for NativeQuery
impl Clone for NativeQuery
Source§fn clone(&self) -> NativeQuery
fn clone(&self) -> NativeQuery
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 NativeQuery
impl Debug for NativeQuery
Source§impl<'de> Deserialize<'de> for NativeQuery
impl<'de> Deserialize<'de> for NativeQuery
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 NativeQuery
impl PartialEq for NativeQuery
Source§impl Serialize for NativeQuery
impl Serialize for NativeQuery
impl StructuralPartialEq for NativeQuery
Auto Trait Implementations§
impl Freeze for NativeQuery
impl RefUnwindSafe for NativeQuery
impl Send for NativeQuery
impl Sync for NativeQuery
impl Unpin for NativeQuery
impl UnwindSafe for NativeQuery
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