Struct grant::connection::UserSchemaRole
source · pub struct UserSchemaRole {
pub name: String,
pub schema_name: String,
pub has_create: bool,
pub has_usage: bool,
}
Expand description
Presentation for a user schema privilege in the database
which a users has create
or usage
on schema
Fields§
§name: String
§schema_name: String
§has_create: bool
§has_usage: bool
Implementations§
source§impl UserSchemaRole
impl UserSchemaRole
pub fn perm_to_string(&self, with_name: bool) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserSchemaRole
impl RefUnwindSafe for UserSchemaRole
impl Send for UserSchemaRole
impl Sync for UserSchemaRole
impl Unpin for UserSchemaRole
impl UnwindSafe for UserSchemaRole
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