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 Clone for Postgresql
impl Clone for Postgresql
Source§impl Debug for Postgresql
impl Debug for Postgresql
Source§impl Default for Postgresql
impl Default 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
impl Eq for Postgresql
Source§impl From<&Postgresql> for PostgresqlPartial
impl From<&Postgresql> for PostgresqlPartial
Source§fn from(value: &Postgresql) -> Self
fn from(value: &Postgresql) -> Self
Converts to this type from the input type.
Source§impl From<&PostgresqlProv> for Postgresql
impl From<&PostgresqlProv> for Postgresql
Source§fn from(prov: &PostgresqlProv) -> Self
fn from(prov: &PostgresqlProv) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Postgresql
impl PartialEq for Postgresql
Source§impl Serialize for Postgresql
impl Serialize 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more