From 9f368b0b9554580cb108bdca80ac03983cee84de Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Thu, 25 May 2023 11:00:20 -0400 Subject: [PATCH] Added a requests trait. --- src/morethantext/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/morethantext/mod.rs b/src/morethantext/mod.rs index c4b35a8..f10c14b 100644 --- a/src/morethantext/mod.rs +++ b/src/morethantext/mod.rs @@ -7,6 +7,16 @@ use std::{collections::HashMap, error::Error, fmt}; const ENTRY: &str = "EntryPoint"; +trait Requests { + fn add(kind: &str, key: &str, value: Storage) -> Result<(), MTTError> { + Err(MTTError::new("not supported")) + } + + fn get() -> Vec { + Vec::new() + } +} + #[derive(Debug)] enum ErrorCode { // General