pub enum ColumnRule {
Any,
DenyAll,
Only(BTreeSet<String>),
Except(BTreeSet<String>),
}Expand description
Column access rule for reads, writes, or RETURNING clauses.
Variants§
Any
Any column is allowed.
DenyAll
No columns are allowed.
Only(BTreeSet<String>)
Only the listed columns are allowed.
Except(BTreeSet<String>)
Any column except the listed columns is allowed.
Implementations§
Source§impl ColumnRule
impl ColumnRule
Trait Implementations§
Source§impl Clone for ColumnRule
impl Clone for ColumnRule
Source§fn clone(&self) -> ColumnRule
fn clone(&self) -> ColumnRule
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 ColumnRule
impl Debug for ColumnRule
Source§impl Default for ColumnRule
impl Default for ColumnRule
Source§fn default() -> ColumnRule
fn default() -> ColumnRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ColumnRule
impl<'de> Deserialize<'de> for ColumnRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ColumnRule
Source§impl PartialEq for ColumnRule
impl PartialEq for ColumnRule
Source§fn eq(&self, other: &ColumnRule) -> bool
fn eq(&self, other: &ColumnRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ColumnRule
impl Serialize for ColumnRule
impl StructuralPartialEq for ColumnRule
Auto Trait Implementations§
impl Freeze for ColumnRule
impl RefUnwindSafe for ColumnRule
impl Send for ColumnRule
impl Sync for ColumnRule
impl Unpin for ColumnRule
impl UnsafeUnpin for ColumnRule
impl UnwindSafe for ColumnRule
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