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