pub struct AclItem {
pub grantee: String,
pub privs: u16,
pub grantable: u16,
pub grantor: String,
}Expand description
v7.39 (read01 round 57) — one PG aclitem: what grantee may do to a
table, and who granted it. Renders as grantee=privs/grantor, with an
EMPTY grantee meaning PUBLIC (=r/owner).
Fields§
§grantee: StringThe role the privileges are held by. Empty string = PUBLIC.
privs: u16Bitmask over priv_bits: which privileges are held.
grantable: u16Bitmask over priv_bits: which of them carry WITH GRANT OPTION
(PG renders those with a trailing * — r*).
grantor: StringThe role that ran the GRANT.
Trait Implementations§
impl Eq for AclItem
impl StructuralPartialEq for AclItem
Auto Trait Implementations§
impl Freeze for AclItem
impl RefUnwindSafe for AclItem
impl Send for AclItem
impl Sync for AclItem
impl Unpin for AclItem
impl UnsafeUnpin for AclItem
impl UnwindSafe for AclItem
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