pub struct PolicyDef {
pub name: String,
pub cmd: PolicyCmd,
pub permissive: bool,
pub roles: Vec<String>,
pub using_expr: Option<String>,
pub with_check_expr: Option<String>,
}Expand description
v7.39 (RLS) — one CREATE POLICY object, stored per table. The using_expr
/ with_check_expr hold the qualifying expression’s Display form
(re-parsed and evaluated per row at enforcement time, exactly like
TableSchema.checks); None means the clause was absent. roles empty =
PUBLIC. Persisted in the policy appendix (FILE_VERSION 59+).
Fields§
§name: String§cmd: PolicyCmd§permissive: booltrue = PERMISSIVE (default, OR-combined), false = RESTRICTIVE
(AND-combined).
roles: Vec<String>§using_expr: Option<String>§with_check_expr: Option<String>Trait Implementations§
impl StructuralPartialEq for PolicyDef
Auto Trait Implementations§
impl Freeze for PolicyDef
impl RefUnwindSafe for PolicyDef
impl Send for PolicyDef
impl Sync for PolicyDef
impl Unpin for PolicyDef
impl UnsafeUnpin for PolicyDef
impl UnwindSafe for PolicyDef
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