Type Alias gix::config::tree::remote::TagOpt

source ·
pub type TagOpt = Any<TagOpt>;
Expand description

The remote.<name>.tagOpt key type.

Aliased Type§

struct TagOpt {
    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 TagOpt

source

pub fn try_into_tag_opt( &'static self, value: Cow<'_, BStr>, ) -> Result<Tags, GenericErrorWithValue>

Try to interpret value as tag option.

§Note

It’s heavily biased towards the git command-line unfortunately, and the only value of its kind. Maybe in future more values will be supported which are less about passing them to a sub-process.