Added a requests trait.
This commit is contained in:
parent
69acfefc0c
commit
9f368b0b95
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user