pub struct Setting {Show 17 fields
pub name: String,
pub setting: String,
pub unit: Option<String>,
pub category: String,
pub short_desc: String,
pub extra_desc: Option<String>,
pub context: String,
pub vartype: String,
pub source: String,
pub min_val: Option<String>,
pub max_val: Option<String>,
pub enumvals: Option<Vec<String>>,
pub boot_val: Option<String>,
pub reset_val: Option<String>,
pub sourcefile: Option<String>,
pub sourceline: Option<i32>,
pub pending_restart: bool,
}Expand description
A setting as defined in pg_catalog.pg_settings.
This is fairly stringly-typed and mostly informational. For getting and
setting values, Parameter and Value may be more convenient.
See the documentation for
pg_settings.
Fields§
§name: String§setting: String§unit: Option<String>§category: String§short_desc: String§extra_desc: Option<String>§context: String§vartype: String§source: String§min_val: Option<String>§max_val: Option<String>§enumvals: Option<Vec<String>>§boot_val: Option<String>§reset_val: Option<String>§sourcefile: Option<String>§sourceline: Option<i32>§pending_restart: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnsafeUnpin for Setting
impl UnwindSafe for Setting
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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