pub struct RefEvent {
pub key: String,
pub old: Option<String>,
pub new: Option<String>,
pub seq: u64,
pub entry: String,
pub actor: String,
pub key_id: Option<String>,
}Expand description
A ref that moved, as the writer thread saw it.
Built inside the sequencer’s accepted() and immediately handed to
Hooks::offer; every field is already in hand there, so building it
costs no lookup.
Fields§
§key: StringThe view’s ref key, <repo>:<refname> for git-derived refs. This
is what subscription patterns match, so a pattern means the same
thing here as in --protected-refs.
old: Option<String>Old git oid in hex, None when the ref did not exist.
new: Option<String>New git oid in hex, None when the ref was deleted.
seq: u64Log position of the entry that moved it.
entry: StringContent hash of that entry, hex. Unique per event, so a receiver can discard a delivery it has already acted on.
actor: StringAttribution channel the op was signed on.
key_id: Option<String>Signing key id, when the op carried an author signature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RefEvent
impl RefUnwindSafe for RefEvent
impl Send for RefEvent
impl Sync for RefEvent
impl Unpin for RefEvent
impl UnsafeUnpin for RefEvent
impl UnwindSafe for RefEvent
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