pub struct Grant {
pub privileges: Vec<Privilege>,
pub kind: Option<String>,
pub securable: Identifier,
pub function_params: Vec<String>,
pub principals: Vec<GrantPrincipal>,
pub grant_option: bool,
pub as_principal: Option<Identifier>,
}Expand description
GRANT statement
Fields§
§privileges: Vec<Privilege>Privileges to grant (e.g., SELECT, INSERT, UPDATE(col1, col2))
kind: Option<String>Object kind (TABLE, SCHEMA, FUNCTION, etc.)
securable: IdentifierThe object to grant on
function_params: Vec<String>Function parameter types (for FUNCTION kind)
principals: Vec<GrantPrincipal>The grantees
grant_option: boolWITH GRANT OPTION
as_principal: Option<Identifier>TSQL: AS principal (the grantor role)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Grant
impl<'de> Deserialize<'de> for Grant
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 StructuralPartialEq for Grant
Auto Trait Implementations§
impl Freeze for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnwindSafe for Grant
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