pub struct SqlLogOptions {
pub select: bool,
pub mutation: bool,
}Fields§
§select: bool§mutation: boolImplementations§
Source§impl SqlLogOptions
impl SqlLogOptions
pub fn disabled() -> Self
pub fn select_only() -> Self
pub fn mutation_only() -> Self
pub fn all() -> Self
pub fn enabled_for(self, operation: SqlLogOperation) -> bool
Trait Implementations§
Source§impl Clone for SqlLogOptions
impl Clone for SqlLogOptions
Source§fn clone(&self) -> SqlLogOptions
fn clone(&self) -> SqlLogOptions
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 SqlLogOptions
impl Debug for SqlLogOptions
Source§impl Default for SqlLogOptions
impl Default for SqlLogOptions
Source§fn default() -> SqlLogOptions
fn default() -> SqlLogOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SqlLogOptions
impl PartialEq for SqlLogOptions
Source§fn eq(&self, other: &SqlLogOptions) -> bool
fn eq(&self, other: &SqlLogOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SqlLogOptions
impl Eq for SqlLogOptions
impl StructuralPartialEq for SqlLogOptions
Auto Trait Implementations§
impl Freeze for SqlLogOptions
impl RefUnwindSafe for SqlLogOptions
impl Send for SqlLogOptions
impl Sync for SqlLogOptions
impl Unpin for SqlLogOptions
impl UnsafeUnpin for SqlLogOptions
impl UnwindSafe for SqlLogOptions
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