29 lines
512 B
Rust
29 lines
512 B
Rust
/*
|
|
use serde_json::Value;
|
|
|
|
use crate::Body;
|
|
|
|
#[derive(Debug, Default, Clone)]
|
|
pub struct Kv {
|
|
pub service: String,
|
|
}
|
|
|
|
impl Kv {
|
|
pub fn new(service: &str) -> Self {
|
|
Kv {
|
|
service: service.to_string(),
|
|
}
|
|
}
|
|
pub fn read(&self, key: &str) -> Body {
|
|
todo!()
|
|
}
|
|
|
|
pub fn write(&self, key: &str, val: Value, create: bool) -> Body {
|
|
todo!()
|
|
}
|
|
|
|
pub fn cas(&self, key: &str, from: Value, to: Value, create: bool) -> Body {
|
|
todo!()
|
|
}
|
|
}
|
|
*/
|