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.
Holds a parsed refspec, 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§impl Debug for RefspecItem
impl Debug for RefspecItem
Source§impl Default for RefspecItem
impl Default for RefspecItem
impl Eq for RefspecItem
Source§impl PartialEq for RefspecItem
impl PartialEq for RefspecItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.