RepoFactory

Trait RepoFactory 

Source
pub trait RepoFactory {
    type Repo: Repo;
    type Crypto;

    // Required method
    fn build_repo(&self, crypto: Self::Crypto) -> Self::Repo;
}
Expand description

A type used to produce Repos

Required Associated Types§

Source

type Repo: Repo

The Reop type to be produced

Source

type Crypto

Cryptography used to sign requests

Required Methods§

Source

fn build_repo(&self, crypto: Self::Crypto) -> Self::Repo

Produce the Repo

Implementors§