pub struct Postgresql {
pub enabled: bool,
pub address: String,
pub port: u16,
pub db: String,
pub user: String,
pub pwd: String,
}Fields§
§enabled: boolUse PostgreSQL instead of SQLite
address: StringPostgreSQL server address
port: u16PostgreSQL port
db: StringDatabase name
user: StringDatabase user
pwd: StringDatabase password
Trait Implementations§
Source§impl ClapSerde for Postgresql
impl ClapSerde for Postgresql
Source§impl Clone for Postgresql
impl Clone for Postgresql
Source§fn clone(&self) -> Postgresql
fn clone(&self) -> Postgresql
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 Postgresql
impl Debug for Postgresql
Source§impl<'de> Deserialize<'de> for Postgresqlwhere
Postgresql: Default,
impl<'de> Deserialize<'de> for Postgresqlwhere
Postgresql: Default,
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
Source§impl From<&mut <Postgresql as ClapSerde>::Opt> for Postgresql
impl From<&mut <Postgresql as ClapSerde>::Opt> for Postgresql
Source§impl From<<Postgresql as ClapSerde>::Opt> for Postgresql
impl From<<Postgresql as ClapSerde>::Opt> for Postgresql
Source§impl PartialEq for Postgresql
impl PartialEq for Postgresql
Source§impl Serialize for Postgresql
impl Serialize for Postgresql
impl Eq for Postgresql
impl StructuralPartialEq for Postgresql
Auto Trait Implementations§
impl Freeze for Postgresql
impl RefUnwindSafe for Postgresql
impl Send for Postgresql
impl Sync for Postgresql
impl Unpin for Postgresql
impl UnsafeUnpin for Postgresql
impl UnwindSafe for Postgresql
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.