pub struct RefUpdateResult {
pub refname: String,
pub old: Option<ObjectId>,
pub new: Option<ObjectId>,
pub error: Option<RefUpdateRefusal>,
}Expand description
The result of one requested ref update.
Fields§
§refname: StringFull name of the ref the client asked to change.
old: Option<ObjectId>Value the client expected the ref to have; None for a create.
new: Option<ObjectId>Value the client asked for; None for a delete.
error: Option<RefUpdateRefusal>Why the update was refused, or None when it was applied.
Trait Implementations§
Source§impl Clone for RefUpdateResult
impl Clone for RefUpdateResult
Source§impl Debug for RefUpdateResult
impl Debug for RefUpdateResult
impl Eq for RefUpdateResult
Source§impl PartialEq for RefUpdateResult
impl PartialEq for RefUpdateResult
impl StructuralPartialEq for RefUpdateResult
Auto Trait Implementations§
impl Freeze for RefUpdateResult
impl RefUnwindSafe for RefUpdateResult
impl Send for RefUpdateResult
impl Sync for RefUpdateResult
impl Unpin for RefUpdateResult
impl UnsafeUnpin for RefUpdateResult
impl UnwindSafe for RefUpdateResult
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.