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

pub trait VCS<'repo, A: 'repo, Error> where
    Self: 'repo + Sized
{ type HistoryId; type ArtefactId; fn get_history(
        &'repo self,
        identifier: Self::HistoryId
    ) -> Result<History<A>, Error>;
fn get_histories(&'repo self) -> Result<Vec<History<A>>, Error>;
fn get_identifier(artifact: &'repo 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(
    &'repo self,
    identifier: Self::HistoryId
) -> Result<History<A>, Error>

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

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

Find all histories in a Repo

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

Identify artifacts of a Repository

Loading content...

Implementors

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

type HistoryId = Repo::HistoryId

type ArtefactId = Repo::ArtefactId

impl<'repo> VCS<'repo, Commit<'repo>, GitError> for GitRepository[src]

type HistoryId = GitObject

type ArtefactId = Oid

Loading content...