Enum diesel::connection::statement_cache::PrepareForCache
source · pub enum PrepareForCache {
Yes,
No,
}
Expand description
A helper type that indicates if a certain query is cached inside of the prepared statement cache or not
This information can be used by the connection implementation to signal this fact to the database while actually perparing the statement
Variants§
Trait Implementations§
source§impl Clone for PrepareForCache
impl Clone for PrepareForCache
source§fn clone(&self) -> PrepareForCache
fn clone(&self) -> PrepareForCache
Returns a copy 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 PrepareForCache
impl Debug for PrepareForCache
impl Copy for PrepareForCache
Auto Trait Implementations§
impl Freeze for PrepareForCache
impl RefUnwindSafe for PrepareForCache
impl Send for PrepareForCache
impl Sync for PrepareForCache
impl Unpin for PrepareForCache
impl UnwindSafe for PrepareForCache
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)