use bon::Builder;
#[derive(Builder, Clone, Copy, Debug, Eq, PartialEq)]
pub struct Describe {
#[builder(default = false)]
tags: bool,
#[builder(default = false)]
dirty: bool,
match_pattern: Option<&'static str>,
}
impl Describe {
#[must_use]
pub fn tags(&self) -> bool {
self.tags
}
#[must_use]
pub fn dirty(&self) -> bool {
self.dirty
}
#[must_use]
pub fn match_pattern(&self) -> &Option<&'static str> {
&self.match_pattern
}
}
#[derive(Builder, Clone, Copy, Debug, Eq, PartialEq)]
pub struct Sha {
#[builder(default = false)]
short: bool,
}
impl Sha {
#[must_use]
pub fn short(&self) -> bool {
self.short
}
}
#[derive(Builder, Clone, Copy, Debug, Eq, PartialEq)]
pub struct Dirty {
#[builder(default = false)]
include_untracked: bool,
}
impl Dirty {
#[must_use]
pub fn include_untracked(&self) -> bool {
self.include_untracked
}
}