pub struct ExternalPostgresBinding {
pub database: BindingValueString,
pub host: BindingValueString,
pub password: ExternalPostgresBindingPassword,
pub port: BindingValueU16,
pub ssl_mode: Option<ExternalPostgresSslMode>,
pub username: BindingValueString,
}Expand description
Operator-provided / BYO database binding.
JSON schema
{
"description": "Operator-provided / BYO database binding.",
"type": "object",
"required": [
"database",
"host",
"password",
"port",
"username"
],
"properties": {
"database": {
"$ref": "#/components/schemas/BindingValue_String"
},
"host": {
"$ref": "#/components/schemas/BindingValue_String"
},
"password": {
"description": "Connection password or Kubernetes Secret reference. Kubernetes workloads resolve\nthe reference through secretKeyRef before the application loads its binding.",
"oneOf": [
{
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/components/schemas/ExternalPasswordSecretRef"
},
{
"$ref": "#/components/schemas/ExternalPasswordSecretKeyRef"
}
]
}
]
},
"port": {
"$ref": "#/components/schemas/BindingValue_u16"
},
"sslMode": {
"$ref": "#/components/schemas/ExternalPostgresSslMode"
},
"username": {
"$ref": "#/components/schemas/BindingValue_String"
}
}
}Fields§
§database: BindingValueString§host: BindingValueString§password: ExternalPostgresBindingPasswordConnection password or Kubernetes Secret reference. Kubernetes workloads resolve the reference through secretKeyRef before the application loads its binding.
port: BindingValueU16§ssl_mode: Option<ExternalPostgresSslMode>§username: BindingValueStringImplementations§
Source§impl ExternalPostgresBinding
impl ExternalPostgresBinding
pub fn builder() -> ExternalPostgresBinding
Trait Implementations§
Source§impl Clone for ExternalPostgresBinding
impl Clone for ExternalPostgresBinding
Source§impl Debug for ExternalPostgresBinding
impl Debug for ExternalPostgresBinding
Source§impl<'de> Deserialize<'de> for ExternalPostgresBinding
impl<'de> Deserialize<'de> for ExternalPostgresBinding
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<&ExternalPostgresBinding> for ExternalPostgresBinding
impl From<&ExternalPostgresBinding> for ExternalPostgresBinding
Source§fn from(value: &ExternalPostgresBinding) -> Self
fn from(value: &ExternalPostgresBinding) -> Self
Converts to this type from the input type.
Source§impl From<ExternalPostgresBinding> for ExternalPostgresBinding
impl From<ExternalPostgresBinding> for ExternalPostgresBinding
Source§fn from(value: ExternalPostgresBinding) -> Self
fn from(value: ExternalPostgresBinding) -> Self
Converts to this type from the input type.
Source§impl Serialize for ExternalPostgresBinding
impl Serialize for ExternalPostgresBinding
Source§impl TryFrom<ExternalPostgresBinding> for ExternalPostgresBinding
impl TryFrom<ExternalPostgresBinding> for ExternalPostgresBinding
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ExternalPostgresBinding) -> Result<Self, ConversionError>
fn try_from(value: ExternalPostgresBinding) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ExternalPostgresBinding
impl Freeze for ExternalPostgresBinding
impl Move for ExternalPostgresBinding
impl RefUnwindSafe for ExternalPostgresBinding
impl Send for ExternalPostgresBinding
impl Sync for ExternalPostgresBinding
impl Unpin for ExternalPostgresBinding
impl UnsafeUnpin for ExternalPostgresBinding
impl UnwindSafe for ExternalPostgresBinding
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