pub struct Revoke {
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 cascade: bool,
pub restrict: bool,
}Expand description
REVOKE statement
Fields§
§privileges: Vec<Privilege>Privileges to revoke (e.g., SELECT, INSERT, UPDATE(col1, col2))
kind: Option<String>Object kind (TABLE, SCHEMA, FUNCTION, etc.)
securable: IdentifierThe object to revoke from
function_params: Vec<String>Function parameter types (for FUNCTION kind)
principals: Vec<GrantPrincipal>The grantees
grant_option: boolGRANT OPTION FOR
cascade: boolCASCADE
restrict: boolRESTRICT
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Revoke
impl<'de> Deserialize<'de> for Revoke
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 Revoke
Auto Trait Implementations§
impl Freeze for Revoke
impl RefUnwindSafe for Revoke
impl Send for Revoke
impl Sync for Revoke
impl Unpin for Revoke
impl UnwindSafe for Revoke
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