pub struct QueryOptions {
pub translation: TranslationMode,
pub prepare: PrepareMode,
pub statement_cache: Option<StatementCacheMode>,
}Expand description
Per-call options for query/execute paths.
Fields§
§translation: TranslationMode§prepare: PrepareMode§statement_cache: Option<StatementCacheMode>Implementations§
Source§impl QueryOptions
impl QueryOptions
pub fn with_translation(self, translation: TranslationMode) -> Self
pub fn with_prepare(self, prepare: PrepareMode) -> Self
pub fn with_statement_cache(self, statement_cache: StatementCacheMode) -> Self
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
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 QueryOptions
impl Debug for QueryOptions
Source§impl Default for QueryOptions
impl Default for QueryOptions
Source§impl PartialEq for QueryOptions
impl PartialEq for QueryOptions
Source§fn eq(&self, other: &QueryOptions) -> bool
fn eq(&self, other: &QueryOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for QueryOptions
impl Eq for QueryOptions
impl StructuralPartialEq for QueryOptions
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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