pub struct Database {Show 17 fields
pub oid: u32,
pub name: String,
pub owner: u32,
pub encoding: i32,
pub locale_provider: u8,
pub is_template: bool,
pub allow_connections: bool,
pub connection_limit: i32,
pub frozen_xid: u32,
pub min_mxid: u32,
pub tablespace: u32,
pub collate: String,
pub ctype: String,
pub locale: Option<String>,
pub icu_rules: Option<String>,
pub collation_version: Option<String>,
pub acl: Option<Vec<String>>,
}Expand description
A row of pg_database.
Fields§
§oid: u32§name: String§owner: u32datdba, the owner.
encoding: i32The number of the encoding, 6 for UTF8.
locale_provider: u8datlocprovider: b for builtin, c for libc and i for ICU.
is_template: bool§allow_connections: bool§connection_limit: i32datconnlimit, or UNLIMITED.
frozen_xid: u32§min_mxid: u32§tablespace: u32dattablespace, the default tablespace.
collate: String§ctype: String§locale: Option<String>datlocale, the locale of the builtin or the ICU provider.
icu_rules: Option<String>§collation_version: Option<String>§acl: Option<Vec<String>>datacl as the texts of its items, or None for the default privileges.
Implementations§
Trait Implementations§
impl Eq for Database
impl StructuralPartialEq for Database
Auto Trait Implementations§
impl Freeze for Database
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnsafeUnpin for Database
impl UnwindSafe for Database
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