pub struct GrantKey {
pub role: String,
pub object_type: ObjectType,
pub schema: Option<String>,
pub name: Option<String>,
}Expand description
Unique key identifying a grant target — (grantee, object_type, schema, name).
We use Ord so these can live in a BTreeMap for deterministic output.
Fields§
§role: StringThe role receiving the privilege.
object_type: ObjectTypeThe kind of object.
schema: Option<String>Schema name. None for schema-level and database-level grants.
name: Option<String>Object name, "*" for all-objects wildcard, None for schema-level grants.
Trait Implementations§
Source§impl Ord for GrantKey
impl Ord for GrantKey
Source§impl PartialOrd for GrantKey
impl PartialOrd for GrantKey
impl Eq for GrantKey
impl StructuralPartialEq for GrantKey
Auto Trait Implementations§
impl Freeze for GrantKey
impl RefUnwindSafe for GrantKey
impl Send for GrantKey
impl Sync for GrantKey
impl Unpin for GrantKey
impl UnsafeUnpin for GrantKey
impl UnwindSafe for GrantKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.