[][src]Trait radicle_surf::vcs::VCS

pub trait VCS<A, Error> where
    Self: Sized
{ type HistoryId; type ArtefactId; fn get_history(
        &self,
        identifier: Self::HistoryId
    ) -> Result<History<A>, Error>;
fn get_histories(&self) -> Result<Vec<History<A>>, Error>;
fn get_identifier(artifact: &A) -> Self::ArtefactId; }

Associated Types

type HistoryId

The way to identify a History.

type ArtefactId

The way to identify an artifact.

Loading content...

Required methods

fn get_history(&self, identifier: Self::HistoryId) -> Result<History<A>, Error>

Find a History in a Repo given a way to identify it

fn get_histories(&self) -> Result<Vec<History<A>>, Error>

Find all histories in a Repo

fn get_identifier(artifact: &A) -> Self::ArtefactId

Identify artifacts of a Repository

Loading content...

Implementors

impl VCS<Commit, Error> for Repository[src]

impl<Repo, A, Error> VCS<A, Error> for Browser<Repo, A, Error> where
    Repo: VCS<A, Error>, 
[src]

type HistoryId = Repo::HistoryId

type ArtefactId = Repo::ArtefactId

Loading content...