pub struct SqliteHardeningOptions {
pub enforce_db_file_lock: bool,
pub read_only: bool,
pub allow_uri_filenames: bool,
pub trusted_schema: bool,
pub defensive: bool,
}Expand description
SQLite 连接层硬化配置。 SQLite hardening options used by the library/runtime layer.
Fields§
§enforce_db_file_lock: bool是否启用数据库文件锁。 Whether a database file lock should be enforced.
read_only: bool是否以只读模式打开数据库。 Whether the database should be opened in read-only mode.
allow_uri_filenames: bool是否允许 SQLite URI 文件名。 Whether SQLite URI filenames are allowed.
trusted_schema: bool是否启用 trusted_schema。 Whether trusted_schema is enabled.
defensive: bool是否启用 defensive 模式。 Whether SQLite defensive mode is enabled.
Trait Implementations§
Source§impl Clone for SqliteHardeningOptions
impl Clone for SqliteHardeningOptions
Source§fn clone(&self) -> SqliteHardeningOptions
fn clone(&self) -> SqliteHardeningOptions
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 SqliteHardeningOptions
impl Debug for SqliteHardeningOptions
Auto Trait Implementations§
impl Freeze for SqliteHardeningOptions
impl RefUnwindSafe for SqliteHardeningOptions
impl Send for SqliteHardeningOptions
impl Sync for SqliteHardeningOptions
impl Unpin for SqliteHardeningOptions
impl UnsafeUnpin for SqliteHardeningOptions
impl UnwindSafe for SqliteHardeningOptions
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request