pub enum TranslationMode {
PoolDefault,
ForceOn,
ForceOff,
}Expand description
How to resolve translation for a call relative to the pool default.
§Examples
use sql_middleware::prelude::*;
let options = QueryOptions::default()
.with_translation(TranslationMode::ForceOn);Variants§
PoolDefault
Follow the pool’s default setting.
ForceOn
Force translation on, regardless of pool default.
ForceOff
Force translation off, regardless of pool default.
Implementations§
Trait Implementations§
Source§impl Clone for TranslationMode
impl Clone for TranslationMode
Source§fn clone(&self) -> TranslationMode
fn clone(&self) -> TranslationMode
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 TranslationMode
impl Debug for TranslationMode
Source§impl PartialEq for TranslationMode
impl PartialEq for TranslationMode
impl Copy for TranslationMode
impl Eq for TranslationMode
impl StructuralPartialEq for TranslationMode
Auto Trait Implementations§
impl Freeze for TranslationMode
impl RefUnwindSafe for TranslationMode
impl Send for TranslationMode
impl Sync for TranslationMode
impl Unpin for TranslationMode
impl UnwindSafe for TranslationMode
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