pub struct RedisKvBinding {
pub connection_url: BindingValueString,
pub database: Option<BindingValueU8>,
pub key_prefix: Option<BindingValueString>,
}Expand description
Redis KV binding configuration
JSON schema
{
"description": "Redis KV binding configuration",
"type": "object",
"required": [
"connectionUrl"
],
"properties": {
"connectionUrl": {
"$ref": "#/components/schemas/BindingValue_String"
},
"database": {
"description": "Optional database number (0-15 for standard Redis)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/BindingValue_u8"
}
]
}
]
},
"keyPrefix": {
"description": "Optional key prefix for namespacing",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/BindingValue_String"
}
]
}
]
}
}
}Fields§
§connection_url: BindingValueString§database: Option<BindingValueU8>Optional database number (0-15 for standard Redis)
key_prefix: Option<BindingValueString>Optional key prefix for namespacing
Implementations§
Source§impl RedisKvBinding
impl RedisKvBinding
pub fn builder() -> RedisKvBinding
Trait Implementations§
Source§impl Clone for RedisKvBinding
impl Clone for RedisKvBinding
Source§impl Debug for RedisKvBinding
impl Debug for RedisKvBinding
Source§impl<'de> Deserialize<'de> for RedisKvBinding
impl<'de> Deserialize<'de> for RedisKvBinding
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<&RedisKvBinding> for RedisKvBinding
impl From<&RedisKvBinding> for RedisKvBinding
Source§fn from(value: &RedisKvBinding) -> Self
fn from(value: &RedisKvBinding) -> Self
Converts to this type from the input type.
Source§impl From<RedisKvBinding> for RedisKvBinding
impl From<RedisKvBinding> for RedisKvBinding
Source§fn from(value: RedisKvBinding) -> Self
fn from(value: RedisKvBinding) -> Self
Converts to this type from the input type.
Source§impl Serialize for RedisKvBinding
impl Serialize for RedisKvBinding
Source§impl TryFrom<RedisKvBinding> for RedisKvBinding
impl TryFrom<RedisKvBinding> for RedisKvBinding
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RedisKvBinding) -> Result<Self, ConversionError>
fn try_from(value: RedisKvBinding) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for RedisKvBinding
impl Freeze for RedisKvBinding
impl Move for RedisKvBinding
impl RefUnwindSafe for RedisKvBinding
impl Send for RedisKvBinding
impl Sync for RedisKvBinding
impl Unpin for RedisKvBinding
impl UnsafeUnpin for RedisKvBinding
impl UnwindSafe for RedisKvBinding
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