Added a requests trait.

This commit is contained in:
Jeff Baskin 2023-05-25 11:00:20 -04:00
parent 69acfefc0c
commit 9f368b0b95

View File

@ -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<Storage> {
Vec::new()
}
}
#[derive(Debug)]
enum ErrorCode {
// General