Struct autopush_common::db::DbSettings
source · pub struct DbSettings {
pub dsn: Option<String>,
pub db_settings: String,
}
Expand description
The universal settings for the database abstractor.
Fields§
§dsn: Option<String>
Database connector string
db_settings: String
A JSON formatted dictionary containing Database settings that
are specific to the type of Data storage specified in the dsn
See the respective settings structure for
crate::db::bigtable::BigTableDbSettings
Trait Implementations§
source§impl Clone for DbSettings
impl Clone for DbSettings
source§fn clone(&self) -> DbSettings
fn clone(&self) -> DbSettings
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 DbSettings
impl Debug for DbSettings
source§impl Default for DbSettings
impl Default for DbSettings
source§fn default() -> DbSettings
fn default() -> DbSettings
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DbSettings
impl<'de> Deserialize<'de> for DbSettings
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
Auto Trait Implementations§
impl Freeze for DbSettings
impl RefUnwindSafe for DbSettings
impl Send for DbSettings
impl Sync for DbSettings
impl Unpin for DbSettings
impl UnwindSafe for DbSettings
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)