pub struct SubmoduleContext<'a> {
    pub name: Cow<'a, str>,
    pub path: Cow<'a, str>,
    pub url: Cow<'a, str>,
    pub branch: Cow<'a, str>,
    pub context: GitContext,
}
Expand description

A git context for a submodule for use within checks.

Checks which need to inspect submodules should use this to obtain a GitContext for the submodule.

Fields

name: Cow<'a, str>

The name of the submodule (usually the same as path).

path: Cow<'a, str>

The path of the submodule within the repository.

url: Cow<'a, str>

The clone URL for the submodule.

branch: Cow<'a, str>

The branch the submodule tracks.

context: GitContext

The context to use to query the submodule.

Implementations

Create submodule context for the given path.

Returns None if the requisite information is not available within the context being used.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.