pub struct PushCommand {
pub src: Option<ObjectId>,
pub dst: String,
pub expected_old: Option<ObjectId>,
pub force: bool,
}Expand description
One caller-authored receive-pack command.
Fields§
§src: Option<ObjectId>The object id to install at dst, or None for a delete.
dst: StringFull destination ref name.
expected_old: Option<ObjectId>The expected remote old object id. None lowers to the zero oid, which
receive-pack treats as create-only for updates and unconditional for
deletes.
force: boolBypass the non-fast-forward check for this command. This mirrors a
refspec-local leading +; PushOptions::force still forces every
command in the plan.
Trait Implementations§
Source§impl Clone for PushCommand
impl Clone for PushCommand
Source§fn clone(&self) -> PushCommand
fn clone(&self) -> PushCommand
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 moreSource§impl Debug for PushCommand
impl Debug for PushCommand
impl Eq for PushCommand
Source§impl From<PushAction> for PushCommand
impl From<PushAction> for PushCommand
Source§fn from(value: PushAction) -> Self
fn from(value: PushAction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PushCommand
impl PartialEq for PushCommand
Source§fn eq(&self, other: &PushCommand) -> bool
fn eq(&self, other: &PushCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PushCommand
Auto Trait Implementations§
impl Freeze for PushCommand
impl RefUnwindSafe for PushCommand
impl Send for PushCommand
impl Sync for PushCommand
impl Unpin for PushCommand
impl UnsafeUnpin for PushCommand
impl UnwindSafe for PushCommand
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