pub enum RedisBinding {
Variant0 {
host: BindingValueString,
password_secret_arn: BindingValueString,
port: BindingValueU16,
service: RedisBindingVariant0Service,
username: BindingValueString,
},
Variant1 {
host: BindingValueString,
instance_name: BindingValueString,
port: BindingValueU16,
server_ca_certificates: BindingValueVecString,
service: RedisBindingVariant1Service,
username: BindingValueString,
},
Variant2 {
database_resource_id: BindingValueString,
host: BindingValueString,
port: BindingValueU16,
service: RedisBindingVariant2Service,
username: BindingValueString,
},
Variant3 {
host: BindingValueString,
password: RedisBindingVariant3Password,
port: BindingValueU16,
service: RedisBindingVariant3Service,
tls: Option<bool>,
username: BindingValueString,
},
Variant4 {
host: BindingValueString,
password: String,
port: BindingValueU16,
service: RedisBindingVariant4Service,
username: BindingValueString,
},
}Expand description
Connection details for a Redis-compatible server, one variant per backend.
Service tags are unique across all binding enums (serde dispatches on
service alone), so the key-value store’s redis tag is not reused.
JSON schema
{
"description": "Connection details for a Redis-compatible server, one variant per backend.\n\nService tags are unique across all binding enums (serde dispatches on\n`service` alone), so the key-value store's `redis` tag is not reused.",
"oneOf": [
{
"description": "AWS ElastiCache for Valkey (primary endpoint + AUTH token secret ARN).",
"allOf": [
{
"$ref": "#/components/schemas/ElastiCacheRedisBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"elasticache"
]
}
}
}
]
},
{
"description": "GCP Memorystore for Valkey (PSC address + CA + secret name).",
"allOf": [
{
"$ref": "#/components/schemas/MemorystoreRedisBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"memorystore"
]
}
}
}
]
},
{
"description": "Azure Managed Redis (private endpoint host + database resource ID).",
"allOf": [
{
"$ref": "#/components/schemas/AzureManagedRedisBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"azure-managed-redis"
]
}
}
}
]
},
{
"description": "Operator-provided server (Kubernetes, on-prem, or cloud override).",
"allOf": [
{
"$ref": "#/components/schemas/ExternalRedisBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"external"
]
}
}
}
]
},
{
"description": "Local Valkey container.",
"allOf": [
{
"$ref": "#/components/schemas/LocalRedisBinding"
},
{
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"enum": [
"local-redis"
]
}
}
}
]
}
]
}Variants§
Variant0
Fields
§
host: BindingValueString§
password_secret_arn: BindingValueString§
port: BindingValueU16§
service: RedisBindingVariant0Service§
username: BindingValueStringVariant1
Fields
§
host: BindingValueString§
instance_name: BindingValueString§
port: BindingValueU16§
server_ca_certificates: BindingValueVecString§
service: RedisBindingVariant1Service§
username: BindingValueStringVariant2
Fields
§
database_resource_id: BindingValueString§
host: BindingValueString§
port: BindingValueU16§
service: RedisBindingVariant2Service§
username: BindingValueStringVariant3
Fields
§
host: BindingValueString§
password: RedisBindingVariant3PasswordPassword 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§
service: RedisBindingVariant3Service§
username: BindingValueStringVariant4
Fields
§
host: BindingValueString§
port: BindingValueU16§
service: RedisBindingVariant4Service§
username: BindingValueStringTrait Implementations§
Source§impl Clone for RedisBinding
impl Clone for RedisBinding
Source§impl Debug for RedisBinding
impl Debug for RedisBinding
Source§impl<'de> Deserialize<'de> for RedisBinding
impl<'de> Deserialize<'de> for RedisBinding
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<&RedisBinding> for RedisBinding
impl From<&RedisBinding> for RedisBinding
Source§fn from(value: &RedisBinding) -> Self
fn from(value: &RedisBinding) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for RedisBinding
impl Freeze for RedisBinding
impl Move for RedisBinding
impl RefUnwindSafe for RedisBinding
impl Send for RedisBinding
impl Sync for RedisBinding
impl Unpin for RedisBinding
impl UnsafeUnpin for RedisBinding
impl UnwindSafe for RedisBinding
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