pub struct AlterPolicyStatement {
pub name: String,
pub table: String,
pub rename_to: Option<String>,
pub roles: Option<Vec<String>>,
pub using: Option<Expr>,
pub with_check: Option<Expr>,
}Expand description
v7.39 (RLS) — ALTER POLICY name ON table { RENAME TO new | [TO roles] [USING (expr)] [WITH CHECK (expr)] }. Cannot change PERMISSIVE/RESTRICTIVE
or the command (matches PG).
Fields§
§name: String§table: String§rename_to: Option<String>§roles: Option<Vec<String>>§using: Option<Expr>§with_check: Option<Expr>Trait Implementations§
Source§impl Clone for AlterPolicyStatement
impl Clone for AlterPolicyStatement
Source§fn clone(&self) -> AlterPolicyStatement
fn clone(&self) -> AlterPolicyStatement
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 AlterPolicyStatement
impl Debug for AlterPolicyStatement
Source§impl PartialEq for AlterPolicyStatement
impl PartialEq for AlterPolicyStatement
impl StructuralPartialEq for AlterPolicyStatement
Auto Trait Implementations§
impl Freeze for AlterPolicyStatement
impl RefUnwindSafe for AlterPolicyStatement
impl Send for AlterPolicyStatement
impl Sync for AlterPolicyStatement
impl Unpin for AlterPolicyStatement
impl UnsafeUnpin for AlterPolicyStatement
impl UnwindSafe for AlterPolicyStatement
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