pub struct GrantPrincipal {
pub name: Identifier,
pub is_role: bool,
pub is_group: bool,
}Expand description
Principal in GRANT/REVOKE (user, role, etc.)
Fields§
§name: IdentifierThe name of the principal
is_role: boolWhether prefixed with ROLE keyword
is_group: boolWhether prefixed with GROUP keyword (Redshift)
Trait Implementations§
Source§impl Clone for GrantPrincipal
impl Clone for GrantPrincipal
Source§fn clone(&self) -> GrantPrincipal
fn clone(&self) -> GrantPrincipal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrantPrincipal
impl Debug for GrantPrincipal
Source§impl<'de> Deserialize<'de> for GrantPrincipal
impl<'de> Deserialize<'de> for GrantPrincipal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GrantPrincipal
impl PartialEq for GrantPrincipal
Source§impl Serialize for GrantPrincipal
impl Serialize for GrantPrincipal
impl StructuralPartialEq for GrantPrincipal
Auto Trait Implementations§
impl Freeze for GrantPrincipal
impl RefUnwindSafe for GrantPrincipal
impl Send for GrantPrincipal
impl Sync for GrantPrincipal
impl Unpin for GrantPrincipal
impl UnwindSafe for GrantPrincipal
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