1 2 3 4 5 6 7 8 9 10
pub type ProjktResult<T> = Result<T, Box<dyn std::error::Error>>; pub trait Plugin { type Opts; type Fetch; fn fetch(opts: &Self::Opts) -> ProjktResult<Self::Fetch>; fn exec(opts: Self::Opts) -> ProjktResult<()>; }