pub struct CreatePolicyQuery {
pub name: String,
pub table: String,
pub action: Option<PolicyAction>,
pub role: Option<String>,
pub using: Box<Filter>,
pub target_kind: PolicyTargetKind,
}Expand description
Row-level security policy definition.
Fields§
§name: String§table: String§action: Option<PolicyAction>Which action this policy gates. None = ALL (applies to all four).
role: Option<String>Role the policy applies to. None = all roles.
using: Box<Filter>Boolean predicate the row must satisfy.
target_kind: PolicyTargetKindEntity kind this policy targets (Phase 2.5.5 RLS universal).
CREATE POLICY p ON t ... defaults to Table; writing
ON NODES OF g / ON VECTORS OF v / ON MESSAGES OF q /
ON POINTS OF ts / ON EDGES OF g targets the matching
non-tabular kind. The evaluator filters polices by kind so
a graph policy only gates graph reads, vector policy only
gates vector reads, etc.
Trait Implementations§
Source§impl Clone for CreatePolicyQuery
impl Clone for CreatePolicyQuery
Source§fn clone(&self) -> CreatePolicyQuery
fn clone(&self) -> CreatePolicyQuery
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 Freeze for CreatePolicyQuery
impl RefUnwindSafe for CreatePolicyQuery
impl Send for CreatePolicyQuery
impl Sync for CreatePolicyQuery
impl Unpin for CreatePolicyQuery
impl UnsafeUnpin for CreatePolicyQuery
impl UnwindSafe for CreatePolicyQuery
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request