#[non_exhaustive]pub enum ConfigOptionScope {
Local,
Session,
Global,
}Expand description
Scope in which a configuration option takes effect.
#[non_exhaustive]: DuckDB may add a scope, so a match outside
quack-rs needs a wildcard arm.
ⓘ
use quack_rs::config_option::ConfigOptionScope;
fn per_connection(scope: ConfigOptionScope) -> bool {
match scope {
ConfigOptionScope::Local | ConfigOptionScope::Session => true,
ConfigOptionScope::Global => false,
// error[E0004]: a wildcard arm is required
}
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Local
Option is local to the current statement.
Session
Option is scoped to the current session.
Global
Option applies globally to the database.
Trait Implementations§
Source§impl Clone for ConfigOptionScope
impl Clone for ConfigOptionScope
Source§fn clone(&self) -> ConfigOptionScope
fn clone(&self) -> ConfigOptionScope
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 moreimpl Copy for ConfigOptionScope
Source§impl Debug for ConfigOptionScope
impl Debug for ConfigOptionScope
impl Eq for ConfigOptionScope
Source§impl PartialEq for ConfigOptionScope
impl PartialEq for ConfigOptionScope
impl StructuralPartialEq for ConfigOptionScope
Auto Trait Implementations§
impl Freeze for ConfigOptionScope
impl RefUnwindSafe for ConfigOptionScope
impl Send for ConfigOptionScope
impl Sync for ConfigOptionScope
impl Unpin for ConfigOptionScope
impl UnsafeUnpin for ConfigOptionScope
impl UnwindSafe for ConfigOptionScope
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