pub struct NativeQuery {
pub sql: String,
pub result_set_mapping: String,
pub parameters: Vec<Value>,
}Expand description
NativeQuery — 原生 SQL + ResultSetMapping
Fields§
§sql: StringSQL 语句(可含 ? 占位符)
result_set_mapping: StringResultSetMapping 名称
parameters: Vec<Value>绑定参数
Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NativeQuery
impl RefUnwindSafe for NativeQuery
impl Send for NativeQuery
impl Sync for NativeQuery
impl Unpin for NativeQuery
impl UnsafeUnpin 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