pub enum GrantObject {
Table {
name: String,
columns: Option<Vec<String>>,
},
Schema(String),
Database(String),
Sequence(String),
Function {
name: String,
args: String,
},
AllTablesInSchema(String),
AllSequencesInSchema(String),
}Expand description
Object that grants apply to.
Variants§
Table
Table with optional column list.
Schema(String)
Schema.
Database(String)
Database.
Sequence(String)
Sequence.
Function
Function with signature.
AllTablesInSchema(String)
All tables in schema.
AllSequencesInSchema(String)
All sequences in schema.
Implementations§
Source§impl GrantObject
impl GrantObject
Sourcepub fn table_columns<I, S>(name: impl Into<String>, columns: I) -> Self
pub fn table_columns<I, S>(name: impl Into<String>, columns: I) -> Self
Create a table grant with specific columns.
Trait Implementations§
Source§impl Clone for GrantObject
impl Clone for GrantObject
Source§fn clone(&self) -> GrantObject
fn clone(&self) -> GrantObject
Returns a duplicate of the value. Read more
1.0.0 · 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 GrantObject
impl Debug for GrantObject
Source§impl<'de> Deserialize<'de> for GrantObject
impl<'de> Deserialize<'de> for GrantObject
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
Source§impl PartialEq for GrantObject
impl PartialEq for GrantObject
Source§impl Serialize for GrantObject
impl Serialize for GrantObject
impl Eq for GrantObject
impl StructuralPartialEq for GrantObject
Auto Trait Implementations§
impl Freeze for GrantObject
impl RefUnwindSafe for GrantObject
impl Send for GrantObject
impl Sync for GrantObject
impl Unpin for GrantObject
impl UnwindSafe for GrantObject
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