pub struct RefEdit {
pub name: String,
pub old: Option<Option<String>>,
pub new: Option<String>,
pub peeled: Option<String>,
pub symref: Option<String>,
}Expand description
One reference edit as the log records it: name, the value expected before
(None = must not exist, Some("") = no claim), the value after
(None = delete). Oids are hex; a symbolic target is ref:<name>.
Fields§
§name: StringFull ref name, or HEAD.
old: Option<Option<String>>None = no claim about the previous value (a plain put_refs);
Some(None) = must not have existed; Some(Some(oid)) = must have
been oid.
new: Option<String>None deletes.
peeled: Option<String>Peeled target of an annotated tag, hex.
symref: Option<String>Symbolic target, full ref name, when new is a symref.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RefEdit
impl<'de> Deserialize<'de> for RefEdit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RefEdit
impl StructuralPartialEq for RefEdit
Auto Trait Implementations§
impl Freeze for RefEdit
impl RefUnwindSafe for RefEdit
impl Send for RefEdit
impl Sync for RefEdit
impl Unpin for RefEdit
impl UnsafeUnpin for RefEdit
impl UnwindSafe for RefEdit
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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