pub struct SubmoduleContext<'a> {
    pub name: &'a str,
    pub path: &'a str,
    pub url: &'a str,
    pub branch: &'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: &'a str

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

§path: &'a str

The path of the submodule within the repository.

§url: &'a str

The clone URL for the submodule.

§branch: &'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.