Struct mrh::Output

source · []
pub struct Output {
    pub path: PathBuf,
    pub pending: Option<Set<&'static str>>,
    pub error: Option<Error>,
}
Expand description

Represents Crawler output

There are 3 possible scenarios:

  • There are no pending states, so only path (to the repo) has a value
  • There are no pending states, and there is some error preventing the repo from being inspected properly… error will have Some value
  • There are pending states… pending will have Some value

Fields

path: PathBuf

Repository path

pending: Option<Set<&'static str>>

A list of pending actions

error: Option<Error>

Git-related error

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.