pub struct RefspecItem {
pub force: bool,
pub negative: bool,
pub matching: bool,
pub pattern: bool,
pub exact_sha1: bool,
pub src: Option<String>,
pub dst: Option<String>,
}Expand description
A parsed refspec item.
Fields mirror struct refspec_item in git/refspec.h, capturing the
modifier flags and the source/destination sides of the mapping.
Fields§
§force: boolThe + modifier was present (force / non-fast-forward update).
negative: boolThe ^ modifier was present (negative refspec — exclusion).
matching: boolThis refspec is the bare : (or +:) push refspec for matching refs.
pattern: boolThe refspec uses a * glob pattern.
exact_sha1: boolThe source side is an exact (full-length hex) object id.
src: Option<String>The source side (<src>), or None when absent.
dst: Option<String>The destination side (<dst>), or None when no : was present.
Trait Implementations§
Source§impl Clone for RefspecItem
impl Clone for RefspecItem
Source§fn clone(&self) -> RefspecItem
fn clone(&self) -> RefspecItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RefspecItem
impl Debug for RefspecItem
Source§impl Default for RefspecItem
impl Default for RefspecItem
Source§fn default() -> RefspecItem
fn default() -> RefspecItem
Returns the “default value” for a type. Read more
impl Eq for RefspecItem
Source§impl PartialEq for RefspecItem
impl PartialEq for RefspecItem
Source§fn eq(&self, other: &RefspecItem) -> bool
fn eq(&self, other: &RefspecItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefspecItem
Auto Trait Implementations§
impl Freeze for RefspecItem
impl RefUnwindSafe for RefspecItem
impl Send for RefspecItem
impl Sync for RefspecItem
impl Unpin for RefspecItem
impl UnsafeUnpin for RefspecItem
impl UnwindSafe for RefspecItem
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