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: boolImplementations§
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