pub struct ListRefsOptions {
pub prefixes: Vec<String>,
pub heads: bool,
pub tags: bool,
pub symrefs: bool,
pub peel: bool,
pub protocol_version: Option<u8>,
pub sort: RefSort,
pub limit: Option<usize>,
pub versionsort_suffixes: Vec<String>,
}Expand description
Options controlling Remote::list_refs output, aligned with git ls-remote.
Fields§
§prefixes: Vec<String>If non-empty, only refs matching one of these patterns (same rules as git ls-remote).
heads: boolRestrict to refs/heads/ entries.
Restrict to refs/tags/ entries.
symrefs: boolInclude symbolic-ref targets on HEAD (and all symrefs on v2 when supported).
peel: boolAppend peeled ^{} lines for annotated tags.
protocol_version: Option<u8>Requested wire protocol version for remote listing (None → prefer v2).
sort: RefSortSort key and direction (after filtering; matches git ls-remote --sort).
limit: Option<usize>Maximum number of lines to return after sorting (None = unlimited).
versionsort_suffixes: Vec<String>versionsort.suffix values for SortKey::Version (Git multi-valued config).
Trait Implementations§
Source§impl Clone for ListRefsOptions
impl Clone for ListRefsOptions
Source§impl Debug for ListRefsOptions
impl Debug for ListRefsOptions
Auto Trait Implementations§
impl Freeze for ListRefsOptions
impl RefUnwindSafe for ListRefsOptions
impl Send for ListRefsOptions
impl Sync for ListRefsOptions
impl Unpin for ListRefsOptions
impl UnsafeUnpin for ListRefsOptions
impl UnwindSafe for ListRefsOptions
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