pub struct DbPermissions {
pub read: bool,
pub write: bool,
pub create: bool,
pub drop: bool,
pub allowed_tables: Vec<String>,
}Expand description
Database permissions
Fields§
§read: boolCan read tables
write: boolCan write/insert
create: boolCan create tables
drop: boolCan delete tables
allowed_tables: Vec<String>Allowed table patterns
Trait Implementations§
Source§impl Clone for DbPermissions
impl Clone for DbPermissions
Source§fn clone(&self) -> DbPermissions
fn clone(&self) -> DbPermissions
Returns a duplicate 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 DbPermissions
impl Debug for DbPermissions
Source§impl Default for DbPermissions
impl Default for DbPermissions
Source§fn default() -> DbPermissions
fn default() -> DbPermissions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DbPermissions
impl RefUnwindSafe for DbPermissions
impl Send for DbPermissions
impl Sync for DbPermissions
impl Unpin for DbPermissions
impl UnwindSafe for DbPermissions
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more