pub struct NameRevOptions {
pub tags_only: bool,
pub shorten_tags: bool,
pub ref_filters: Vec<String>,
pub exclude_filters: Vec<String>,
}Expand description
Options that control which refs participate in naming.
Fields§
When true, only refs/tags/ refs are used.
When true, tag ref names are shortened to bare names (strips tags/).
In Git this is enabled by --tags --name-only together. Pass this as
tags_only && name_only from the CLI layer.
ref_filters: Vec<String>Glob patterns — only refs whose path (or any sub-path) matches at least one pattern are used. Empty means “all refs pass”.
exclude_filters: Vec<String>Glob patterns — refs whose path (or any sub-path) matches are excluded.
Trait Implementations§
Source§impl Clone for NameRevOptions
impl Clone for NameRevOptions
Source§fn clone(&self) -> NameRevOptions
fn clone(&self) -> NameRevOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NameRevOptions
impl Debug for NameRevOptions
Source§impl Default for NameRevOptions
impl Default for NameRevOptions
Source§fn default() -> NameRevOptions
fn default() -> NameRevOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NameRevOptions
impl RefUnwindSafe for NameRevOptions
impl Send for NameRevOptions
impl Sync for NameRevOptions
impl Unpin for NameRevOptions
impl UnsafeUnpin for NameRevOptions
impl UnwindSafe for NameRevOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more