Type Alias Renames

Source
pub type Renames = Any<Renames>;
Available on crate feature blob-diff only.
Expand description

The diff.renames key.

Aliased Type§

pub struct Renames {
    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 Renames

Source

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

Create a new instance.

Source

pub fn try_into_renames( &'static self, value: Result<bool, Error>, ) -> Result<Tracking, GenericError>

Try to convert the configuration into a valid rename tracking variant. Use value and if it’s an error, interpret the boolean as string