pub struct CommitRequest {
pub updates: Vec<RefUpdate>,
pub force: bool,
pub server_commit: Option<Box<ServerCommit>>,
}Expand description
The Commit message, with the ref updates of the transaction.
Fields§
§updates: Vec<RefUpdate>The ref updates.
A Commit with a server_commit holds no
update.
force: boolThe flag that allows a ref update that is not a fast-forward.
The key is force. The encoder writes the key only if the value is
true, and the decoder reads an absent key as false.
server_commit: Option<Box<ServerCommit>>The commit that the server makes, under the key server-commit.
The encoder writes the key only if the value is Some, and the
decoder reads an absent key as None. The value is boxed, so a
Message of another kind stays small.
Trait Implementations§
Source§impl Clone for CommitRequest
impl Clone for CommitRequest
Source§impl Debug for CommitRequest
impl Debug for CommitRequest
impl Eq for CommitRequest
Source§impl PartialEq for CommitRequest
impl PartialEq for CommitRequest
impl StructuralPartialEq for CommitRequest
Auto Trait Implementations§
impl Forget for CommitRequest
impl Freeze for CommitRequestwhere
*const u8 is !null: Freeze,
PhantomData<RefUpdate>: Freeze,
*const ServerCommit is !null: Freeze,
PhantomData<ServerCommit>: Freeze,
impl Move for CommitRequest
impl RefUnwindSafe for CommitRequest
impl Send for CommitRequest
impl Sync for CommitRequest
impl Unpin for CommitRequest
impl UnsafeUnpin for CommitRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<RefUpdate>: UnsafeUnpin,
*const ServerCommit is !null: UnsafeUnpin,
PhantomData<ServerCommit>: UnsafeUnpin,
impl UnwindSafe for CommitRequest
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.