pub struct PrivilegeScope<'a> {
pub catalog: &'a dyn PrivilegeCatalog,
pub resolution: RelationNameResolution,
pub inherited: &'a dyn PrivilegeCteCatalog,
pub scalar_subqueries: Vec<QueryPlan>,
/* private fields */
}Fields§
§catalog: &'a dyn PrivilegeCatalog§resolution: RelationNameResolution§inherited: &'a dyn PrivilegeCteCatalog§scalar_subqueries: Vec<QueryPlan>Implementations§
Source§impl<'a> PrivilegeScope<'a>
impl<'a> PrivilegeScope<'a>
pub fn new( catalog: &'a dyn PrivilegeCatalog, resolution: RelationNameResolution, inherited: &'a dyn PrivilegeCteCatalog, scalar_subqueries: Vec<QueryPlan>, ) -> Self
pub fn insert_deferred(&mut self, plan: CtePlan)
pub fn is_visible_cte(&self, name: &str) -> bool
pub fn materialized_for_scan(&self, name: &str) -> Option<Vec<String>>
pub fn deferred_reference(&self, name: &str) -> Option<&CtePlan>
pub fn privilege_subject(&self) -> Result<&str, SQLError>
Trait Implementations§
Source§impl<'a> Clone for PrivilegeScope<'a>
impl<'a> Clone for PrivilegeScope<'a>
Source§fn clone(&self) -> PrivilegeScope<'a>
fn clone(&self) -> PrivilegeScope<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for PrivilegeScope<'a>
impl<'a> !Send for PrivilegeScope<'a>
impl<'a> !Sync for PrivilegeScope<'a>
impl<'a> !UnwindSafe for PrivilegeScope<'a>
impl<'a> Freeze for PrivilegeScope<'a>
impl<'a> Unpin for PrivilegeScope<'a>
impl<'a> UnsafeUnpin for PrivilegeScope<'a>
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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