#[non_exhaustive]pub struct PostgresConfig<TyMeta> {
pub host: ConfigValue<String, TyMeta>,
pub port: ConfigValue<u16, TyMeta>,
pub name: ConfigValue<String, TyMeta>,
pub user: ConfigValue<String, TyMeta>,
pub password: ConfigValue<String, TyMeta>,
pub admin_user: ConfigValue<String, TyMeta>,
pub admin_password: ConfigValue<String, TyMeta>,
pub max_connections: ConfigValue<u32, TyMeta>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host: ConfigValue<String, TyMeta>§port: ConfigValue<u16, TyMeta>§name: ConfigValue<String, TyMeta>§user: ConfigValue<String, TyMeta>§password: ConfigValue<String, TyMeta>§admin_user: ConfigValue<String, TyMeta>§admin_password: ConfigValue<String, TyMeta>§max_connections: ConfigValue<u32, TyMeta>Trait Implementations§
Source§impl<TyMeta: Clone> Clone for PostgresConfig<TyMeta>
impl<TyMeta: Clone> Clone for PostgresConfig<TyMeta>
Source§fn clone(&self) -> PostgresConfig<TyMeta>
fn clone(&self) -> PostgresConfig<TyMeta>
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<TyMeta: Debug> Debug for PostgresConfig<TyMeta>
impl<TyMeta: Debug> Debug for PostgresConfig<TyMeta>
Source§impl<'de, TyMeta> Deserialize<'de> for PostgresConfig<TyMeta>where
TyMeta: Deserialize<'de>,
impl<'de, TyMeta> Deserialize<'de> for PostgresConfig<TyMeta>where
TyMeta: Deserialize<'de>,
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<TyMeta: Ord> Ord for PostgresConfig<TyMeta>
impl<TyMeta: Ord> Ord for PostgresConfig<TyMeta>
Source§fn cmp(&self, other: &PostgresConfig<TyMeta>) -> Ordering
fn cmp(&self, other: &PostgresConfig<TyMeta>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<TyMeta: PartialEq> PartialEq for PostgresConfig<TyMeta>
impl<TyMeta: PartialEq> PartialEq for PostgresConfig<TyMeta>
Source§impl<TyMeta: PartialOrd> PartialOrd for PostgresConfig<TyMeta>
impl<TyMeta: PartialOrd> PartialOrd for PostgresConfig<TyMeta>
Source§impl<TyMeta> Serialize for PostgresConfig<TyMeta>where
TyMeta: Serialize,
impl<TyMeta> Serialize for PostgresConfig<TyMeta>where
TyMeta: Serialize,
impl<TyMeta: Eq> Eq for PostgresConfig<TyMeta>
impl<TyMeta> StructuralPartialEq for PostgresConfig<TyMeta>
Auto Trait Implementations§
impl<TyMeta> Freeze for PostgresConfig<TyMeta>where
TyMeta: Freeze,
impl<TyMeta> RefUnwindSafe for PostgresConfig<TyMeta>where
TyMeta: RefUnwindSafe,
impl<TyMeta> Send for PostgresConfig<TyMeta>where
TyMeta: Send,
impl<TyMeta> Sync for PostgresConfig<TyMeta>where
TyMeta: Sync,
impl<TyMeta> Unpin for PostgresConfig<TyMeta>where
TyMeta: Unpin,
impl<TyMeta> UnsafeUnpin for PostgresConfig<TyMeta>where
TyMeta: UnsafeUnpin,
impl<TyMeta> UnwindSafe for PostgresConfig<TyMeta>where
TyMeta: UnwindSafe,
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> Comparable<K> for Q
impl<Q, K> Comparable<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.