pub enum AdminCommand {
CreateUser {
username: String,
},
DropUser {
username: String,
},
GrantRole {
username: String,
role: String,
},
RevokeRole {
username: String,
role: String,
},
}Expand description
Administrative operations carried by ExecuteCommand::Admin.
Intentionally lean: user/role management, the operations gated by the catalog’s admin permission today. Further admin verbs are appended in later stages; discriminants are never reordered or reused (spec section 4.10).
Variants§
CreateUser
Create a catalog user.
DropUser
Drop a catalog user.
GrantRole
Grant a role to a user.
RevokeRole
Revoke a role from a user.
Trait Implementations§
Source§impl Clone for AdminCommand
impl Clone for AdminCommand
Source§fn clone(&self) -> AdminCommand
fn clone(&self) -> AdminCommand
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 AdminCommand
impl Debug for AdminCommand
Source§impl<'de> Deserialize<'de> for AdminCommand
impl<'de> Deserialize<'de> for AdminCommand
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 AdminCommand
Source§impl PartialEq for AdminCommand
impl PartialEq for AdminCommand
Source§impl Serialize for AdminCommand
impl Serialize for AdminCommand
impl StructuralPartialEq for AdminCommand
Auto Trait Implementations§
impl Freeze for AdminCommand
impl RefUnwindSafe for AdminCommand
impl Send for AdminCommand
impl Sync for AdminCommand
impl Unpin for AdminCommand
impl UnsafeUnpin for AdminCommand
impl UnwindSafe for AdminCommand
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