Struct grant::config::role::RoleSchemaLevel
source · pub struct RoleSchemaLevel {
pub name: String,
pub grants: Vec<String>,
pub schemas: Vec<String>,
}
Expand description
Role Schema Level.
For example:
- name: role_schema_level
type: SCHEMA
grants:
- CREATE
- TEMP
schemas:
- schema1
- schema2
The above example will grant CREATE and TEMP privileges on schema1 and schema2.
Fields§
§name: String
§grants: Vec<String>
§schemas: Vec<String>
Implementations§
Trait Implementations§
source§impl Clone for RoleSchemaLevel
impl Clone for RoleSchemaLevel
source§fn clone(&self) -> RoleSchemaLevel
fn clone(&self) -> RoleSchemaLevel
Returns a copy 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 RoleSchemaLevel
impl Debug for RoleSchemaLevel
source§impl<'de> Deserialize<'de> for RoleSchemaLevel
impl<'de> Deserialize<'de> for RoleSchemaLevel
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 RoleSchemaLevel
impl PartialEq for RoleSchemaLevel
source§fn eq(&self, other: &RoleSchemaLevel) -> bool
fn eq(&self, other: &RoleSchemaLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RoleValidate for RoleSchemaLevel
impl RoleValidate for RoleSchemaLevel
source§impl Serialize for RoleSchemaLevel
impl Serialize for RoleSchemaLevel
impl Eq for RoleSchemaLevel
impl StructuralPartialEq for RoleSchemaLevel
Auto Trait Implementations§
impl Freeze for RoleSchemaLevel
impl RefUnwindSafe for RoleSchemaLevel
impl Send for RoleSchemaLevel
impl Sync for RoleSchemaLevel
impl Unpin for RoleSchemaLevel
impl UnwindSafe for RoleSchemaLevel
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.