Skip to main content

FileOps

Trait FileOps 

Source
pub trait FileOps: Send + Sync {
    // Required methods
    fn upload(&self, body: &str) -> (u16, String);
    fn get_file(&self, id: &str) -> (u16, String);
}
Expand description

File storage operations used by the router.

Required Methods§

Source

fn upload(&self, body: &str) -> (u16, String)

Source

fn get_file(&self, id: &str) -> (u16, String)

Implementors§