pub struct Role {
pub name: Cow<'static, str>,
pub superuser: Option<bool>,
pub create_db: Option<bool>,
pub create_role: Option<bool>,
pub inherit: Option<bool>,
pub can_login: Option<bool>,
pub replication: Option<bool>,
pub bypass_rls: Option<bool>,
pub conn_limit: Option<i32>,
pub password: Option<Cow<'static, str>>,
pub valid_until: Option<Cow<'static, str>>,
}Expand description
Runtime role entity for serde serialization.
Fields§
§name: Cow<'static, str>Role name
superuser: Option<bool>Superuser privilege
create_db: Option<bool>Can create databases?
create_role: Option<bool>Can create roles?
inherit: Option<bool>Inherit privileges?
can_login: Option<bool>Can login?
replication: Option<bool>Replication privilege
bypass_rls: Option<bool>Bypass row-level security
conn_limit: Option<i32>Connection limit (-1 for unlimited)
password: Option<Cow<'static, str>>Password (encrypted)
valid_until: Option<Cow<'static, str>>Password expiration date
Implementations§
Trait Implementations§
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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