pub struct UserInfo {
pub name: String,
pub is_superuser: bool,
pub can_create_db: bool,
pub can_create_role: bool,
pub connection_limit: i32,
}Expand description
PostgreSQL user information
Fields§
§name: StringUsername
is_superuser: boolIs superuser
can_create_db: boolCan create databases
can_create_role: boolCan create roles
connection_limit: i32Connection limit (-1 for unlimited)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
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