pub enum PrivilegeCode {
Show 13 variants
UserAdmin = 0,
SysAdmin = 1,
DataAdmin = 2,
UDFAdmin = 3,
SIndexAdmin = 4,
Read = 10,
ReadWrite = 11,
ReadWriteUDF = 12,
Write = 13,
Truncate = 14,
MaskingAdmin = 15,
ReadMasked = 16,
WriteMasked = 17,
}Expand description
Default privileges defined on the server.
Variants§
UserAdmin = 0
User can edit/remove other users. Global scope only.
SysAdmin = 1
User can perform systems administration functions on a database that do not involve user administration. Examples include server configuration. Global scope only.
DataAdmin = 2
User can perform UDF and SINDEX administration actions. Global scope only.
UDFAdmin = 3
User can perform user-defined function(UDF) administration actions. Examples include create/drop UDF. Global scope only. Requires server version 6+
SIndexAdmin = 4
User can perform secondary index administration actions. Examples include create/drop index. Global scope only. Requires server version 6+.
Read = 10
User can read data only.
ReadWrite = 11
User can read and write data.
ReadWriteUDF = 12
User can read and write data through user-defined functions.
Write = 13
User can read and write data through user-defined functions.
Truncate = 14
User can truncate data only. Requires server version 6+
MaskingAdmin = 15
User can perform data masking administration actions. Global scope only.
ReadMasked = 16
User can read masked data only.
WriteMasked = 17
User can write masked data only.
Trait Implementations§
Source§impl Clone for PrivilegeCode
impl Clone for PrivilegeCode
Source§fn clone(&self) -> PrivilegeCode
fn clone(&self) -> PrivilegeCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more