pub struct SqlServerEntity {
pub server_id: String,
pub server_type: String,
pub allow_write: bool,
pub allow_delete: bool,
pub allow_admin: bool,
pub max_rows: u64,
pub max_joins: u32,
pub allowed_operations: HashSet<String>,
pub blocked_operations: HashSet<String>,
pub blocked_tables: HashSet<String>,
pub blocked_columns: HashSet<String>,
pub allowed_tables: HashSet<String>,
}Expand description
Server configuration for SQL Code Mode.
Fields use sql_* config prefixes externally so DBA administrators
can set “this is a SQL server’s config” vocabulary in config.toml.
Field names here drop the prefix for concision in policy code.
Fields§
§server_id: String§server_type: String§allow_write: bool§allow_delete: bool§allow_admin: bool§max_rows: u64§max_joins: u32§allowed_operations: HashSet<String>§blocked_operations: HashSet<String>§blocked_tables: HashSet<String>§blocked_columns: HashSet<String>§allowed_tables: HashSet<String>Trait Implementations§
Source§impl Clone for SqlServerEntity
impl Clone for SqlServerEntity
Source§fn clone(&self) -> SqlServerEntity
fn clone(&self) -> SqlServerEntity
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 SqlServerEntity
impl Debug for SqlServerEntity
Auto Trait Implementations§
impl Freeze for SqlServerEntity
impl RefUnwindSafe for SqlServerEntity
impl Send for SqlServerEntity
impl Sync for SqlServerEntity
impl Unpin for SqlServerEntity
impl UnsafeUnpin for SqlServerEntity
impl UnwindSafe for SqlServerEntity
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 moreCreates a shared type from an unshared type.