pub struct ExternalPostgresBinding {
pub database: BindingValueString,
pub host: BindingValueString,
pub password: String,
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 as a concrete value, never an unresolved `SecretRef`: the platform\nmaterializes the Kubernetes secret into the pod env. The cloud variants carry a secret\nlocator instead.",
"type": "string"
},
"port": {
"$ref": "#/components/schemas/BindingValue_u16"
},
"sslMode": {
"$ref": "#/components/schemas/ExternalPostgresSslMode"
},
"username": {
"$ref": "#/components/schemas/BindingValue_String"
}
}
}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§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 Freeze 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