From c2428435f72d3450384ddc8e6392fdfb61310ab7 Mon Sep 17 00:00:00 2001 From: Ashley Michal Lewis Date: Wed, 16 Sep 2020 10:17:20 -0500 Subject: [PATCH] WIP - support metadata (depth 1) --- cloudflare/src/endpoints/workerskv/write_bulk.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloudflare/src/endpoints/workerskv/write_bulk.rs b/cloudflare/src/endpoints/workerskv/write_bulk.rs index 5812a82e..77e4b4c5 100644 --- a/cloudflare/src/endpoints/workerskv/write_bulk.rs +++ b/cloudflare/src/endpoints/workerskv/write_bulk.rs @@ -1,3 +1,5 @@ +use std::collections::HashMap; + use crate::framework::endpoint::{Endpoint, Method}; /// Write Key-Value Pairs in Bulk @@ -34,4 +36,6 @@ pub struct KeyValuePair { pub expiration: Option, pub expiration_ttl: Option, pub base64: Option, + // a temporary hack for basic metadata + pub metadata: Option>, }