pub struct Privilege {
pub grantor: Cow<'static, str>,
pub grantee: Cow<'static, str>,
pub schema: Cow<'static, str>,
pub table: Cow<'static, str>,
pub privilege_type: PrivilegeType,
pub is_grantable: bool,
}Expand description
Runtime privilege entity for serde serialization.
Fields§
§grantor: Cow<'static, str>Role granting the privilege
grantee: Cow<'static, str>Role receiving the privilege
schema: Cow<'static, str>Schema name
table: Cow<'static, str>Table name
privilege_type: PrivilegeTypePrivilege type
is_grantable: boolCan the grantee grant this privilege to others?
Implementations§
Trait Implementations§
Source§impl From<PrivilegeDef> for Privilege
impl From<PrivilegeDef> for Privilege
Source§fn from(def: PrivilegeDef) -> Self
fn from(def: PrivilegeDef) -> Self
Converts to this type from the input type.
impl Eq for Privilege
impl StructuralPartialEq for Privilege
Auto Trait Implementations§
impl Freeze for Privilege
impl RefUnwindSafe for Privilege
impl Send for Privilege
impl Sync for Privilege
impl Unpin for Privilege
impl UnwindSafe for Privilege
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