Trait RemoteRepository

Source
pub trait RemoteRepository {
    // Required methods
    fn remote(&self, remote: &PublicKey) -> Result<Remote, Error>;
    fn remotes(&self) -> Result<Remotes<Verified>, Error>;
    fn remote_refs_at(&self) -> Result<Vec<RefsAt>, Error>;
}
Expand description

Access the remotes of a repository.

Required Methods§

Source

fn remote(&self, remote: &PublicKey) -> Result<Remote, Error>

Get the given remote.

Source

fn remotes(&self) -> Result<Remotes<Verified>, Error>

Get all remotes.

Source

fn remote_refs_at(&self) -> Result<Vec<RefsAt>, Error>

Get RefsAt of all remotes.

Implementors§