pub struct SubmoduleContext<'a> {
pub name: &'a str,
pub path: &'a str,
pub url: &'a str,
pub branch: &'a str,
pub context: GitContext,
}
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.
The name of the submodule (usually the same as path
).
The path of the submodule within the repository.
The clone URL for the submodule.
The branch the submodule tracks.
The context to use to query the submodule.
Create submodule context for the given path.
Returns None
if the requisite information is not available within the context being used.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more