pub struct QuerySettingsField {
pub value: String,
pub flags: u64,
}Expand description
Query settings field with flags
Settings can have flags that indicate their importance and scope:
- IMPORTANT: Setting is critical for query execution
- CUSTOM: User-defined setting
- OBSOLETE: Deprecated setting (for backward compatibility)
Fields§
§value: StringSetting value
flags: u64Setting flags (bitwise OR of IMPORTANT, CUSTOM, OBSOLETE)
Implementations§
Source§impl QuerySettingsField
impl QuerySettingsField
Sourcepub fn new(value: impl Into<String>) -> Self
pub fn new(value: impl Into<String>) -> Self
Create a new settings field with value and no flags
Sourcepub fn with_flags(value: impl Into<String>, flags: u64) -> Self
pub fn with_flags(value: impl Into<String>, flags: u64) -> Self
Create a new settings field with value and flags
Sourcepub fn is_important(&self) -> bool
pub fn is_important(&self) -> bool
Check if setting has IMPORTANT flag
Sourcepub fn is_obsolete(&self) -> bool
pub fn is_obsolete(&self) -> bool
Check if setting has OBSOLETE flag
Trait Implementations§
Source§impl Clone for QuerySettingsField
impl Clone for QuerySettingsField
Source§fn clone(&self) -> QuerySettingsField
fn clone(&self) -> QuerySettingsField
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 QuerySettingsField
impl Debug for QuerySettingsField
Source§impl Default for QuerySettingsField
impl Default for QuerySettingsField
Source§fn default() -> QuerySettingsField
fn default() -> QuerySettingsField
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QuerySettingsField
impl RefUnwindSafe for QuerySettingsField
impl Send for QuerySettingsField
impl Sync for QuerySettingsField
impl Unpin for QuerySettingsField
impl UnwindSafe for QuerySettingsField
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