Struct rstdev_storage::sql::options::DefaultDBOptions
source · pub struct DefaultDBOptions {
pub host: Option<String>,
pub username: String,
pub password: String,
pub db: String,
pub port: Option<u16>,
}Expand description
DefaultDBOptions used as main and primary database options
This object struct also provide associated method to DefaultDBOptions::validate current
given option fields
Fields§
§host: Option<String>§username: String§password: String§db: String§port: Option<u16>Implementations§
source§impl DefaultDBOptions
impl DefaultDBOptions
pub fn validate(&self) -> Result<(), StorageError>
Trait Implementations§
source§impl Clone for DefaultDBOptions
impl Clone for DefaultDBOptions
source§fn clone(&self) -> DefaultDBOptions
fn clone(&self) -> DefaultDBOptions
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 moreAuto Trait Implementations§
impl RefUnwindSafe for DefaultDBOptions
impl Send for DefaultDBOptions
impl Sync for DefaultDBOptions
impl Unpin for DefaultDBOptions
impl UnwindSafe for DefaultDBOptions
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