pub struct RefTransactionHookUpdate {
pub old_value: String,
pub new_value: String,
pub refname: String,
}Expand description
One queued ref change as the reference-transaction hook sees it: the
<old-value> SP <new-value> SP <refname> triple git writes to the hook’s
stdin (refs.c:transaction_hook_feed_stdin). old_value/new_value are
already rendered the way git renders them — a 40/64-hex OID, the string
ref:<target> for a symref, or the all-zeros OID when the side is absent.
Fields§
§old_value: String§new_value: String§refname: StringTrait Implementations§
Source§impl Clone for RefTransactionHookUpdate
impl Clone for RefTransactionHookUpdate
Source§fn clone(&self) -> RefTransactionHookUpdate
fn clone(&self) -> RefTransactionHookUpdate
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 moreAuto Trait Implementations§
impl Freeze for RefTransactionHookUpdate
impl RefUnwindSafe for RefTransactionHookUpdate
impl Send for RefTransactionHookUpdate
impl Sync for RefTransactionHookUpdate
impl Unpin for RefTransactionHookUpdate
impl UnsafeUnpin for RefTransactionHookUpdate
impl UnwindSafe for RefTransactionHookUpdate
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