pub struct ExternalRedisBinding {
pub host: BindingValueString,
pub password: ExternalRedisBindingPassword,
pub port: BindingValueU16,
pub tls: Option<bool>,
pub username: BindingValueString,
}Expand description
Operator-provided server binding.
JSON schema
{
"description": "Operator-provided server binding.",
"type": "object",
"required": [
"host",
"password",
"port",
"username"
],
"properties": {
"host": {
"$ref": "#/components/schemas/BindingValue_String"
},
"password": {
"description": "Password literal or a `secretKeyRef` to a Kubernetes Secret. Kubernetes workloads get the\npassword from the Secret as an environment variable, which the SDK inserts after it\nparses the binding, so any character is safe.",
"oneOf": [
{
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/components/schemas/ExternalPasswordSecretKeyRef"
}
]
}
]
},
"port": {
"$ref": "#/components/schemas/BindingValue_u16"
},
"tls": {
"description": "Connect over TLS. Defaults to true.",
"type": "boolean"
},
"username": {
"$ref": "#/components/schemas/BindingValue_String"
}
}
}Fields§
§host: BindingValueString§password: ExternalRedisBindingPasswordPassword literal or a secretKeyRef to a Kubernetes Secret. Kubernetes workloads get the
password from the Secret as an environment variable, which the SDK inserts after it
parses the binding, so any character is safe.
port: BindingValueU16§tls: Option<bool>Connect over TLS. Defaults to true.
username: BindingValueStringImplementations§
Source§impl ExternalRedisBinding
impl ExternalRedisBinding
pub fn builder() -> ExternalRedisBinding
Trait Implementations§
Source§impl Clone for ExternalRedisBinding
impl Clone for ExternalRedisBinding
Source§impl Debug for ExternalRedisBinding
impl Debug for ExternalRedisBinding
Source§impl<'de> Deserialize<'de> for ExternalRedisBinding
impl<'de> Deserialize<'de> for ExternalRedisBinding
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<&ExternalRedisBinding> for ExternalRedisBinding
impl From<&ExternalRedisBinding> for ExternalRedisBinding
Source§fn from(value: &ExternalRedisBinding) -> Self
fn from(value: &ExternalRedisBinding) -> Self
Converts to this type from the input type.
Source§impl From<ExternalRedisBinding> for ExternalRedisBinding
impl From<ExternalRedisBinding> for ExternalRedisBinding
Source§fn from(value: ExternalRedisBinding) -> Self
fn from(value: ExternalRedisBinding) -> Self
Converts to this type from the input type.
Source§impl Serialize for ExternalRedisBinding
impl Serialize for ExternalRedisBinding
Source§impl TryFrom<ExternalRedisBinding> for ExternalRedisBinding
impl TryFrom<ExternalRedisBinding> for ExternalRedisBinding
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ExternalRedisBinding) -> Result<Self, ConversionError>
fn try_from(value: ExternalRedisBinding) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ExternalRedisBinding
impl Freeze for ExternalRedisBinding
impl RefUnwindSafe for ExternalRedisBinding
impl Send for ExternalRedisBinding
impl Sync for ExternalRedisBinding
impl Unpin for ExternalRedisBinding
impl UnsafeUnpin for ExternalRedisBinding
impl UnwindSafe for ExternalRedisBinding
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