pub struct ParameterDefinition {
pub name: &'static str,
pub kind: ParameterKind,
pub context: ParameterContext,
pub category: &'static str,
pub short_desc: &'static str,
pub extra_desc: Option<&'static str>,
pub flags: ParameterFlags,
pub library: Option<&'static str>,
}Expand description
One configuration parameter.
Fields§
§name: &'static strThe canonical spelling, which SHOW reports as its column name.
kind: ParameterKind§context: ParameterContext§category: &'static str§short_desc: &'static str§extra_desc: Option<&'static str>§flags: ParameterFlags§library: Option<&'static str>The library that defines the parameter when a session loads it; until then the name is an ordinary custom parameter of the library’s reserved prefix.
Implementations§
Source§impl ParameterDefinition
impl ParameterDefinition
pub fn has_flag(&self, flag: ParameterFlags) -> bool
Sourcepub fn boot_setting(&self) -> String
pub fn boot_setting(&self) -> String
The setting a session starts with, as pg_settings.boot_val reports it.
Sourcepub fn unit(&self) -> Option<ParameterUnit>
pub fn unit(&self) -> Option<ParameterUnit>
The unit of an integer parameter, as pg_settings.unit reports it.
Trait Implementations§
Source§impl Clone for ParameterDefinition
impl Clone for ParameterDefinition
impl Copy for ParameterDefinition
Auto Trait Implementations§
impl Freeze for ParameterDefinition
impl RefUnwindSafe for ParameterDefinition
impl Send for ParameterDefinition
impl Sync for ParameterDefinition
impl Unpin for ParameterDefinition
impl UnsafeUnpin for ParameterDefinition
impl UnwindSafe for ParameterDefinition
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more