pub struct PgRoles {Show 14 fields
pub rolname: SmolStr,
pub rolsuper: bool,
pub rolinherit: bool,
pub rolcreaterole: bool,
pub rolcreatedb: bool,
pub rolcanlogin: bool,
pub rolreplication: bool,
pub rolconnlimit: Option<u32>,
pub rolvaliduntil: Option<DateTime<FixedOffset>>,
pub rolbypassrls: bool,
pub rolconfig: Option<Vec<SmolStr>>,
pub description: Option<SmolStr>,
pub seclabel: Option<SmolStr>,
pub seclabel_provider: Option<SmolStr>,
}Expand description
The DDL-only contents of pg_roles
Fields§
§rolname: SmolStrname Role name
rolsuper: boolbool Role has superuser privileges
rolinherit: boolbool Role automatically inherits privileges of roles it is a member of
rolcreaterole: boolbool Role can create more roles
rolcreatedb: boolbool Role can create databases
rolcanlogin: boolbool Role can log in. That is, this role can be given as the initial session authorization identifier
rolreplication: boolbool Role is a replication role. A replication role can initiate replication connections and create and drop replication slots.
rolconnlimit: Option<u32>int4 For roles that can log in, this sets maximum number of concurrent connections this role can make. -1 means no limit.
rolvaliduntil: Option<DateTime<FixedOffset>>timestamptz Password expiry time (only used for password authentication); null if no expiration
rolbypassrls: boolbool Role bypasses every row-level security policy, see Section 5.9 for more information.
rolconfig: Option<Vec<SmolStr>>text[] Role-specific defaults for run-time configuration variables
description: Option<SmolStr>text The comment from pg_shdescription
seclabel: Option<SmolStr>text The seclabel from pg_shseclabel
seclabel_provider: Option<SmolStr>text The provider from pg_shseclabel
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PgRoles
impl<'de> Deserialize<'de> for PgRoles
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgRoles, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgRoles, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Equivalent<PgRoles> for SmolStr
impl Equivalent<PgRoles> for SmolStr
Source§fn equivalent(&self, key: &PgRoles) -> bool
fn equivalent(&self, key: &PgRoles) -> bool
key and return true if they are equal.Source§impl Equivalent<PgRoles> for str
impl Equivalent<PgRoles> for str
Source§fn equivalent(&self, key: &PgRoles) -> bool
fn equivalent(&self, key: &PgRoles) -> bool
key and return true if they are equal.Source§impl Serialize for PgRoles
impl Serialize for PgRoles
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for PgRoles
impl StructuralPartialEq for PgRoles
Auto Trait Implementations§
impl Freeze for PgRoles
impl RefUnwindSafe for PgRoles
impl Send for PgRoles
impl Sync for PgRoles
impl Unpin for PgRoles
impl UnsafeUnpin for PgRoles
impl UnwindSafe for PgRoles
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.