pub struct KeyValueStore {Show 13 fields
pub enabled: bool,
pub kind: KeyValueKind,
pub host: String,
pub port: u16,
pub secure: bool,
pub db_number: u8,
pub db_name: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub pool_size: u8,
pub default_limit: u32,
pub default_offset: u32,
pub prefix: Option<String>,
}
Fields§
§enabled: bool
§kind: KeyValueKind
§host: String
§port: u16
§secure: bool
§db_number: u8
§db_name: Option<String>
§username: Option<String>
§password: Option<String>
§pool_size: u8
§default_limit: u32
§default_offset: u32
§prefix: Option<String>
Trait Implementations§
Source§impl Clone for KeyValueStore
impl Clone for KeyValueStore
Source§fn clone(&self) -> KeyValueStore
fn clone(&self) -> KeyValueStore
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 KeyValueStore
impl Debug for KeyValueStore
Source§impl Default for KeyValueStore
impl Default for KeyValueStore
Source§fn default() -> KeyValueStore
fn default() -> KeyValueStore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyValueStore
impl<'de> Deserialize<'de> for KeyValueStore
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 KeyValueStore
impl RefUnwindSafe for KeyValueStore
impl Send for KeyValueStore
impl Sync for KeyValueStore
impl Unpin for KeyValueStore
impl UnwindSafe for KeyValueStore
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