Struct rustsec::repository::git::Repository[][src]

pub struct Repository { /* fields omitted */ }

Git repository for a Rust advisory DB

Implementations

impl Repository[src]

pub fn default_path() -> PathBuf[src]

Location of the default advisory-db repository for crates.io

pub fn fetch_default_repo() -> Result<Self, Error>[src]

Fetch the default repository

pub fn fetch<P: Into<PathBuf>>(
    url: &str,
    into_path: P,
    ensure_fresh: bool
) -> Result<Self, Error>
[src]

Create a new [GitRepository] with the given URL and path

pub fn open<P: Into<PathBuf>>(into_path: P) -> Result<Self, Error>[src]

Open a repository at the given path

pub fn latest_commit(&self) -> Result<Commit, Error>[src]

Get information about the latest commit to the repo

pub fn path(&self) -> &Path[src]

Path to the local checkout of a git repository

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.