use crate::errors::*;
use crate::secretfile::Secretfile;
#[async_trait::async_trait]
pub trait Backend: Send + Sync {
fn name(&self) -> &'static str;
async fn var(
&mut self,
secretfile: &Secretfile,
credential: &str,
) -> Result<String>;
async fn file(&mut self, secretfile: &Secretfile, path: &str) -> Result<String>;
}