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.
Note that this does not work on PostgreSQL 9.4 and earlier because the
pending_restart
column does not exist. PostgreSQL 9.4 has long been
obsolete so a workaround is not provided.
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: bool
Implementations§
Trait Implementations§
Source§impl<'a, R: Row> FromRow<'a, R> for Settingwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<Vec<String>>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for Settingwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<Vec<String>>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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