pub struct Grant {
pub grantee: GranteeType,
pub target: AttrTarget,
pub privileges: Vec<String>,
pub with_grant_option: bool,
pub depends_on: Vec<DbObjectId>,
pub object_owner: String,
pub is_default_acl: bool,
}Fields§
§grantee: GranteeType§target: AttrTarget§privileges: Vec<String>§with_grant_option: bool§depends_on: Vec<DbObjectId>§object_owner: String§is_default_acl: boolWhether this grant came from the default ACL (NULL ACL in pg_catalog). true = object uses PostgreSQL defaults (e.g., PUBLIC has EXECUTE on functions) false = object has explicit ACL (grants/revokes have been made)
Implementations§
Trait Implementations§
Source§impl DependsOn for Grant
impl DependsOn for Grant
fn id(&self) -> DbObjectId
fn depends_on(&self) -> &[DbObjectId]
Auto Trait Implementations§
impl Freeze for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnsafeUnpin for Grant
impl UnwindSafe for Grant
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more