pub enum PostgresBinding {
Variant0 {
cluster_endpoint: BindingValueString,
database: BindingValueString,
password_secret_arn: BindingValueString,
port: BindingValueU16,
service: PostgresBindingVariant0Service,
username: BindingValueString,
},
Variant1 {
cluster_endpoint: BindingValueString,
database: BindingValueString,
password_secret_arn: BindingValueString,
port: BindingValueU16,
service: PostgresBindingVariant1Service,
username: BindingValueString,
},
Variant2 {
database: BindingValueString,
host: BindingValueString,
password_secret_name: BindingValueString,
port: BindingValueU16,
server_ca_certificates: BindingValueVecString,
service: PostgresBindingVariant2Service,
username: BindingValueString,
},
Variant3 {
database: BindingValueString,
host: BindingValueString,
password_secret_uri: BindingValueString,
port: BindingValueU16,
service: PostgresBindingVariant3Service,
username: BindingValueString,
},
Variant4 {
database: BindingValueString,
host: BindingValueString,
password: String,
port: BindingValueU16,
service: PostgresBindingVariant4Service,
ssl_mode: Option<ExternalPostgresSslMode>,
username: BindingValueString,
},
Variant5 {
database: BindingValueString,
host: BindingValueString,
password: String,
port: BindingValueU16,
service: PostgresBindingVariant5Service,
username: BindingValueString,
},
}Expand description
Connection details for a Postgres database, one variant per backend.
JSON schema
{
"description": "Connection details for a Postgres database, one variant per backend.",
"oneOf": [
{
"description": "AWS Aurora Serverless v2 (cluster endpoint + secret ARN).",
"allOf": [
{
"$ref": "#/components/schemas/AuroraPostgresBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"aurora"
]
}
}
}
]
},
{
"description": "Aurora-managed JSON credentials. Separate tag makes older readers reject\nthis binding rather than treating the JSON document as a raw password.",
"allOf": [
{
"$ref": "#/components/schemas/AuroraPostgresBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"aurora-managed"
]
}
}
}
]
},
{
"description": "GCP Cloud SQL (host + secret name).",
"allOf": [
{
"$ref": "#/components/schemas/CloudSqlPostgresBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"cloud-sql"
]
}
}
}
]
},
{
"description": "Azure Database for PostgreSQL — Flexible Server (host + secret URI).",
"allOf": [
{
"$ref": "#/components/schemas/FlexibleServerPostgresBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"flexible-server"
]
}
}
}
]
},
{
"description": "Operator-provided / BYO database (Kubernetes, on-prem, or cloud override).",
"allOf": [
{
"$ref": "#/components/schemas/ExternalPostgresBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"external"
]
}
}
}
]
},
{
"description": "Local embedded Postgres process.",
"allOf": [
{
"$ref": "#/components/schemas/LocalPostgresBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"local-postgres"
]
}
}
}
]
}
]
}Variants§
Variant0
Fields
§
cluster_endpoint: BindingValueString§
database: BindingValueString§
password_secret_arn: BindingValueString§
port: BindingValueU16§
service: PostgresBindingVariant0Service§
username: BindingValueStringVariant1
Fields
§
cluster_endpoint: BindingValueString§
database: BindingValueString§
password_secret_arn: BindingValueString§
port: BindingValueU16§
service: PostgresBindingVariant1Service§
username: BindingValueStringVariant2
Fields
§
database: BindingValueString§
host: BindingValueString§
password_secret_name: BindingValueString§
port: BindingValueU16§
server_ca_certificates: BindingValueVecString§
service: PostgresBindingVariant2Service§
username: BindingValueStringVariant3
Fields
§
database: BindingValueString§
host: BindingValueString§
password_secret_uri: BindingValueString§
port: BindingValueU16§
service: PostgresBindingVariant3Service§
username: BindingValueStringVariant4
Fields
§
database: BindingValueString§
host: BindingValueString§
password: StringConnection password as a concrete value, never an unresolved SecretRef: the platform
materializes the Kubernetes secret into the pod env. The cloud variants carry a secret
locator instead.
§
port: BindingValueU16§
service: PostgresBindingVariant4Service§
ssl_mode: Option<ExternalPostgresSslMode>§
username: BindingValueStringVariant5
Fields
§
database: BindingValueString§
host: BindingValueString§
port: BindingValueU16§
service: PostgresBindingVariant5Service§
username: BindingValueStringTrait Implementations§
Source§impl Clone for PostgresBinding
impl Clone for PostgresBinding
Source§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
Source§impl From<&PostgresBinding> for PostgresBinding
impl From<&PostgresBinding> for PostgresBinding
Source§fn from(value: &PostgresBinding) -> Self
fn from(value: &PostgresBinding) -> Self
Converts to this type from the input type.
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