pub enum PostgresBinding {
Aurora(AuroraPostgresBinding),
CloudSql(CloudSqlPostgresBinding),
FlexibleServer(FlexibleServerPostgresBinding),
External(ExternalPostgresBinding),
Local(LocalPostgresBinding),
}Expand description
Connection details for a Postgres database, one variant per backend.
Variants§
Aurora(AuroraPostgresBinding)
AWS Aurora Serverless v2 (cluster endpoint + secret ARN).
CloudSql(CloudSqlPostgresBinding)
GCP Cloud SQL (host + secret name).
FlexibleServer(FlexibleServerPostgresBinding)
Azure Database for PostgreSQL — Flexible Server (host + secret URI).
External(ExternalPostgresBinding)
Operator-provided / BYO database (Kubernetes, on-prem, or cloud override).
Local(LocalPostgresBinding)
Local embedded Postgres process.
Implementations§
Source§impl PostgresBinding
impl PostgresBinding
Sourcepub fn local(
host: impl Into<BindingValue<String>>,
port: u16,
database: impl Into<BindingValue<String>>,
username: impl Into<BindingValue<String>>,
password: impl Into<String>,
) -> Self
pub fn local( host: impl Into<BindingValue<String>>, port: u16, database: impl Into<BindingValue<String>>, username: impl Into<BindingValue<String>>, password: impl Into<String>, ) -> Self
Creates a Local Postgres binding.
Sourcepub fn external(
host: impl Into<BindingValue<String>>,
port: u16,
database: impl Into<BindingValue<String>>,
username: impl Into<BindingValue<String>>,
password: impl Into<String>,
) -> Self
pub fn external( host: impl Into<BindingValue<String>>, port: u16, database: impl Into<BindingValue<String>>, username: impl Into<BindingValue<String>>, password: impl Into<String>, ) -> Self
Creates an External (BYO / Kubernetes) Postgres binding.
Trait Implementations§
Source§impl Clone for PostgresBinding
impl Clone for PostgresBinding
Source§fn clone(&self) -> PostgresBinding
fn clone(&self) -> PostgresBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PostgresBinding
impl Debug for PostgresBinding
Source§impl<'de> Deserialize<'de> for PostgresBinding
impl<'de> Deserialize<'de> for PostgresBinding
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 PostgresBinding
Source§impl PartialEq for PostgresBinding
impl PartialEq for PostgresBinding
Source§fn eq(&self, other: &PostgresBinding) -> bool
fn eq(&self, other: &PostgresBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PostgresBinding
impl Serialize for PostgresBinding
impl StructuralPartialEq for PostgresBinding
Auto Trait Implementations§
impl Freeze for PostgresBinding
impl RefUnwindSafe for PostgresBinding
impl Send for PostgresBinding
impl Sync for PostgresBinding
impl Unpin for PostgresBinding
impl UnsafeUnpin for PostgresBinding
impl UnwindSafe for PostgresBinding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.