pub struct CreatePolicyStatement {
pub name: String,
pub table: String,
pub permissive: bool,
pub cmd: PolicyCmd,
pub roles: Vec<String>,
pub using: Option<Expr>,
pub with_check: Option<Expr>,
}Expand description
v7.39 (RLS) — CREATE POLICY name ON table [AS {PERMISSIVE|RESTRICTIVE}] [FOR cmd] [TO roles] [USING (expr)] [WITH CHECK (expr)].
Fields§
§name: String§table: String§permissive: booltrue = PERMISSIVE (default), false = RESTRICTIVE.
cmd: PolicyCmd§roles: Vec<String>Empty = PUBLIC.
using: Option<Expr>§with_check: Option<Expr>Trait Implementations§
Source§impl Clone for CreatePolicyStatement
impl Clone for CreatePolicyStatement
Source§fn clone(&self) -> CreatePolicyStatement
fn clone(&self) -> CreatePolicyStatement
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 moreSource§impl Debug for CreatePolicyStatement
impl Debug for CreatePolicyStatement
Source§impl PartialEq for CreatePolicyStatement
impl PartialEq for CreatePolicyStatement
impl StructuralPartialEq for CreatePolicyStatement
Auto Trait Implementations§
impl Freeze for CreatePolicyStatement
impl RefUnwindSafe for CreatePolicyStatement
impl Send for CreatePolicyStatement
impl Sync for CreatePolicyStatement
impl Unpin for CreatePolicyStatement
impl UnsafeUnpin for CreatePolicyStatement
impl UnwindSafe for CreatePolicyStatement
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