pub struct PushOptions {
pub atomic: bool,
pub dry_run: bool,
pub push_options: Vec<String>,
}Expand description
Options controlling a push.
Fields§
§atomic: boolApply all updates atomically (all-or-nothing).
dry_run: boolCompute results without writing to the remote.
push_options: Vec<String>Server-side push options to transmit (git push --push-option <value>).
When non-empty, the negotiated capability list includes push-options
and one push-option <value> pkt-line per entry is written after the
ref-update command block and before the flush/pack. The remote exposes
these to its hooks via GIT_PUSH_OPTION_COUNT / GIT_PUSH_OPTION_<n>.
If this is non-empty but the remote git-receive-pack does not advertise
the push-options capability, the push fails with
crate::error::Error::PushOptionsUnsupported (matching Git).
Trait Implementations§
Source§impl Clone for PushOptions
impl Clone for PushOptions
Source§fn clone(&self) -> PushOptions
fn clone(&self) -> PushOptions
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 PushOptions
impl Debug for PushOptions
Source§impl Default for PushOptions
impl Default for PushOptions
Source§fn default() -> PushOptions
fn default() -> PushOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PushOptions
impl RefUnwindSafe for PushOptions
impl Send for PushOptions
impl Sync for PushOptions
impl Unpin for PushOptions
impl UnsafeUnpin for PushOptions
impl UnwindSafe for PushOptions
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