#[non_exhaustive]pub enum PreferenceScope {
Global,
Profile(ProfileIdentity),
}Expand description
What a preference applies to. Presentation choices are global; database-shaped choices are scoped to one connection profile.
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.
Global
Profile(ProfileIdentity)
Trait Implementations§
Source§impl Clone for PreferenceScope
impl Clone for PreferenceScope
Source§fn clone(&self) -> PreferenceScope
fn clone(&self) -> PreferenceScope
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 PreferenceScope
impl Debug for PreferenceScope
Source§impl<'de> Deserialize<'de> for PreferenceScope
impl<'de> Deserialize<'de> for PreferenceScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PreferenceScope
Source§impl Hash for PreferenceScope
impl Hash for PreferenceScope
Source§impl PartialEq for PreferenceScope
impl PartialEq for PreferenceScope
Source§impl Serialize for PreferenceScope
impl Serialize for PreferenceScope
impl StructuralPartialEq for PreferenceScope
Auto Trait Implementations§
impl Freeze for PreferenceScope
impl RefUnwindSafe for PreferenceScope
impl Send for PreferenceScope
impl Sync for PreferenceScope
impl Unpin for PreferenceScope
impl UnsafeUnpin for PreferenceScope
impl UnwindSafe for PreferenceScope
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