[go: up one dir, main page]

Type Alias Executable

Source
pub type Executable = Any<Executable>;
Expand description

A key that represents an executable program as identified by name or path.

Once obtained with trusted_program() one can run it with command::prepare(), possibly after obtaining and setting a git command context (depending on the commands needs).

Aliased Type§

pub struct Executable {
    pub name: &'static str,
    pub section: &'static dyn Section,
    pub subsection_requirement: Option<SubSectionRequirement>,
    pub link: Option<Link>,
    pub note: Option<Note>,
    /* private fields */
}

Fields§

§name: &'static str

The key of the value in the git configuration.

§section: &'static dyn Section

The parent section of the key.

§subsection_requirement: Option<SubSectionRequirement>

The subsection requirement to use.

§link: Option<Link>

A link to other resources that might be eligible as value.

§note: Option<Note>

A note about this key.

Implementations§

Source§

impl Executable

Source

pub const fn new_executable( name: &'static str, section: &'static dyn Section, ) -> Self

Create a new instance.