pub enum PolicyCmd {
All,
Select,
Insert,
Update,
Delete,
}Expand description
v7.39 (RLS) — the command a policy applies to. ALL is the default and
covers every command; the others scope the policy to one statement kind.
Persisted as a single byte in the policy appendix (FILE_VERSION 59+).
Variants§
Implementations§
Source§impl PolicyCmd
impl PolicyCmd
Sourcepub const fn as_pg_char(self) -> char
pub const fn as_pg_char(self) -> char
PG pg_policy.polcmd single-char encoding.
Sourcepub const fn as_pg_word(self) -> &'static str
pub const fn as_pg_word(self) -> &'static str
PG pg_policies.cmd word form.
pub const fn to_wire_byte(self) -> u8
pub const fn from_wire_byte(b: u8) -> Option<Self>
Trait Implementations§
impl Copy for PolicyCmd
impl Eq for PolicyCmd
impl StructuralPartialEq for PolicyCmd
Auto Trait Implementations§
impl Freeze for PolicyCmd
impl RefUnwindSafe for PolicyCmd
impl Send for PolicyCmd
impl Sync for PolicyCmd
impl Unpin for PolicyCmd
impl UnsafeUnpin for PolicyCmd
impl UnwindSafe for PolicyCmd
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