Added a requests trait.
This commit is contained in:
		@@ -7,6 +7,16 @@ use std::{collections::HashMap, error::Error, fmt};
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const ENTRY: &str = "EntryPoint";
 | 
					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)]
 | 
					#[derive(Debug)]
 | 
				
			||||||
enum ErrorCode {
 | 
					enum ErrorCode {
 | 
				
			||||||
    // General
 | 
					    // General
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user